/* ==========================================================================
   HOMEPAGE SECTIONS
   Proportions from the reference's rendered design, not just its markup.
   Key moves: gradient panel for the trust band, dark panels for score and
   final CTA, tinted image wells, indent-cascading process steps.
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(40px, 5vw, 76px) clamp(32px, 4vw, 56px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(28px, 3.2vw, 48px);
}

.hero__h1 {
  margin-top: 26px;
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: -.042em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: var(--t-md);
  color: var(--ink-70);
  line-height: var(--lh-snug);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Divider above the proof cluster, as in the reference. */
.proof {
  display: flex; align-items: center; gap: 16px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.faces { display: flex; }
.faces span {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-left: -12px;
  border: 2px solid var(--paper); border-radius: 50%;
  background: var(--grad);
  font-size: var(--t-xs); font-weight: var(--w-heavy); color: var(--brand-ink);
}
.faces span:first-child { margin-left: 0; }
.proof__score { display: flex; align-items: center; gap: 9px; font-weight: var(--w-heavy); }
.proof__txt { font-size: var(--t-xs); color: var(--ink-45); margin-top: 3px; }

/* Product shots float free — no bordered box. */
.hero__stage { position: relative; }
.stage {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: var(--grad-soft);
}
.stage__note { font-size: var(--t-sm); color: var(--ink-45); text-align: center; padding: 24px; }

/* Floating info cards with icon + two lines. */
.stage__badge {
  position: absolute;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh);
}
.stage__badge i {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-wash); color: var(--brand-d);
  font-style: normal; font-size: 15px;
}
.stage__badge b { display: block; font-size: var(--t-xs); font-weight: var(--w-heavy); }
.stage__badge span { display: block; font-size: var(--t-2xs); color: var(--ink-45); }
.stage__badge--a { top: 6%; left: -18px; }
.stage__badge--b { bottom: 8%; right: -18px; }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: 2; }
  .stage { aspect-ratio: 16 / 10; }
  .stage__badge--a { left: 10px; }
  .stage__badge--b { right: 10px; }
}
@media (max-width: 600px) {
  .hero__cta .btn { width: 100%; }
  .stage__badge { position: static; margin: 8px auto 0; display: inline-flex; }
  .stage { aspect-ratio: auto; padding-block: 30px; }
}

/* --- Category rail --------------------------------------------------------
   Horizontal scrolling pill strip under the hero. */

.rail {
  padding-block: 18px;
  background: var(--wash);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.rail__track {
  display: flex; gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: calc(var(--shell-max) + var(--shell-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item {
  flex-shrink: 0;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: var(--t-xs); font-weight: var(--w-heavy);
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
}
.rail__item:hover { color: var(--brand-d); border-color: var(--brand-l); }

/* --- Trust band — full gradient panel -------------------------------------- */

.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-xl);
  background: var(--grad-panel);
  box-shadow: var(--sh-brand);
  overflow: hidden;
}
.band__cell { padding: clamp(26px, 3vw, 42px) clamp(18px, 2vw, 32px); }
.band__cell + .band__cell { border-left: 1px solid rgb(255 255 255 / .18); }
.band__value {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: var(--w-black);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}
.band__label { display: block; margin-top: 10px; font-size: var(--t-xs); color: rgb(255 255 255 / .82); }

@media (max-width: 782px) {
  .band { grid-template-columns: repeat(2, 1fr); }
  .band__cell:nth-child(3) { border-left: 0; }
  .band__cell:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .18); }
}

/* --- Bestsellers carousel -------------------------------------------------- */

.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 14px;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink-70); cursor: pointer;
}
.carousel__btn:hover { background: var(--wash); color: var(--ink); }
.carousel__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.head__tools { display: flex; align-items: center; gap: 14px; }

@media (max-width: 600px) {
  .carousel__track { grid-auto-columns: minmax(180px, 76%); }
  .head__tools .carousel__nav { display: none; }
}

/* --- How it works — indent cascade ----------------------------------------- */

.steps { display: grid; gap: 18px; }

.fstep {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--sh-sm);
}
/* Each step steps further right — the reference's cascade. */
.steps .fstep:nth-child(2) { margin-left: clamp(0px, 5vw, 60px); }
.steps .fstep:nth-child(3) { margin-left: clamp(0px, 10vw, 120px); }

.fstep__n {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: var(--w-black);
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fstep__body h3 { font-size: var(--t-md); font-weight: var(--w-heavy); margin-bottom: 8px; }
.fstep__body p { font-size: var(--t-sm); color: var(--ink-70); }
.fstep__time {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--brand-wash);
  font-size: var(--t-2xs); font-weight: var(--w-heavy);
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-d);
  white-space: nowrap;
}
.fstep__time:empty { display: none; }

@media (max-width: 760px) {
  .steps .fstep { margin-left: 0 !important; }
  .fstep { grid-template-columns: 58px 1fr; align-items: start; }
  .fstep__time { grid-column: 2; justify-self: start; margin-top: 12px; }
}

/* --- Reviews — dark score panel -------------------------------------------- */

.reviews { display: grid; grid-template-columns: .78fr 2fr; gap: var(--gap); align-items: start; }

.score {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r);
  background: var(--grad-dark);
  color: #fff;
}
.score__n { font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: var(--w-black); line-height: 1; letter-spacing: -.04em; }
.score__n span { font-size: 1.1rem; opacity: .6; }
.score .stars { display: block; margin: 12px 0 16px; font-size: var(--t-md); }
.score__basis { font-size: var(--t-xs); color: rgb(255 255 255 / .72); line-height: var(--lh-snug); }

.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review {
  display: flex; flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.review__tag {
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--brand-wash); color: var(--brand-d);
  font-size: var(--t-2xs); font-weight: var(--w-heavy);
  letter-spacing: .06em; text-transform: uppercase;
}
.review p { font-size: var(--t-sm); color: var(--ink-70); line-height: var(--lh-snug); }
.review__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
}
.review__ava {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: var(--t-xs); font-weight: var(--w-heavy);
}
.review__who { font-weight: var(--w-bold); }
.review__ok { color: var(--stock); font-weight: var(--w-bold); }

@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; }
}

/* --- FAQ ------------------------------------------------------------------- */

.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.faq__item summary {
  position: relative;
  padding: 22px 56px 22px 24px;
  font-weight: var(--w-heavy);
  font-size: var(--t-base);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-wash); color: var(--brand-d);
  font-size: 1.1rem; font-weight: 400;
}
.faq__item[open] summary::after { content: "\2013"; }
.faq__a { padding: 0 24px 24px; font-size: var(--t-sm); color: var(--ink-70); }

/* --- Final CTA — dark panel ------------------------------------------------ */

.final {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(26px, 3.4vw, 54px);
  padding: clamp(32px, 4.4vw, 62px);
  border-radius: var(--r-xl);
  background: var(--grad-dark);
  color: #fff;
}
.final__copy h2 {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: -.03em;
  color: #fff;
}
.final__copy p { margin-top: 18px; color: rgb(255 255 255 / .74); font-size: var(--t-sm); max-width: 44ch; }
.final__copy .btn { margin-top: 30px; }
.final__reassure { margin-top: 20px; font-size: var(--t-xs); color: rgb(255 255 255 / .5); }
.final__media { border-radius: var(--r); overflow: hidden; background: rgb(255 255 255 / .07); aspect-ratio: 16 / 11; display: grid; place-items: center; }
.final__media span { font-size: var(--t-sm); color: rgb(255 255 255 / .5); padding: 20px; text-align: center; }

@media (max-width: 1080px) { .final { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .final__copy .btn { width: 100%; } }

/* --- Legal notice — rounded panel ------------------------------------------ */

.legal { padding-block: clamp(28px, 3.4vw, 44px); }
.legal__panel {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r);
  background: var(--wash);
  font-size: var(--t-xs);
  color: var(--ink-70);
  line-height: var(--lh-snug);
}
.legal__panel strong { color: var(--ink); }
