/* ==========================================================================
   Lexi Williams — Creative Intelligence
   Tokens from Assets/design.md
   ========================================================================== */

:root {
  --primary: #9C0F2A;
  --primary-hover: #7D0C22;
  --neutral-dark: #1D0207;
  --neutral-light: #FFF2CA;
  --light-pink: #F4D9DE;
  --white: #FFFFFF;
  --taupe: #D2B18C;
  --gold: #BF9142;
  --terracotta: #D97757;
  --success: #3F7A5B;
  --border: #E4DED2;

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --container-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--neutral-dark);
  background: var(--white);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0 0 16px;
  line-height: 1.2;
}

h1 { font-weight: 800; font-size: 3.5rem; }
h2 { font-weight: 600; font-size: 2.625rem; }
h3 { font-weight: 500; font-size: 1.75rem; }

p { margin: 0 0 16px; }
em { color: var(--primary); font-style: italic; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

section { padding: 96px 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin: 0 0 16px;
}
.eyebrow--center { text-align: center; }

.section-title { max-width: 720px; }
.section-title--center { text-align: center; margin-left: auto; margin-right: auto; }

.section-sub {
  font-size: 1.125rem;
  color: #5a4a4d;
  max-width: 620px;
}
.section-sub--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 16px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--secondary:hover {
  background: var(--neutral-light);
  text-decoration: none;
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--neutral-light);
  text-decoration: none;
}

.btn--pill { border-radius: 999px; }

.btn--lg { padding: 18px 40px; font-size: 1.0625rem; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-dark);
}
.nav__logo:hover { text-decoration: none; }
.nav__logo-mark { width: 36px; height: 36px; }
.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  color: var(--neutral-dark);
  font-weight: 500;
  font-size: 1rem;
}
.nav__links a:not(.btn):hover { color: var(--primary); }

.nav__cta { padding: 12px 24px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--neutral-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, var(--light-pink) 0%, var(--white) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__headline { font-size: 3.5rem; }

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 20px;
}

.hero__sub {
  font-size: 1.25rem;
  color: #5a4a4d;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* --- Cascading fade-in on load --- */

@keyframes cascadeFadeIn {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__copy > * {
  opacity: 0;
  animation: cascadeFadeIn 0.5s ease forwards;
}
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.45s; }

/* --- Phone mockup / animated "video" hero --- */

.hero__visual { display: flex; justify-content: center; }

.hero__phone-stage {
  position: relative;
  width: 300px;
  height: 610px;
}

.hero__person {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 100px;
  width: 340px;
  max-width: none;
  height: auto;
  transform: translateY(-42%);
  pointer-events: none;
  filter: drop-shadow(10px 14px 18px rgba(29, 2, 7, 0.2));
}

.phone {
  width: 300px;
  height: 610px;
  background: var(--neutral-dark);
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(29, 2, 7, 0.18);
  position: relative;
  z-index: 1;
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: var(--neutral-dark);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
}

.phone__feed {
  position: absolute;
  inset: 0;
  animation: feedScroll 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.post {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.post__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--taupe);
  margin-bottom: 10px;
}
.post__avatar--ad { background: var(--terracotta); }

.post__lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 6px;
  width: 60%;
}
.post__lines span:first-child { width: 40%; }

.post__media {
  margin-top: 12px;
  height: 130px;
  border-radius: var(--radius-md);
  background: var(--neutral-light);
}

.post--ad { background: #FBEFEA; }

.post__sponsored {
  font-size: 0.75rem;
  color: #8a7a6a;
  margin-bottom: 8px;
}

.post__ad-card {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
}

.post__ad-art {
  height: 140px;
  background: linear-gradient(135deg, #F6D9CF 0%, #EFC6D6 100%);
  position: relative;
}
.post__ad-art::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 60px;
  background: var(--white);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.post__ad-headline {
  padding: 12px 12px 4px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--neutral-dark);
  margin: 0;
}

.post__ad-btn {
  margin: 12px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.phone__tap {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  animation: tapPulse 9s ease infinite;
}

@keyframes feedScroll {
  0%   { transform: translateY(0); }
  38%  { transform: translateY(-330px); }
  70%  { transform: translateY(-330px); }
  85%  { transform: translateY(-330px) scale(1.03); }
  100% { transform: translateY(0); }
}

@keyframes tapPulse {
  0%, 40% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  46%     { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  58%     { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phone__feed, .phone__tap { animation: none; }
}

/* ==========================================================================
   Proof strip / marquee
   ========================================================================== */

.proof {
  padding: 48px 0;
  background: var(--neutral-dark);
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 24s linear infinite;
}

.marquee__track span {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--neutral-light);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Feature sections (two-column text/image)
   ========================================================================== */

.feature { background: var(--white); }
.feature--alt { background: var(--light-pink); }

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature__inner--reverse { grid-template-columns: 1fr 1fr; }

.feature__headline {
  font-size: 2.625rem;
}

.feature__headline--typewriter { min-height: 2.4em; }

.feature__cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: -0.1em;
  animation: cursorBlink 0.9s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .feature__cursor { animation: none; }
}

.feature__subhead {
  font-size: 1.25rem;
  margin-bottom: 32px;
}

.feature__copy p {
  font-size: 1.125rem;
}

.feature__visual { display: flex; }

.feature__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.feature__cta {
  text-align: center;
  margin-top: 80px;
}

.feature__cta-text {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Testimonials — carousel
   ========================================================================== */

.results { background: var(--white); }

.testimonial-carousel {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  margin: 0;
}

.testimonial-slide__image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-pink);
  min-height: 420px;
  padding: 32px;
}
.testimonial-slide__image img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 12px 32px rgba(29, 2, 7, 0.12);
}

.testimonial-slide__content {
  background: var(--light-pink);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-slide__quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.testimonial-slide__content p {
  font-size: 1rem;
}

.testimonial-slide__content footer {
  margin-top: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--neutral-dark);
}

.testimonial-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.testimonial-arrow:hover { background: var(--neutral-light); }

/* ==========================================================================
   Offers
   ========================================================================== */

.offers { background: var(--white); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.offer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.offer-card--tier1 { background: var(--white); }
.offer-card--tier2 { background: var(--neutral-light); }

.offer-card--tier3 {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.offer-card--tier3 .offer-card__desc { color: #F1D6DC; }

.offer-card--featured {
  background: var(--neutral-dark);
  border-color: var(--neutral-dark);
  color: var(--white);
}

.offer-card__tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.offer-card__tag--light { color: var(--gold); }

.offer-card__name {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.offer-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 16px;
}
.offer-card__price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.offer-card__desc {
  flex-grow: 1;
  font-size: 1rem;
}
.offer-card--featured .offer-card__desc { color: #F1E5D6; }

.offer-card__cta { text-align: center; margin-top: 16px; }

/* ==========================================================================
   INSIGHTS Framework — sticky-stacking scroll cards on a parallax background
   ========================================================================== */

.framework {
  position: relative;
  padding: 0;
  background: var(--neutral-dark);
}

.framework__bg {
  position: absolute;
  inset: 0;
  background-image: url('Assets/Lexi%20Williams%20Photo%201.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.framework__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,2,7,0.8) 0%, rgba(29,2,7,0.55) 45%, rgba(29,2,7,0.8) 100%);
  z-index: 1;
}

.framework__intro {
  position: relative;
  z-index: 2;
  padding: 96px 0 32px;
}
.framework__intro .eyebrow { color: var(--gold); }
.framework__intro .section-title { color: var(--white); }
.framework__intro .section-sub { color: var(--neutral-light); }

.stack { position: relative; z-index: 2; }

.stack__card {
  height: 100vh;
  min-height: 480px;
  position: sticky;
  top: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: calc(var(--i) + 1);
}

.stack__card-inner {
  width: 100%;
  max-width: 75%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 64px;
  text-align: left;
}

.insight-card__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  background: var(--primary);
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 24px;
}

.insight-card__title { font-size: 2.625rem; margin-bottom: 16px; }

.insight-card__text {
  font-size: 1.25rem;
  color: #5a4a4d;
  max-width: 560px;
  margin: 0;
}

.framework__cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px 0;
}

.framework__cta-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.75rem;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--white);
}

@media (max-width: 640px) {
  .framework__bg { background-attachment: scroll; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--white); }

.about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.about__visual {
  position: sticky;
  top: 120px;
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ==========================================================================
   3-step process
   ========================================================================== */

.process { background: var(--light-pink); }

.process__accent { color: var(--terracotta); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.process-step { text-align: left; }

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 20px;
}

.process-step__title { font-size: 1.5rem; }
.process-step__text { color: #5a4a4d; }

.process__cta {
  text-align: center;
  margin-top: 64px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq { background: var(--light-pink); }

.accordion { margin-top: 48px; }

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 4px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--neutral-dark);
  cursor: pointer;
}

.accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  transition: transform 0.2s ease;
}
.accordion__icon::before {
  top: 9px; left: 0; width: 20px; height: 2px;
}
.accordion__icon::after {
  top: 0; left: 9px; width: 2px; height: 20px;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.accordion__panel-inner {
  overflow: hidden;
  padding: 0 4px;
}
.accordion__panel-inner p:last-child { margin-bottom: 0; }

.accordion__panel-inner ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.accordion__panel-inner li {
  margin-bottom: 6px;
}
.accordion__panel-inner li:last-child { margin-bottom: 0; }

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}
.accordion__item.is-open .accordion__panel-inner {
  padding-bottom: 24px;
}

/* ==========================================================================
   Parallax CTA (replaces contact form)
   ========================================================================== */

.parallax-cta {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  text-align: center;
}

.parallax-cta__bg {
  position: absolute;
  inset: 0;
  background-image: url('Assets/Lexi%20Williams%20Photo%207.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.parallax-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,2,7,0.75) 0%, rgba(29,2,7,0.55) 50%, rgba(29,2,7,0.8) 100%);
  z-index: 1;
}

.parallax-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.parallax-cta__headline {
  color: var(--white);
  font-size: 2.625rem;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.parallax-cta__cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--gold);
  margin-left: 4px;
  animation: cursorBlink 0.9s step-end infinite;
}

.type-accent-terracotta {
  color: var(--terracotta);
  font-style: italic;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.parallax-cta__text {
  color: var(--neutral-light);
  font-size: 1.25rem;
  max-width: 560px;
  margin: 0 auto 16px;
}

.parallax-cta__btn { margin-top: 32px; }

@media (max-width: 640px) {
  .parallax-cta__bg { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-cta__cursor { animation: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--neutral-dark); color: var(--neutral-light); padding: 80px 0 32px; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer .nav__logo-text,
.footer .nav__logo { color: var(--white); }

.footer__brand p { color: var(--taupe); margin-top: 12px; font-size: 0.9375rem; }

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__col { display: flex; flex-direction: column; }
.footer__col a {
  color: var(--taupe);
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--taupe);
}

/* ==========================================================================
   Scroll-triggered reveal animations
   (gated behind .js-anim, added by script.js, so content stays visible
   with no animation if JS fails to load)
   ========================================================================== */

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Offers / About / FAQ intro text — cascading fade-in, same style as hero */
.js-anim .offers .eyebrow,
.js-anim .offers .section-title,
.js-anim .offers .section-sub,
.js-anim .about .eyebrow,
.js-anim .about .section-title,
.js-anim .faq .eyebrow,
.js-anim .faq .section-title {
  opacity: 0;
}

.offers.in-view .eyebrow,
.about.in-view .eyebrow,
.faq.in-view .eyebrow {
  animation: cascadeFadeIn 0.5s ease forwards;
  animation-delay: 0s;
}
.offers.in-view .section-title,
.about.in-view .section-title,
.faq.in-view .section-title {
  animation: cascadeFadeIn 0.5s ease forwards;
  animation-delay: 0.12s;
}
.offers.in-view .section-sub {
  animation: cascadeFadeIn 0.5s ease forwards;
  animation-delay: 0.24s;
}

/* Getting Started steps + offer cards — staggered slide-in, 1s apart */
.js-anim .process-step,
.js-anim .offer-card {
  opacity: 0;
}

.process-grid.in-view .process-step,
.offer-grid.in-view .offer-card {
  animation: slideUpIn 0.6s ease forwards;
}
.process-grid.in-view .process-step:nth-child(1) { animation-delay: 0s; }
.process-grid.in-view .process-step:nth-child(2) { animation-delay: 1s; }
.process-grid.in-view .process-step:nth-child(3) { animation-delay: 2s; }

.offer-grid.in-view .offer-card:nth-child(1) { animation-delay: 0s; }
.offer-grid.in-view .offer-card:nth-child(2) { animation-delay: 1s; }
.offer-grid.in-view .offer-card:nth-child(3) { animation-delay: 2s; }
.offer-grid.in-view .offer-card:nth-child(4) { animation-delay: 3s; }

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .offers .eyebrow, .offers .section-title, .offers .section-sub,
  .about .eyebrow, .about .section-title,
  .faq .eyebrow, .faq .section-title,
  .process-step, .offer-card {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__tagline { justify-content: center; }

  .feature__inner,
  .feature__inner--reverse { grid-template-columns: 1fr; text-align: center; }
  .feature__inner .feature__visual { order: -1; max-width: 360px; margin: 0 auto; }
  .feature__inner--reverse .feature__visual { order: -1; max-width: 360px; margin: 0 auto; }

  .testimonial-slide { grid-template-columns: 1fr; }
  .testimonial-slide__image { min-height: 0; padding: 32px 32px 8px; }
  .testimonial-slide__image img { max-width: 200px; }

  .offer-grid { grid-template-columns: repeat(2, 1fr); }

  .about__inner { grid-template-columns: 1fr; }
  .about__visual { position: static; order: -1; max-width: 320px; margin: 0 auto; }
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .insight-card__title { font-size: 2.25rem; }
  .stack__card-inner { max-width: 85%; padding: 40px 40px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 24px; }

  h1, .hero__headline { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.375rem; }
  .feature__headline { font-size: 1.875rem; }

  .nav__links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__cta { order: -1; }
  .nav__toggle { display: flex; }

  .hero__phone-stage { width: 200px; height: 407px; }
  .phone { width: 200px; height: 407px; }
  .hero__person { left: 72px; width: 205px; transform: translateY(-42%); filter: drop-shadow(6px 10px 12px rgba(29, 2, 7, 0.2)); }

  .offer-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .insight-card__title { font-size: 2rem; }
  .insight-card__text { font-size: 1.0625rem; }
  .stack__card-inner { max-width: 92%; padding: 32px 24px; }
  .stack__card { height: auto; min-height: 0; padding: 56px 0; }

  .framework__intro { padding: 64px 0 24px; }
  .framework__cta { padding: 64px 0; }

  .testimonial-carousel { gap: 8px; }
  .testimonial-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .testimonial-slide__content { padding: 32px 24px; }

  .parallax-cta { padding: 96px 0; }
  .parallax-cta__headline { font-size: 1.75rem; }
}
