:root {
  --cream: #f5eee6;
  --cream-deep: #ebe2d6;
  --mauve: #8b3a5a;
  --mauve-dark: #5c2540;
  --mauve-soft: rgba(139, 58, 90, 0.12);
  --rose: #e8b4bc;
  --warm-black: #1a0f14;
  --light-pink: #f5d5dc;
  --muted: rgba(26, 15, 20, 0.38);
  --gold: #c4a035;
  --gold-soft: rgba(196, 160, 53, 0.35);
  --space-side: 1.25rem;
  --space-section: 3.25rem;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
}

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

  .scroll-hint,
  .float-star,
  .feature-card,
  .reveal-word,
  .title-line {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--warm-black);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.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;
}

/* Scroll progress — thin mauve bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mauve), #a8557a);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}

/* Page atmosphere */
.page-bg {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 140% 90% at 50% -25%, rgba(232, 180, 188, 0.5), transparent 58%),
    radial-gradient(ellipse 100% 70% at 110% 35%, rgba(139, 58, 90, 0.07), transparent 45%),
    radial-gradient(ellipse 90% 60% at -15% 75%, rgba(245, 213, 220, 0.55), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.float-star {
  position: absolute;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  text-shadow: 0 0 20px var(--gold-soft);
}

.float-star--1 {
  top: 12%;
  right: 8%;
}

.float-star--2 {
  top: 38%;
  left: 6%;
  font-size: 0.85rem;
  opacity: 0.35;
}

.float-star--3 {
  bottom: 28%;
  right: 12%;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .float-star--1 {
    right: 18%;
  }
  .float-star--2 {
    left: 14%;
  }
  .float-star--3 {
    right: 20%;
  }
}

/* ─── HERO (mobile-first, full screen) ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 1.5rem) var(--space-side) calc(var(--safe-bottom) + 2rem);
}

.hero-inner {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
}

/* App icon — same asset as iOS CyclaLogo */
.logo-wrap {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 22%;
  overflow: hidden;
  box-shadow:
    0 14px 44px rgba(139, 58, 90, 0.22),
    0 2px 8px rgba(26, 15, 20, 0.08);
  background: #0d0d0d;
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve);
  opacity: 0.85;
}

.hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(2.75rem, 12vw, 3.5rem);
  font-weight: 800;
  color: var(--mauve);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-tagline {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(26, 15, 20, 0.62);
  line-height: 1.5;
}

.hero-tagline em {
  font-style: italic;
  color: var(--mauve);
  opacity: 0.9;
}

/* Scroll cue */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint__line {
  width: 1px;
  height: 2rem;
  background: linear-gradient(180deg, var(--mauve), transparent);
  border-radius: 1px;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* CTA button */
.cta-wrap {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.cta-wrap--center {
  margin-left: auto;
  margin-right: auto;
}

.cta-glow {
  position: absolute;
  inset: -10px;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at center, rgba(139, 58, 90, 0.38), transparent 72%);
  filter: blur(18px);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

.btn-appstore {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 19rem;
  padding: 1rem 1.35rem;
  border-radius: 1rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fdf8f5;
  letter-spacing: 0.01em;
  background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.06) 38%,
      transparent 42%
    ),
    linear-gradient(180deg, #7a3355 0%, var(--mauve-dark) 48%, #4a1e32 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 10px 32px rgba(92, 37, 64, 0.42),
    0 2px 10px rgba(139, 58, 90, 0.22);
  border: 1.5px solid rgba(139, 58, 90, 0.88);
  outline: 2px solid rgba(139, 58, 90, 0.5);
  outline-offset: 3px;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

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

@media (hover: hover) {
  .btn-appstore:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
  }
}

.btn-appstore .apple-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  color: #fdf8f5;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.btn-appstore .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.18;
}

.btn-appstore .btn-small {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-appstore .btn-large {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-section) var(--space-side);
}

.section--tight {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.section--glass {
  padding-top: 1rem;
}

.section--cards {
  padding-top: 2.5rem;
}

.section--quote {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.section--cta-final {
  padding-bottom: calc(var(--space-section) + var(--safe-bottom));
  text-align: center;
}

/* Laurels + stars block */
.laurel-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 20rem;
  margin: 0 auto;
  padding: 1.35rem 1rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(139, 58, 90, 0.08);
}

.laurel {
  width: 2rem;
  flex-shrink: 0;
  color: var(--gold);
  height: 4.5rem;
}

@media (min-width: 400px) {
  .laurel {
    width: 2.35rem;
    height: 5rem;
  }
}

.laurel-center {
  text-align: center;
  padding: 0 0.15rem;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.15rem;
}

.star-row span {
  color: var(--gold);
  font-size: 0.8rem;
  line-height: 1;
  text-shadow: 0 1px 8px var(--gold-soft);
}

.rating-num {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.social-line {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(26, 15, 20, 0.52);
}

.social-line strong {
  color: var(--mauve);
  font-weight: 700;
}

/* Section titles — lines animate to mauve */
.section-head {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head--center {
  text-align: center;
}

.reveal-lines .title-line {
  display: block;
  color: rgba(26, 15, 20, 0.28);
  transform: translateY(0.65rem);
  opacity: 0.55;
  transition:
    color 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-lines.is-revealed .title-line {
  color: var(--mauve);
  opacity: 1;
  transform: translateY(0);
}

.reveal-lines.is-revealed .title-line:nth-child(2) {
  transition-delay: 0.1s;
}

.title-line--small {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-style: italic;
  color: rgba(26, 15, 20, 0.4) !important;
}

.reveal-lines.is-revealed .title-line--small {
  color: rgba(139, 58, 90, 0.75) !important;
}

/* Word-by-word body reveal */
.body-lead {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
  max-width: 36rem;
}

.reveal-word {
  color: rgba(26, 15, 20, 0.32);
  transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-block.is-revealed .reveal-word {
  color: var(--mauve);
}

.quote-block {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.quote-attrib {
  margin: 1.25rem 0 0;
}

/* Feature cards */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 28px rgba(139, 58, 90, 0.07);
}

.feature-card {
  padding: 1.35rem 1.25rem;
  opacity: 0;
  transform: translateY(1.15rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--mauve);
  opacity: 0.85;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(26, 15, 20, 0.62);
  line-height: 1.55;
}

.cta-sub {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(26, 15, 20, 0.58);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem var(--space-side) calc(2.5rem + var(--safe-bottom));
  border-top: 1px solid rgba(139, 58, 90, 0.08);
}

.footer-brand {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--mauve);
  letter-spacing: -0.02em;
}

.footer-meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

/* ─── Tablet / desktop (progressive enhancement) ─── */
@media (min-width: 768px) {
  :root {
    --space-side: 2rem;
    --space-section: 4.5rem;
  }

  .hero-inner {
    max-width: 28rem;
  }

  .section-head {
    font-size: 2.15rem;
  }

  .body-lead {
    font-size: 1.15rem;
  }

  .feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    max-width: 56rem;
    margin: 0 auto;
  }

  .laurel-block {
    max-width: 24rem;
    padding: 1.5rem 1.5rem;
  }

  .quote-block {
    font-size: 1.45rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .quote-attrib {
    text-align: center;
  }

  .section--quote .section-head,
  .section:not(.section--cta-final) .body-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .section:not(.section--cta-final) .section-head {
    text-align: center;
  }
}

/* ─── Legal pages (unchanged structure) ─── */
.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  min-height: 100vh;
}

.legal-page header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mauve);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--mauve);
}

.legal-page .updated {
  font-size: 0.85rem;
  color: rgba(26, 15, 20, 0.45);
  margin-bottom: 1.75rem;
}

.legal-page h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-black);
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: rgba(26, 15, 20, 0.78);
  margin: 0 0 0.85rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal-page a {
  color: var(--mauve);
  font-weight: 600;
}
