/* ============================
   FamilyReady — Slideshow
   Apple keynote style: deep navy, white text, amber accent
   ============================ */

:root {
  --bg: #0a0e1a;
  --bg-cta: #0d1220;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.55);
  --fg-faint: rgba(255, 255, 255, 0.3);
  --accent: #d4a054;
  --accent-hover: #e8b86a;
  --accent-dim: rgba(212, 160, 84, 0.25);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --transition: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

/* === SLIDESHOW CONTAINER === */
.slideshow {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* === INDIVIDUAL SLIDE === */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  padding: 60px 48px;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* CTA slide subtle texture */
.slide--cta {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(212, 160, 84, 0.06) 0%, transparent 60%),
    var(--bg-cta);
}

/* === SLIDE CONTENT === */
.slide__content {
  max-width: 800px;
  width: 100%;
}

.slide__content--center {
  text-align: center;
}

/* === SLIDE 1 — Brand === */
.slide__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
}

.slide__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--fg-muted);
  margin-bottom: 64px;
}

.slide__hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fg-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* === HEADLINES === */
.slide__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.slide__headline--sm {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin-bottom: 48px;
}

.slide__headline--accent {
  color: var(--accent);
}

/* === BODY TEXT === */
.slide__body {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* === SLIDE 3 — Pain List === */
.slide__list {
  list-style: none;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.slide__list li {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slide__list li:last-child {
  border-bottom: none;
}

.slide__list li strong {
  color: var(--fg);
  font-weight: 600;
}

.slide__list-sep {
  color: var(--accent);
  margin: 0 4px;
}

/* === SLIDE 5 — Steps === */
.slide__steps {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.slide__step {
  flex: 1;
  max-width: 220px;
}

.slide__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 20px;
}

.slide__step p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === SLIDE 6 — Personas === */
.slide__personas {
  max-width: 520px;
  margin: 0 auto;
}

.slide__persona {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slide__persona:last-child {
  border-bottom: none;
}

.slide__persona-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 12px;
  vertical-align: middle;
}

/* === SLIDE 7 — CTA Form === */
.slide__form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 24px;
  cursor: default;
}

.slide__input {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: text;
}

.slide__input::placeholder {
  color: var(--fg-faint);
}

.slide__input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.slide__btn {
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.slide__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.slide__fine {
  font-size: 0.82rem;
  color: var(--fg-faint);
  margin-bottom: 80px;
}

/* === FOOTER (inside CTA slide) === */
.slide__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slide__footer-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-faint);
}

.slide__footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
}

/* === NAVIGATION DOTS === */
.dots {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
  cursor: default;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  pointer-events: none;
  cursor: default;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .slide { padding: 48px 28px; }
  .slide__brand { margin-bottom: 16px; }
  .slide__tagline { margin-bottom: 48px; }
  .slide__headline { margin-bottom: 24px; }

  .slide__steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .slide__step { max-width: 280px; }

  .slide__form {
    flex-direction: column;
  }

  .slide__fine { margin-bottom: 48px; }

  .dots { bottom: 20px; gap: 10px; }
  .dot { width: 8px; height: 8px; }
}

@media (max-width: 480px) {
  .slide { padding: 32px 20px; }
  .slide__list li { padding: 12px 0; }
  .slide__persona { padding: 14px 0; }
}
