/* ==========================================================================
   KEKO — homepage-only styles
   Loaded after assets/css/styles.css. Uses its tokens only; defines no
   new colour literals. Scoped to elements that exist on index.html.
   ========================================================================== */

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border-soft);
}

/* soft brand light behind everything */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -12% auto -12%;
  height: 150%;
  background:
    radial-gradient(46% 44% at 74% 26%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%),
    radial-gradient(38% 40% at 14% 82%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%);
  pointer-events: none;
}

/* faint engineering grid, masked to a vignette */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000, transparent 78%);
  mask-image: radial-gradient(72% 62% at 50% 42%, #000, transparent 78%);
  opacity: .55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__title {
  margin-top: var(--s-4);
  font-size: clamp(var(--fs-xl), 6.4vw, var(--fs-3xl));
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(102deg, var(--brand-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: var(--s-5);
  max-width: 48ch;
  font-size: var(--fs-md);
  color: var(--text-dim);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

@media (max-width: 520px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.hero__trust .chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--accent);
  flex: none;
}

/* ------------------------------------------------------------ hero cans -- */
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / .9;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 66%);
  filter: blur(12px);
}
@media (max-width: 920px) {
  .hero__stage { max-width: 420px; margin-top: var(--s-7); }
}

.hero-can {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  --flavor: var(--brand);
  filter: drop-shadow(0 26px 44px color-mix(in srgb, var(--bg) 62%, transparent))
          drop-shadow(0 0 34px color-mix(in srgb, var(--flavor) 34%, transparent));
}
.hero-can--back-l { transform: translate(-106%, -36%) rotate(-16deg) scale(.78); z-index: 1; }
.hero-can--front  { transform: translate(-50%, -53%)  rotate(-3deg);             z-index: 3; }
.hero-can--back-r { transform: translate(6%, -33%)    rotate(16deg)  scale(.78); z-index: 2; }

/* The catalogue photos are square studio shots. In the hero, reveal only the
   round can so the source backdrop cannot appear as a rotated dark card. */
.hero-can .tin--photo {
  -webkit-clip-path: circle(31.8% at 50% 50%);
  clip-path: circle(31.8% at 50% 50%);
}

/* inner wrapper carries the motion so the placement transform stays intact */
.hero-can__inner { animation: hero-float 7s ease-in-out infinite; }
.hero-can--back-l .hero-can__inner { animation-duration: 8.4s;  animation-delay: -1.9s; }
.hero-can--front  .hero-can__inner { animation-duration: 6.6s;  animation-delay: 0s; }
.hero-can--back-r .hero-can__inner { animation-duration: 7.8s;  animation-delay: -1s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-can__inner { animation: none; }
}

/* ------------------------------------------------------- strength strip -- */
.strength-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: var(--s-3);
}
.strength-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.strength-tile:hover {
  border-color: var(--brand);
  background: var(--surface);
  transform: translateY(-3px);
}
.strength-tile__mg {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.strength-tile__mg span {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-faint);
  margin-left: 3px;
}
.strength-tile__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-dim);
}
.strength-tile__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform-origin: left center;
  transform: scaleX(var(--fill, .2));
}

/* --------------------------------------------------------------- steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: var(--s-4);
}
.step {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
}
.step__num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--brand-bright);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.step h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--text-dim); }

/* ------------------------------------------------------------- reviews --- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: var(--s-4);
}
.review {
  margin: 0; /* figure has a UA margin */
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
}
.review__stars { color: var(--warn); font-size: var(--fs-sm); letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: var(--fs-sm); line-height: 1.65; }
.review__who { margin-top: auto; font-size: var(--fs-xs); color: var(--text-faint); }

/* ----------------------------------------------------------------- faq --- */
.faq-list { display: grid; gap: var(--s-3); }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-faint);
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  max-width: 82ch;
  padding: 0 var(--s-5) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.faq-item p a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------- narrow product cards -- */
/* .product-grid drops to two columns at 520px, which leaves ~126px of body
   width for .card__foot — a single row holding the price and the rating chip.
   Let that row wrap instead of colliding. Scoped to this page's grids. */
@media (max-width: 520px) {
  .product-grid .card__foot {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--s-2);
  }
  .product-grid .card__foot .price { font-size: var(--fs-base); }
  .product-grid .card__foot .price del { margin-right: var(--s-1); }
}
