/* ==========================================================================
   manana.me Sections — Layout and decoration specific to this site
   ========================================================================== */

/* ---------- Hero ---------- */
.hero--me {
  background: var(--gradient-hero);
  position: relative;
}

.hero--me .hero__layout {
  padding-top: 0;
  min-height: calc(80vh - var(--nav-height));
}

.hero--me::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero--me::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__aside {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5B9BB4;
  text-align: right;
  max-width: 420px;
  margin-left: auto;
  margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
  .hero__aside {
    text-align: center;
    max-width: 100%;
    margin-left: 0;
    font-size: 0.75rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero__title-count {
  color: var(--accent-alt);
}

.hero__subtitle {
  max-width: 500px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero__cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero__cta-group {
    justify-content: center;
  }
  .hero__subtitle {
    max-width: 100%;
  }
}

/* ---------- Problem Section ---------- */
.problem-card {
  text-align: center;
  padding: var(--space-8);
}

.problem-card__emoji {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.problem-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: #1A5276;
}

.problem-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.problem-card p {
  font-size: 0.9375rem;
}

/* ---------- How It Works ---------- */
.how-it-works--me .step__icon {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #dbeafe, #e0f2fe, #cffafe);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.how-it-works--me .step__connector {
  background: none;
  border-top: 2px dashed #1A5276;
  opacity: 0.3;
  height: 0;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .how-it-works--me .step__connector {
    border-top: none;
    border-left: 2px dashed #1A5276;
    width: 0;
    height: 2rem;
  }
}

.how-it-works--me .step__icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

/* ---------- Features ---------- */
.features--me .card__icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
  color: var(--accent);
}

/* ---------- Before/After ---------- */
.before-after {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.before-after__before,
.before-after__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.before-after__before {
  background: #fef2f2;
  z-index: 1;
}

.before-after__after {
  background: #ecfdf5;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.before-after__slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent);
  z-index: 3;
  transform: translateX(-50%);
}

.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  z-index: 4;
}

.before-after__label {
  position: absolute;
  bottom: var(--space-4);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 5;
}

.before-after__label--before {
  right: var(--space-4);
  background: rgba(26, 82, 118, 0.12);
  color: #1A5276;
}

.before-after__label--after {
  left: var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-500);
}

/* Inbox mockup inside before/after */
.inbox-mockup {
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.inbox-mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.inbox-mockup__count {
  font-size: 1.5rem;
  font-weight: 700;
}

.inbox-mockup__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

.inbox-mockup__row--unread {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 500;
}

.inbox-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stats--me .stat__icon {
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: var(--space-2);
}

.stats--me .stat__number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--accent);
}

.stats--me .stat__label {
  font-size: 0.9375rem;
  max-width: 220px;
  margin-inline: auto;
}

/* ---------- Reassurance ---------- */
.reassurance {
  text-align: center;
}

.reassurance__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.reassurance__icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--success-500);
}

.reassurance__points {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.reassurance__point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 280px;
  text-align: left;
}

.reassurance__point svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success-500);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Final CTA ---------- */
.cta--me {
  background: var(--gradient-calm);
  text-align: center;
}

.cta--me h2 {
  max-width: 600px;
  margin-inline: auto;
}

.cta--me p {
  color: var(--text-secondary);
}

/* ---------- Floating Gradient Blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  top: 20%;
  right: -10%;
  animation: drift 25s ease-in-out infinite;
}

.blob--2 {
  width: 350px;
  height: 350px;
  background: rgba(236, 72, 153, 0.1);
  bottom: 10%;
  left: -5%;
  animation: drift 30s ease-in-out infinite reverse;
}

.blob--3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.08);
  top: 50%;
  left: 40%;
  animation: drift 20s ease-in-out infinite 5s;
}

/* ---------- Sunrise Illustration ---------- */
.sunrise-illustration {
  max-width: 420px;
  width: 100%;
}

.sunrise-illustration svg {
  width: 100%;
  height: auto;
}

/* ---------- Wave Section Dividers ---------- */
.section-wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}

.section-wave-divider--flip {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* ---------- Porthole Animations ---------- */
.cloud-1 { animation: cloud-drift-right 95s linear infinite; }
.cloud-2 { animation: cloud-drift-left 125s linear infinite; animation-delay: -50s; }
.cloud-3 { animation: cloud-drift-right 80s linear infinite; animation-delay: -25s; }
.sun-bob  { animation: sun-bob 10s ease-in-out infinite; }

.land-ho-annotation {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.land-ho-annotation.visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .land-ho-annotation { opacity: 1; }
}
