/* =========================================================
   Biblioteca Digital — Premium Landing
   Vibe: Ethereal Glass | Layout: Editorial + Asym Bento
   Font: Inter (solicitado)
   ========================================================= */

:root {
  --bg: #0a0c10;
  --bg-elevated: #10131a;
  --card: #14171e;
  --card-soft: #1a1e27;
  --fg: #f2f2f2;
  --muted: #8b93a7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --primary: #1fc062;
  --primary-bright: #2ee677;
  --primary-dim: rgba(31, 192, 98, 0.14);
  --primary-glow: rgba(31, 192, 98, 0.35);
  --danger: #ff6b6b;
  --radius: 2rem;
  --radius-inner: calc(2rem - 0.375rem);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Inter", system-ui, sans-serif;
  --max: 1120px;
  --narrow: 720px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: var(--narrow);
}

.center {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ---- Atmosphere ---- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.45;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(31, 192, 98, 0.22), transparent 70%);
}

.orb-b {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: -80px;
  background: radial-gradient(circle, rgba(31, 192, 98, 0.1), transparent 70%);
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 140ms; }
.delay-3 { transition-delay: 200ms; }
.delay-4 { transition-delay: 260ms; }
.delay-5 { transition-delay: 320ms; }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-bright);
  background: var(--primary-dim);
  border: 1px solid rgba(31, 192, 98, 0.25);
}

.eyebrow.danger {
  color: #ffb4b4;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.25);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.eyebrow-dot.pulse {
  background: var(--danger);
  animation: pulse-dot 1.6s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.accent {
  color: var(--primary-bright);
}

/* ---- Double Bezel ---- */
.bezel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.375rem;
}

.bezel--glow {
  box-shadow:
    0 0 0 1px rgba(31, 192, 98, 0.12),
    0 24px 80px -30px rgba(31, 192, 98, 0.35);
}

.bezel-inner {
  background: var(--card);
  border-radius: var(--radius-inner);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.45s var(--ease),
    background 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    color 0.45s var(--ease);
  will-change: transform;
}

.btn-sm {
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 1rem 1rem 1.6rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2ee677, #1fc062 55%, #18a855);
  color: #07110b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 40px -10px var(--primary-glow),
    0 0 24px -6px rgba(31, 192, 98, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 48px -8px var(--primary-glow),
    0 0 36px -4px rgba(46, 230, 119, 0.55);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  transition: transform 0.45s var(--ease);
  flex-shrink: 0;
}

.btn-sm .btn-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.group:hover .btn-icon {
  transform: translate(2px, -1px) scale(1.05);
}

/* ---- Nav Island ---- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: calc(100% - 0.5rem);
  padding: 0.45rem 0.45rem 0.45rem 1.15rem;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-brand {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--primary-bright);
}

.nav-links {
  display: none;
  gap: 1.15rem;
}

.nav-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-island > .btn {
  display: none;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.nav-overlay[hidden] {
  display: none;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(420px, 100%);
}

.overlay-link {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(2rem);
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: calc(var(--d) * 70ms + 80ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-island > .btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---- Hero Scroll Sequence ---- */
.hero-scroll {
  --hero-bg: #12100e;
  position: relative;
  z-index: 1;
  height: 520vh;
  background: var(--hero-bg);
}

.hero-scroll.is-ready .hero-scroll-loader,
.hero-scroll.is-preview .hero-scroll-loader {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero-scroll-loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--hero-bg);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s var(--ease);
}

.hero-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary-bright);
  animation: hero-spin 0.85s linear infinite;
}

.hero-loader-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

.hero-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--hero-bg);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-scroll-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.55) 0%, transparent 22%, transparent 72%, rgba(8, 6, 5, 0.65) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(8, 6, 5, 0.45) 100%);
  z-index: 1;
}

.hero-story {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-story-block {
  position: absolute;
  max-width: min(28rem, calc(100% - 2.5rem));
  opacity: 0;
  filter: blur(12px);
  transform: translateY(1.5rem);
  transition: none;
  will-change: opacity, transform, filter;
}

.hero-story-block.is-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 1.5rem));
  text-align: center;
  width: min(36rem, calc(100% - 2.5rem));
  max-width: none;
}

.hero-story-block.is-left {
  left: clamp(1.25rem, 6vw, 4.5rem);
  top: 42%;
  text-align: left;
}

.hero-story-block.is-right {
  right: clamp(1.25rem, 6vw, 4.5rem);
  left: auto;
  top: 42%;
  text-align: right;
  margin-left: auto;
}

.hero-story-kicker {
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-bright);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-story-title {
  font-size: clamp(1.75rem, 4.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: balance;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-story-body {
  margin-top: 0.85rem;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-story-cta {
  pointer-events: auto;
  margin-top: 1.75rem;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  animation: hero-hint-bob 2.2s var(--ease) infinite;
}

.hero-scroll.is-ready .hero-scroll-hint,
.hero-scroll.is-preview .hero-scroll-hint {
  opacity: 1;
}

.hero-scroll-hint.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

@keyframes hero-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
  .hero-story-block.is-left,
  .hero-story-block.is-right {
    left: 1.25rem;
    right: 1.25rem;
    top: auto;
    bottom: 18%;
    text-align: center;
    max-width: none;
    width: auto;
  }
}

.includes-list li,
.offer-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary-dim);
  border: 1px solid rgba(31, 192, 98, 0.35);
  position: relative;
}

.check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 7px;
  border: solid var(--primary-bright);
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.media-frame img {
  width: 100%;
}

.media-frame--books {
  background: #0c0e12;
}

.media-frame--pad {
  margin: 1.5rem 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--muted);
}

/* ---- Includes ---- */
.includes-card {
  padding: 2rem 1.35rem;
  text-align: center;
}

.includes-list {
  display: grid;
  gap: 0.85rem;
  text-align: left;
  max-width: 28rem;
  margin: 0 auto 0.5rem;
  color: #d5d9e2;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.category-pills span {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.includes-note {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .includes-card {
    padding: 2.5rem;
  }
}

/* ---- Testimonials Bento ---- */
.bento.testimonials {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento.testimonials {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
  }

  .bento.testimonials > :nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .bento.testimonials > :nth-child(1) .testimonial {
    min-height: 100%;
  }
}

.testimonial {
  padding: 1.5rem;
  height: 100%;
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.testimonial-top strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-top span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.verified {
  display: inline !important;
  color: var(--primary-bright) !important;
  font-size: 0.85rem !important;
}

.avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(31, 192, 98, 0.25);
  box-shadow: 0 0 0 2px rgba(31, 192, 98, 0.12);
  flex-shrink: 0;
}

.testimonial p {
  color: #c8CEDA;
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.75rem 1.35rem;
  text-align: center;
  position: relative;
  min-height: 100%;
}

.step-num {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-bright);
  opacity: 0.8;
}

.step-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0.5rem auto 1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: var(--primary-bright);
  background: var(--primary-dim);
  border: 1px solid rgba(31, 192, 98, 0.2);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Offer ---- */
.offer-section {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(31, 192, 98, 0.08), transparent 55%);
}

.offer-card {
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.price-old {
  color: var(--muted);
  font-size: 1rem;
}

.price-old s {
  text-decoration-thickness: 1.5px;
}

.price-label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-now {
  margin: 0.35rem 0 1.5rem;
  font-size: clamp(3.2rem, 10vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--primary-bright);
  text-shadow: 0 0 40px rgba(31, 192, 98, 0.35);
}

.price-now span {
  font-size: 0.45em;
  vertical-align: super;
}

.offer-list {
  display: grid;
  gap: 0.7rem;
  justify-content: center;
  text-align: left;
  margin: 0 auto 1.75rem;
  width: max-content;
  max-width: 100%;
  color: #d5d9e2;
}

.pay-methods {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.25rem 0 1.75rem;
}

.pay-methods span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.countdown p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 320px;
  margin: 0 auto;
}

.time-box {
  padding: 0.85rem 0.5rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.time-box span {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-bright);
  font-variant-numeric: tabular-nums;
}

.time-box small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-note {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  color: #a0a8b8 !important;
}

.guarantee {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  text-align: left;
}

.guarantee-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: var(--primary-bright);
  background: var(--primary-dim);
  border: 1px solid rgba(31, 192, 98, 0.22);
  flex-shrink: 0;
}

.guarantee h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.guarantee p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .offer-card {
    padding: 2.75rem 2.5rem;
  }
}

/* ---- FAQ ---- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  transition: background 0.4s var(--ease);
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-plus {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.faq-plus::before {
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-plus::after {
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > p {
  overflow: hidden;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.925rem;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    padding 0.55s var(--ease);
}

.faq-item.is-open .faq-a > p {
  padding: 0 1.25rem 1.25rem;
  opacity: 1;
  transform: translateY(0);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 7rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-price strong {
  color: var(--primary-bright);
}

/* ---- Sticky CTA ---- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(10, 12, 16, 0.85);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(110%);
  transition: transform 0.55s var(--ease);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-cta-inner strong {
  display: block;
  color: var(--primary-bright);
  font-size: 1.05rem;
}

.sticky-cta-inner span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }

  .footer {
    padding-bottom: 3.5rem;
  }
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(1.25rem);
  opacity: 0;
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast[hidden] {
  display: none;
}

.toast-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(31, 192, 98, 0.25);
  box-shadow: 0 0 0 2px rgba(31, 192, 98, 0.12);
  flex-shrink: 0;
}

.toast strong {
  display: block;
  font-size: 0.85rem;
}

.toast span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .toast {
    bottom: 1.5rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .btn-icon,
  .sticky-cta,
  .toast,
  .faq-a,
  .faq-a > p,
  .eyebrow-dot.pulse,
  .hero-spinner,
  .hero-scroll-hint {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-scroll {
    height: auto;
  }

  .hero-scroll-sticky {
    position: relative;
    min-height: 100vh;
  }

  .hero-story-block[data-story="0"] {
    opacity: 1 !important;
    filter: none !important;
    transform: translate(-50%, -50%) !important;
  }

  .hero-scroll-hint {
    display: none;
  }
}
