@import url('tokens.css');

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--purple-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-bounce),
    box-shadow var(--dur-base) var(--ease-out),
    filter var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
}

.btn--md {
  padding: 12px 24px;
  font-size: var(--text-base);
}

.btn--lg {
  padding: 16px 34px;
  font-size: var(--text-md);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn--secondary {
  background: var(--white);
  color: var(--brand);
  border-color: var(--brand);
}

.btn--sunshine {
  background: var(--yellow);
  color: var(--purple-800);
  border-color: var(--yellow);
}

.btn--pink {
  background: var(--pink);
  color: var(--purple-800);
  border-color: var(--pink);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--purple-100);
}

.btn--full {
  width: 100%;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.tag--purple {
  background: var(--purple-100);
  color: var(--purple-700);
}

.tag--peri {
  background: var(--peri-soft);
  color: var(--peri);
}

.tag--green-solid {
  background: var(--green);
  color: #fff;
}

.tag--yellow-solid {
  background: var(--yellow);
  color: var(--purple-800);
}

.tag--pink-solid {
  background: var(--pink);
  color: var(--purple-800);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(254, 249, 249, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-mark img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-mark__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  font-size: 18px;
  line-height: 1.2;
}

.brand-mark__sub {
  display: block;
  font-size: 12px;
  color: var(--peri);
  font-weight: var(--fw-semibold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 24px;
  height: 3px;
  background: var(--purple-700);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-nav__link {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-out);
}

.site-nav__link:hover {
  background: var(--purple-100);
}

.site-nav__link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-block: 72px 60px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-size: 14px;
  color: var(--pink);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  font-size: var(--text-4xl);
  line-height: 1.05;
  margin-top: 10px;
  text-wrap: balance;
}

.hero__lead {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-top: 16px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero__tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  content: '';
  position: absolute;
  inset: -18px;
  background: var(--yellow-soft);
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  z-index: 0;
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 734 / 676;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ---------- Section heading ---------- */
.section-heading {
  max-width: none;
}

.section-heading--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.section-heading__eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-size: var(--text-sm);
  color: var(--pink);
  margin-bottom: var(--space-2);
}

.section-heading__eyebrow--peri {
  color: var(--peri);
}

.section-heading__eyebrow--red {
  color: var(--red);
}

.section-heading__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  font-size: var(--text-2xl);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

.section-heading__lead {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

/* ---------- Offers ---------- */
.offers {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.offers::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: var(--pink-soft);
  filter: blur(80px);
  opacity: 0.6;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.offers__inner {
  position: relative;
  z-index: 1;
  padding-block: 64px;
}

.offers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__body {
  padding: var(--space-5);
  border-top: 5px solid transparent;
  margin-top: -1px;
}

.card--accent-pink .card__body {
  border-top-color: var(--pink);
}

.card--accent-yellow .card__body {
  border-top-color: var(--yellow);
}

.card--accent-peri .card__body {
  border-top-color: var(--peri);
}

.card--accent-green .card__body {
  border-top-color: var(--green);
}

.card--flagship {
  grid-column: span 2;
  grid-row: span 2;
}

.card--flagship .card__body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6);
}

.card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  font-size: var(--text-lg);
  margin: 12px 0 8px;
}

.card__title--lg {
  font-size: var(--text-xl);
  margin-top: 16px;
}

.card__text {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.card--flagship .card__text {
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .offers__grid {
    grid-template-columns: 1fr;
  }

  .card--flagship {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---------- Steps ---------- */
.steps__inner {
  padding-block: 64px;
}

.steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 1100px) {
  .steps__grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    transform: translateY(-50%);
    background: linear-gradient(
      90deg,
      var(--step-move),
      var(--step-play),
      var(--step-stretch),
      var(--step-feel),
      var(--step-breathe),
      var(--step-believe),
      var(--step-relax)
    );
    opacity: 0.18;
    border-radius: 999px;
    z-index: -1;
  }
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.step-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--step-color, var(--purple-700));
  color: #fff;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-md);
  box-shadow: var(--shadow-sm);
}

.step-card__label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--step-color, var(--purple-700));
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  line-height: 1.1;
}

.step-card__desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: 2px;
}

/* ---------- Details (schedule / pricing / FAQ) ---------- */
.details {
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}

.details::before {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: var(--peri-soft);
  filter: blur(90px);
  opacity: 0.5;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.details__inner {
  position: relative;
  z-index: 1;
  padding-block: 64px;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.detail-card {
  background: var(--white);
  border: 1px dashed var(--red-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.detail-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.detail-card__placeholder {
  font-style: italic;
  color: var(--red);
  font-size: var(--text-sm);
  margin: 0;
}

.faq {
  margin-top: 56px;
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  font-size: var(--text-lg);
  text-align: center;
  margin-bottom: var(--space-4);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: 12px;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--purple-700);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: var(--fw-bold);
  color: var(--peri);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-item p {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.details__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.details__callout {
  margin-top: 24px;
  text-align: center;
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- About ---------- */
.about {
  background: var(--purple-700);
  color: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding-block: 64px;
}

.about__photo {
  width: 100%;
  aspect-ratio: 734 / 676;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about__eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-size: 14px;
  color: var(--yellow);
}

.about__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-2xl);
  margin: 10px 0 16px;
  line-height: 1.15;
}

.about__text {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--purple-100);
}

.about__tags {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ---------- Testimonials ---------- */
.quotes {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.quotes__inner {
  padding-block: 64px;
}

.quotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.testimonial {
  background: var(--testimonial-color, var(--purple-100));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}

.testimonial__mark {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--purple-400);
  height: 1.6rem;
}

.testimonial__quote {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-style: italic;
  font-size: var(--text-md);
  line-height: var(--lh-snug);
  color: var(--purple-800);
}

.testimonial__caption {
  margin-top: var(--space-4);
  font-family: var(--font-display);
}

.testimonial__author {
  font-weight: var(--fw-bold);
  color: var(--brand);
}

.testimonial__meta {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-left: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-800);
  color: var(--purple-100);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-block: 56px;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  color: #fff;
}

.site-footer__lead {
  margin-top: 8px;
  max-width: 420px;
}

.site-footer__social {
  text-align: center;
  padding-block: 4px 0;
}

.site-footer__social a {
  color: var(--purple-200);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
}

.site-footer__social a:hover {
  color: #fff;
}

.site-footer__social a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.site-footer__legal {
  border-top: 1px solid var(--purple-600);
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: var(--purple-300);
  margin-top: 16px;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.offers__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.offers__grid > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.offers__grid > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.offers__grid > [data-reveal]:nth-child(4) { transition-delay: 240ms; }

.steps__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.steps__grid > [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.steps__grid > [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.steps__grid > [data-reveal]:nth-child(4) { transition-delay: 180ms; }
.steps__grid > [data-reveal]:nth-child(5) { transition-delay: 240ms; }
.steps__grid > [data-reveal]:nth-child(6) { transition-delay: 300ms; }
.steps__grid > [data-reveal]:nth-child(7) { transition-delay: 360ms; }

.details__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.details__grid > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.details__grid > [data-reveal]:nth-child(3) { transition-delay: 160ms; }

.about__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.about__grid > [data-reveal]:nth-child(2) { transition-delay: 120ms; }

.quotes__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.quotes__grid > [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.quotes__grid > [data-reveal]:nth-child(3) { transition-delay: 200ms; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero__grid,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__link {
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav__link:hover {
    background: none;
  }

  .site-nav > .btn {
    margin-top: 14px;
    width: 100%;
  }
}

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

  .btn,
  .card,
  .detail-card,
  .nav-toggle__bar,
  .site-nav,
  [data-reveal] {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
