/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-gentle),
              background var(--dur-base) var(--ease-gentle),
              box-shadow var(--dur-base) var(--ease-gentle),
              color var(--dur-fast) var(--ease-gentle);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-bedtime-purple-lt), var(--color-moonlight-blue));
  color: var(--text-primary);
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(139,95,191,0);
}
.btn-primary:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(139, 95, 191, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(139,95,191,0.08);
  border-color: var(--border-strong);
}

.btn-sm { padding: var(--space-2) var(--space-4); min-height: 40px; font-size: var(--text-sm); }

/* Apple App Store badge */
.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform var(--dur-fast) var(--ease-gentle),
              box-shadow var(--dur-base) var(--ease-gentle);
}
.app-store-badge img {
  display: block;
  height: 56px;
  width: auto;
}
.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(139, 95, 191, 0.35);
}
.app-store-badge:focus-visible {
  outline: 2px solid var(--color-star-yellow);
  outline-offset: 3px;
}
.app-store-badge--sm img { height: 40px; }
.app-store-badge--lg img { height: 64px; }
@media (max-width: 640px) {
  .app-store-badge img { height: 48px; }
  .app-store-badge--lg img { height: 56px; }
}

/* Cards */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease-dreamy),
              box-shadow var(--dur-base) var(--ease-dreamy),
              border-color var(--dur-base) var(--ease-gentle);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-dreamy-glow);
}
.card h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.card p { font-size: var(--text-base); color: var(--text-secondary); }
.card__icon {
  width: 48px; height: 48px;
  color: var(--color-star-yellow);
  filter: drop-shadow(var(--shadow-star-glow));
}

/* Section intros */
.section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  color: var(--color-star-yellow);
  margin-bottom: var(--space-3);
}
.section__head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--space-12);
}
.section__head p {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

/* Steps */
.steps {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-12); }
  .steps::before {
    content: "";
    position: absolute;
    top: 32px; left: 10%; right: 10%;
    border-top: 2px dotted var(--border-default);
    z-index: 0;
  }
}
.step {
  position: relative;
  text-align: center;
  padding: var(--space-4);
}
.step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-moonlight-blue);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(91,127,222,0.4);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: var(--space-2); }
.step p  { color: var(--text-secondary); }

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-16);
}
.showcase:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .showcase { grid-template-columns: 3fr 2fr; gap: var(--space-16); }
  .showcase.reverse > *:first-child { order: 2; }
  .showcase.reverse > *:last-child  { order: 1; }
}
.showcase__body h2 { margin-bottom: var(--space-4); font-size: var(--text-3xl); }
.showcase__body p  { font-size: var(--text-lg); color: var(--text-secondary); max-width: 52ch; }
.showcase__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.phone-mock {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  box-shadow: var(--shadow-dreamy-glow);
  border: 1px solid var(--border-default);
  transform: rotate(-4deg);
}
.phone-mock--a { background: var(--gradient-aurora); transform: rotate(-5deg); }
.phone-mock--b { background: linear-gradient(135deg, #5B7FDE 0%, #E89BB8 60%, #1A1A2E 100%); transform: rotate(4deg); }
.phone-mock--c { background: linear-gradient(135deg, #7FB685 0%, #6B4E96 55%, #0F0F1E 100%); transform: rotate(-3deg); }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
@media (min-width: 768px)  { .pricing { grid-template-columns: repeat(3, 1fr); } }
.pricing--two { max-width: 56rem; margin-inline: auto; }
@media (min-width: 768px) { .pricing--two { grid-template-columns: repeat(2, 1fr); } }
.plan__trial {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 215, 0, 0.14);
  color: var(--color-star-yellow);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--dur-base) var(--ease-dreamy), box-shadow var(--dur-base) var(--ease-dreamy);
}
.plan:hover { box-shadow: var(--shadow-dreamy-glow); }
.plan__name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--text-primary);
}
.plan__price {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.plan__price span {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-regular);
  margin-left: var(--space-1);
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: var(--space-2);
}
.plan ul li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-secondary);
  font-size: var(--text-base);
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-star-yellow);
  box-shadow: var(--shadow-star-glow);
}
.plan .btn { margin-top: auto; }
.plan--featured {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-dreamy-glow);
  background: linear-gradient(180deg, rgba(139,95,191,0.14) 0%, rgba(26,26,46,0) 100%);
  position: relative;
}
.plan--featured::after {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-star-yellow);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .plan--featured { transform: scale(1.04); }
}
.pricing-note {
  text-align: center;
  margin-top: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

/* Safety strip */
.safety {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) { .safety { grid-template-columns: repeat(3, 1fr); } }
.safety__item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}
.safety__item p { color: var(--text-secondary); font-size: var(--text-base); }

/* FAQ (native details/summary) */
.faq {
  max-width: 60rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq details {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  transition: border-color var(--dur-base) var(--ease-gentle);
}
.faq details[open] { border-color: var(--border-default); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-star-yellow);
  transition: transform var(--dur-base) var(--ease-gentle);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: var(--space-3);
  padding-block: var(--space-2) var(--space-2);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}

/* Final CTA band */
.cta-band {
  background: var(--gradient-aurora);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-dreamy-glow);
  margin-top: var(--space-24);
}
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band p  { color: var(--text-secondary); max-width: 52ch; margin: 0 auto var(--space-6); }
