/* =============================================================================
   Premium direct-response landing — centered single column, minimal UI
   ============================================================================= */

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #27272b;
  --text-muted: #525252;
  --border: #e5e5e5;
  --accent: #27272b;
  --accent-hover: #3f3f46;
  --primary: #0083ef;
  --primary-hover: #0074d4;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell-max: 1180px;
  --prose-max: min(54rem, 100%);
  --cta-row-max: min(44rem, 100%);
  --section-space: clamp(3.5rem, 8vw, 5.5rem);
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Layout shell: centered column ----- */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.shell--text {
  max-width: min(var(--shell-max), 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.shell--narrow {
  max-width: min(40rem, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ----- Page header ----- */

.page-header {
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.page-header .shell.page-header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.page-header__wordmark {
  font-family: var(--font);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.3;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: center;
}

.page-header__wordmark:hover {
  color: var(--text);
}

.page-header__wordmark:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----- Sections ----- */

.main {
  display: block;
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.hero {
  padding-top: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-elevated);
}

.section-results {
  background-color: var(--bg);
}

.section-final {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-pdf {
  background-color: var(--bg);
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

/* ----- Hero: social proof → headline → sub → CTA ----- */

.hero-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.hero-proof__stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.hero-proof__star {
  color: #f59e0b;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.hero-proof__text {
  margin: 0 auto;
  max-width: var(--prose-max);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.hero-proof__text strong {
  font-weight: 700;
  color: var(--text);
}

.hero-headline {
  margin: 0 auto 0.875rem;
  max-width: var(--prose-max);
  font-size: clamp(2rem, 5.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 auto 0;
  max-width: var(--prose-max);
  font-size: clamp(1.03125rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
}

.hero-cta {
  width: 100%;
  max-width: var(--cta-row-max);
  margin: 1.5rem auto 0;
}

.hero .btn-primary.cta-button {
  box-shadow: 0 4px 14px rgba(0, 131, 239, 0.25);
}

.hero .btn-primary.cta-button:hover {
  box-shadow: 0 6px 20px rgba(0, 131, 239, 0.3);
}

.hero .cta-row .cta-button {
  min-height: 52px;
  font-size: clamp(0.875rem, 2.2vw, 1rem);
}

/* Primary (left) + shadow/outline (right) — final CTA row */
.cta-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.75rem;
}

.cta-row .cta-button {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  min-height: 52px;
}

.final-ctas.cta-row .cta-button {
  min-height: 56px;
  font-size: clamp(0.875rem, 2.4vw, 1.0625rem);
}

/* ----- Results section typography ----- */

.section-title {
  margin: 0 auto 0.75rem;
  max-width: var(--prose-max);
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: var(--prose-max);
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ----- Proof carousel (center focus + side previews) ----- */

.proof-carousel {
  margin: 0.5rem auto 0;
  max-width: min(960px, 100%);
}

.proof-carousel__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 0.75rem);
}

.proof-carousel__viewport {
  position: relative;
  min-height: clamp(280px, 52vw, 460px);
  overflow: visible;
}

.proof-carousel__stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 52vw, 460px);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.proof-carousel__slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(94%, 500px);
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease,
    box-shadow 0.4s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

.proof-carousel__slide[data-pos="0"] {
  transform: translate(-50%, -50%) translateZ(32px) scale(1);
  opacity: 1;
  z-index: 4;
  filter: none;
  cursor: default;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.proof-carousel__slide[data-pos="1"] {
  transform: translate(-50%, -50%) translateX(clamp(5.5rem, 28vw, 11rem)) translateZ(-28px) scale(0.74);
  opacity: 0.38;
  z-index: 2;
  filter: brightness(0.96);
}

.proof-carousel__slide[data-pos="2"] {
  transform: translate(-50%, -50%) translateX(calc(-1 * clamp(5.5rem, 28vw, 11rem))) translateZ(-28px) scale(0.74);
  opacity: 0.38;
  z-index: 2;
  filter: brightness(0.96);
}

.proof-carousel__img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-carousel__arrow {
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.proof-carousel__arrow:hover {
  background: var(--bg);
  border-color: #d4d4d4;
}

.proof-carousel__arrow:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.proof-carousel__arrow-icon {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 300;
  margin-top: -2px;
}

.proof-carousel__caption {
  margin: 1.25rem auto 0;
  max-width: var(--prose-max);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  min-height: 3.2em;
}

@media (prefers-reduced-motion: reduce) {
  .proof-carousel__slide {
    transition-duration: 0.01ms;
  }
}

/* ----- Final message + CTAs ----- */

.final-message {
  margin: 0 auto 2rem;
  max-width: var(--prose-max);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.final-ctas {
  width: 100%;
  max-width: var(--cta-row-max);
  margin-left: auto;
  margin-right: auto;
}

/* ----- PDF form block ----- */

.pdf-form-title {
  margin: 0 auto 0.5rem;
  max-width: var(--prose-max);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.pdf-form-note {
  margin: 0 auto 1.25rem;
  max-width: var(--prose-max);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.pdf-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.pdf-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pdf-form input[type="email"]::placeholder {
  color: #a3a3a3;
}

.pdf-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 131, 239, 0.15);
}

.pdf-form .btn {
  width: 100%;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cta-button {
  width: 100%;
  max-width: 22rem;
}

/* Stacked CTAs outside .cta-row keep max width */
.pdf-form .cta-button {
  max-width: none;
}

.final-ctas .btn-primary.cta-button {
  box-shadow: 0 4px 14px rgba(0, 131, 239, 0.25);
}

.final-ctas .btn-primary.cta-button:hover {
  box-shadow: 0 6px 20px rgba(0, 131, 239, 0.3);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

/* Secondary: book call — same shape, calmer, outline */
.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg);
  border-color: #d4d4d4;
  color: var(--text);
}

/* Shadow/outline CTA — must follow .btn-secondary (higher specificity) */
.btn-secondary.cta-button--shadow {
  background-color: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.07);
}

.btn-secondary.cta-button--shadow:hover {
  background-color: var(--bg);
  border-color: #d4d4d4;
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 18px rgba(0, 0, 0, 0.09);
}

.cta-button--call {
  font-weight: 600;
}

/* ----- Footer ----- */

.page-footer {
  padding: 2rem 0 2.5rem;
  background-color: var(--bg);
}

.page-footer .shell {
  text-align: center;
}

.page-footer__note {
  margin: 0 auto;
  max-width: var(--prose-max);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #a3a3a3;
  text-align: center;
}

/* ----- Utilities ----- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Responsive: mobile ----- */

@media (max-width: 768px) {
  .page-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-cta.cta-row {
    flex-direction: column;
    max-width: 100%;
    align-items: center;
  }

  .hero-cta .cta-button {
    width: 100%;
    max-width: 22rem;
  }

  .proof-carousel__viewport,
  .proof-carousel__stack {
    min-height: clamp(240px, 62vw, 400px);
  }

  .proof-carousel__slide[data-pos="1"] {
    transform: translate(-50%, -50%) translateX(clamp(4rem, 22vw, 8.5rem)) translateZ(-28px) scale(0.7);
  }

  .proof-carousel__slide[data-pos="2"] {
    transform: translate(-50%, -50%) translateX(calc(-1 * clamp(4rem, 22vw, 8.5rem))) translateZ(-28px) scale(0.7);
  }

  .final-ctas.cta-row {
    flex-direction: column;
    max-width: 100%;
  }

  .final-ctas.cta-row .cta-button {
    width: 100%;
    max-width: none;
  }
}
