/* Shared section scaffolding */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

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

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col.reverse {
    direction: ltr;
  }
  .two-col.reverse > *:first-child {
    order: 2;
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 16px;
}

.eyebrow-light {
  color: var(--yellow);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.section-title-light {
  color: var(--white);
}

.section-body {
  font-size: 17px;
  color: var(--gray);
  max-width: 44ch;
}

.section-body-light {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 40ch;
  margin-bottom: 32px;
}

.section-hook {
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.placeholder-text {
  font-style: italic;
  color: var(--gray);
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}

/* HERO */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 110px;
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero-highlight {
  color: var(--yellow-deep);
  -webkit-text-stroke: 0;
}

.hero-sub {
  font-size: 19px;
  color: var(--gray);
  max-width: 38ch;
  margin-bottom: 36px;
}

.hero-image-frame {
  width: 100%;
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: var(--black-soft);
}

/* HOW IT WORKS */
.how-it-works {
  background: var(--off-white);
}

.steps-timer {
  margin: 40px 0 48px;
}

.steps-timer-track {
  width: 100%;
  height: 6px;
  background: rgba(10,10,10,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.steps-timer-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 100px;
  transition: width 1.2s ease;
}

.steps-timer-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .steps-layout {
    grid-template-columns: 1fr;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

/* Video card fills the full height of the steps grid */
.step-card-video {
  display: flex;
  flex-direction: column;
}

.step-card-video .steps-video-wrap {
  flex: 1;
  margin-top: 0;
}

.step-card-video .steps-video {
  height: 100%;
  aspect-ratio: unset;
}

/* Steps section video — 9:16 portrait */
.steps-video-wrap {
  margin-top: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--black-soft);
}

@media (max-width: 960px) {
  .steps-video-wrap {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
  }
}

.steps-video {
  display: none;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
}

.steps-video.loaded {
  display: block;
}

.steps-video.loaded + .steps-video-fallback {
  display: none;
}

.steps-video-fallback {
  aspect-ratio: 9 / 16;
  border-radius: 20px;
}

.step-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(10,10,10,0.06);
}

.step-mark {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 14px;
}

.step-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 10px;
  display: block;
}

.step-text {
  font-size: 14.5px;
  color: var(--black-soft);
  line-height: 1.5;
}

.no-fuss-strip {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  padding: 24px;
  background: var(--black);
  border-radius: 16px;
}

.no-fuss-strip span {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--white);
  position: relative;
}

/* STUDENT LIFE */
.student-life {
  background: var(--black);
}

/* Shared real-photo style for two-col sections */
.section-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 860px) {
  .section-img {
    aspect-ratio: 16 / 9;
  }
}

.stat-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--black-soft);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(245,197,24,0.25);
}

.stat-row {
  display: flex;
  flex-direction: column;
}

.stat-old {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.3);
}

.stat-new {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 30px;
  color: var(--yellow);
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.stat-arrow {
  font-size: 22px;
  color: var(--yellow);
}

@media (max-width: 480px) {
  .stat-callout { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stat-arrow { transform: rotate(90deg); }
}

/* SOCIAL PROOF */
.social-proof {
  background: var(--white);
}

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

@media (max-width: 720px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.testimonial-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 24px;
  border: 1px dashed rgba(217, 173, 12, 0.4);
}

.testimonial-quote {
  font-size: 14.5px;
  font-style: italic;
  color: var(--black-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--yellow-deep);
}

/* PERFORMANCE */
.performance {
  background: var(--yellow);
}

.performance-inner {
  text-align: center;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.performance .eyebrow {
  color: var(--black-soft);
  justify-content: center;
}

.big-stat {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(80px, 18vw, 160px);
  line-height: 0.9;
  color: var(--black);
  letter-spacing: -0.02em;
}

.big-stat-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 20px);
  max-width: 32ch;
  margin: 12px auto 0;
  color: var(--black-soft);
}

/* PRODUCTS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

.product-card {
  text-align: left;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: var(--off-white);
  display: block;
}

.product-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--yellow);
  border-radius: 100px;
  padding: 3px 10px;
  margin-top: 14px;
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
}

.product-desc {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

/* FOOTER */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 48px;
  text-align: center;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 52px);
  margin-bottom: 32px;
}

.footer-meta {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.footer-legal {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* FOUNDER */
.founder-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  display: block;
}

@media (max-width: 860px) {
  .founder-img {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }
}

/* FAQ */
.faq {
  background: var(--off-white);
}

.faq-list {
  margin-top: 32px;
  max-width: 680px;
}

.faq-item {
  border-bottom: 1px solid rgba(10,10,10,0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--black);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 4px 20px;
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 56ch;
}

/* ========================================
   CAROUSEL — shared styles
   ======================================== */

.carousel-container {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

.carousel-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 10, 0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--yellow-deep);
  transform: scale(1.35);
}

/* Arrows (desktop only by default) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--black);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--yellow);
  box-shadow: 0 4px 16px rgba(245, 197, 24, 0.35);
}

.carousel-arrow-prev {
  left: -21px;
}

.carousel-arrow-next {
  right: -21px;
}

/* ========================================
   STEPS CAROUSEL — mobile only
   ======================================== */

/* Desktop: steps-grid stays as-is (2×2 grid) */
/* The carousel wrapper is display:contents on desktop so it's invisible */
.steps-carousel-mobile {
  display: contents;
}

/* Override carousel-track flex on desktop — keep the 2×2 grid */
.steps-grid.carousel-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-x: visible;
  scroll-snap-type: none;
}

.steps-carousel-mobile .carousel-dots {
  display: none;
}

@media (max-width: 860px) {
  /* On mobile, the carousel wrapper becomes a real carousel */
  .steps-carousel-mobile {
    display: block;
  }

  .steps-carousel-mobile .steps-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-bottom: 4px;
  }

  .steps-carousel-mobile .steps-grid::-webkit-scrollbar {
    display: none;
  }

  .steps-carousel-mobile .steps-grid > .step-card {
    scroll-snap-align: start;
    flex: 0 0 85%;
    min-width: 0;
  }

  .steps-carousel-mobile .carousel-dots {
    display: flex;
  }
}

/* ========================================
   PRODUCTS CAROUSEL — both desktop & mobile
   ======================================== */

/* Override old product-grid with carousel behavior */
.products .carousel-container {
  margin-top: 40px;
}

.products .carousel-track {
  gap: 24px;
}

/* Desktop: 3 visible */
.products .carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 cards minus 2 gaps of 24px */
}

/* Hide arrows on mobile */
@media (max-width: 860px) {
  .products .carousel-slide {
    flex: 0 0 85%;
  }

  .products .carousel-arrow {
    display: none;
  }
}

/* On very narrow screens, make cards nearly full width */
@media (max-width: 480px) {
  .products .carousel-slide {
    flex: 0 0 88%;
  }

  .steps-carousel-mobile .steps-grid > .step-card {
    flex: 0 0 88%;
  }
}
