/* =====================================================================
   Hablamos Francés — Lista de espera (waitlist landing page)
   Reuses the exact design tokens/components from the deck system
   (1a-primeras-conversaciones/css/styles.css) — see PROJECT-BRIEF.md.
   ===================================================================== */

:root {
  /* Aligned with app dashboard — sage primary, terracotta secondary */
  --ink: #221a0f;
  --muted: #8a7d6b;
  --line: #e8e0d4;
  --row-alt: #f3ebe1;
  --accent: #6b7f5e;              /* sage — primary CTA (same as app) */
  --accent-soft: #e8eee4;
  --accent-2: #c4784a;            /* terracotta secondary */
  --accent-2-soft: #f5e6dc;
  --bg: #faf7f2;
  --btn-bg: #ffffff;
  --btn-hover: #f5efe6;
  --card-bg: #ffffff;
  --ok: #2f9e44;
  --ok-soft: #e6f6ea;
  --warn: #c4784a;
  --warn-soft: #f5e6dc;
  --shadow: 0 2px 12px rgba(44, 36, 24, 0.06);
  --shadow-lg: 0 8px 28px rgba(44, 36, 24, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { background: var(--bg); font-size: 16px; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 22px 120px;
}

a { color: inherit; }

/* --- top bar (logo only — no dark mode on waitlist) ---
   Shares hero’s full-bleed alt bg so separation starts under the product UI */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  background: var(--row-alt);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 22px max(22px, calc(50vw - 460px)) 0;
  box-sizing: border-box;
}

.top-bar .brand {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* --- generic section rhythm (ScoreApp: ~5rem vertical air) --- */
section.block {
  padding: 80px 0;
  border-bottom: none;
}

/* ScoreApp-style section bands: full-bleed background, content stays in wrap width */
section.block.band {
  background: var(--row-alt);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(22px, calc(50vw - 460px));
  padding-right: max(22px, calc(50vw - 460px));
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.25;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.65;
}
/* All section headers share the same center alignment (eyebrow + title + sub) */
section.block {
  text-align: center;
}
section.block > .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
section.block > .section-title,
section.block > .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Cards / grids under a centered header stay full-width and left-read for body text */
section.block .feature-grid,
section.block .feature-card,
section.block .steps-row,
section.block .about-layout,
section.block .about-copy,
section.block .positioning-callout {
  text-align: left;
}
section.block .feature-card,
section.block .step-card {
  text-align: center;
}
section.block .about-text {
  text-align: left;
}

/* --- hero --- ScoreApp: soft full-bleed bg separates from next section --- */
.hero {
  padding: 28px 0 0;
  text-align: center;
  border-bottom: none;
  background: var(--row-alt);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(22px, calc(50vw - 460px));
  padding-right: max(22px, calc(50vw - 460px));
  box-sizing: border-box;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero .hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero .btn-primary.lg {
  padding: 15px 60px;
  font-size: 1.0625rem;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Hero product UI (product-ui-2) — ScoreApp: under CTA, slightly overlapping next band */
.hero-visual {
  position: relative;
  margin-top: 48px;
  margin-bottom: -24px;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.hero-ui {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  filter: none;
}

/* --- concept + product UI (ScoreApp: one-column benefits + visual right) ---
   Grid areas so mobile natural order is: title → sub → visual → benefits → CTA
   Desktop: left column = title/sub/benefits/CTA, right = visual spanning rows */
.concept-band {
  /* +80px top air from previous — section sits on page bg; hero has the alt band */
  padding-top: 176px;
  padding-bottom: 80px;
  background: var(--bg);
}
.concept-layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  grid-template-areas:
    "title  visual"
    "sub    visual"
    "list   visual"
    "cta    visual";
  column-gap: 56px;
  row-gap: 0;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.concept-title { grid-area: title; }
.concept-sub  { grid-area: sub; }
.product-visuals { grid-area: visual; }
.benefit-list { grid-area: list; }
.concept-cta  { grid-area: cta; }

.concept-layout .concept-title,
.concept-layout .concept-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.concept-layout .concept-sub {
  margin-bottom: 36px;
}

/* One-column benefit list (ScoreApp pattern) */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  text-align: left;
}
.benefit-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.benefit-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.concept-cta {
  margin-top: 36px;
  text-align: left;
}

.product-visuals {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.product-ui {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  /* assets recolored in-file; light polish only */
  filter: none;
}
.hero-ui {
  filter: none;
}

/* --- feature cards (kept for other possible uses) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature-grid.pillars-3 {
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card .feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-card .feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 6px;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* --- testimonials: vertical Vimeo embeds --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px auto 0;
  width: 100%;
  max-width: 780px;
  align-items: start;
  text-align: left;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.testimonial-video {
  width: 100%;
  padding: 177.78% 0 0 0; /* 9:16 vertical */
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.testimonial-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- how it works: 3 steps as Services-style cards (Harper Quinn ref) --- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.step-card {
  text-align: center;
  padding: 32px 20px 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.step-icon {
  /* ScoreApp: large icon — SVG already includes soft circle, so no nested disc */
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.step-card:nth-child(1) .step-icon,
.step-card:nth-child(2) .step-icon,
.step-card:nth-child(3) .step-icon {
  background: transparent;
}
.step-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  filter: none;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 16px;
}
.step-card h3 {
  font-size: 1.125rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--ink);
}
.step-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.step-card p strong { color: var(--ink); font-weight: 600; }

.section-cta {
  margin-top: 48px;
  text-align: center;
}

/* --- about (ScoreApp two-column) --- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: var(--row-alt);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.about-copy .about-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
}
.about-copy p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
}
.about-copy p:last-of-type { margin-bottom: 22px; }
.about-copy .btn-primary { margin-top: 4px; }

/* --- final CTA band — ScoreApp: soft circle, ~6rem air, no band bg --- */
.final-band {
  text-align: center;
  padding: 120px 0;
  background: transparent;
}
.final-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.final-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  filter: none;
}
.final-band .section-title {
  margin-bottom: 14px;
}
.final-band .section-sub {
  margin: 0 auto 32px;
  max-width: 420px;
}

/* --- shared buttons (same as deck system) --- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 60px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(196, 120, 74, 0.25);
}
.btn-primary:hover {
  background: #b56a3e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 120, 74, 0.32);
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--btn-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .15s ease;
}
.btn-secondary:hover { background: var(--btn-hover); }

footer.site-footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 40px;
}

/* =====================================================================
   QUIZ OVERLAY
   ===================================================================== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: none;
  overflow-y: auto;
}
.quiz-overlay.active { display: block; }

.quiz-inner {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  padding: 24px 22px 60px;
  display: flex;
  flex-direction: column;
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.quiz-back {
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.quiz-back:hover { background: var(--btn-hover); }
.quiz-back svg { width: 16px; height: 16px; }
.quiz-back:disabled { visibility: hidden; }

.quiz-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quiz-close:hover { background: var(--btn-hover); color: var(--ink); }
.quiz-close svg { width: 16px; height: 16px; }

.quiz-progress-wrap { flex: 1 1 auto; }
.quiz-progress-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.quiz-progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .25s ease;
  border-radius: 999px;
}

.quiz-step { flex: 1 1 auto; display: flex; flex-direction: column; }

.quiz-question {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 4px 0 6px;
}
.quiz-hint {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 26px;
}

.quiz-field {
  margin-bottom: 16px;
}
.quiz-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.quiz-field input[type="text"],
.quiz-field input[type="email"],
.quiz-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s ease;
}
.quiz-field input:focus,
.quiz-field textarea:focus { border-color: var(--accent); }
.quiz-field textarea { resize: vertical; min-height: 90px; }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.quiz-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.quiz-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.quiz-scale button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.quiz-scale button:hover { border-color: var(--accent); }
.quiz-scale button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quiz-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 10px;
}

.quiz-nav {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}
.quiz-nav .btn-primary { flex: 1; }
.quiz-nav .btn-secondary { flex: 0 0 auto; }

.quiz-error {
  color: var(--accent-2);
  font-size: 0.875rem;
  margin-top: 10px;
  display: none;
}
.quiz-error.show { display: block; }

/* --- confirmation screen --- */
.quiz-confirm {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}
.quiz-confirm .emoji { font-size: 2.75rem; margin-bottom: 18px; }
.quiz-confirm h2 { font-size: 1.5rem; margin: 0 0 12px; font-weight: 700; }
.quiz-confirm p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
  margin: 0 0 26px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  section.block {
    padding: 56px 0;
  }
  section.block.band {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .concept-band {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-visual {
    margin-bottom: -12px;
  }
  .final-band {
    padding: 80px 0;
  }
  .hero h1 { font-size: 1.875rem; }
  .hero-ui { max-width: 100%; }
  .hero-visual { margin-bottom: -20px; }
  .pain-grid, .feature-grid, .feature-grid.pillars-3 { grid-template-columns: 1fr; }
  .concept-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "sub"
      "visual"
      "list"
      "cta";
    row-gap: 24px;
    column-gap: 0;
    text-align: center;
  }
  .concept-layout .concept-title,
  .concept-layout .concept-sub {
    text-align: center;
  }
  .concept-layout .concept-sub {
    margin-bottom: 8px;
  }
  .benefit-list {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .concept-cta {
    text-align: center;
    margin-top: 8px;
  }
  .product-visuals {
    margin: 8px 0 12px;
  }
  .product-ui {
    max-width: 240px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 28px;
    margin-left: auto;
    margin-right: auto;
  }
  .steps-row { grid-template-columns: 1fr; gap: 28px; max-width: 360px; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    max-width: 420px;
  }
  .about-media {
    max-width: 220px;
    margin: 0 auto;
  }
  .about-copy .about-title {
    text-align: center;
  }
  .quiz-scale { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px 70px; }
  .hero h1 { font-size: 1.625rem; }
  .section-title { font-size: 1.4375rem; }
  section.block.band {
    padding-left: 16px;
    padding-right: 16px;
  }
}
