/*
 * Zyro Shop — custom styles (this file survives theme updates).
 *
 * Colors, fonts and copy live in settings.json; this file only adds the
 * finishing layer on top of the theme's `sa-*` hooks. Everything keys off the
 * theme variables (--cl-accent etc. are "r, g, b" triplets), so changing the
 * accent in the visual editor recolors these effects too.
 */

/* ---------------------------------------------------------------- base */

::selection {
  background: rgba(var(--cl-accent), 0.32);
  color: rgb(var(--cl-t-primary));
}

h1, h2, h3 {
  letter-spacing: -0.022em;
}

html {
  scrollbar-color: rgba(var(--cl-t-muted), 0.35) transparent;
  scrollbar-width: thin;
}

/* ---------------------------------------------------------------- hero */

/* Chrome headline, echoing the metallic Z of the logo. */
[data-scheme="dark"] .sa-hero-title {
  background: linear-gradient(180deg, #ffffff 15%, #aeb9cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em; /* keep descenders inside the clipped gradient */
}

/* The *highlighted* words get the accent as a gradient instead of a flat fill. */
[data-scheme="dark"] .sa-hero-title .mk {
  background: linear-gradient(92deg, rgb(var(--cl-accent)) 0%, #b7a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sa-hero-subtitle {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------- buttons */

.sa-btn {
  font-weight: 600;
}

.sa-btn--primary.sa-btn--solid {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%);
  box-shadow:
    0 0 0 1px rgba(var(--cl-accent), 0.55),
    0 10px 32px -10px rgba(var(--cl-accent), 0.65);
}

.sa-btn--primary.sa-btn--solid:hover {
  box-shadow:
    0 0 0 1px rgba(var(--cl-accent), 0.8),
    0 14px 40px -10px rgba(var(--cl-accent), 0.85);
}

/* ------------------------------------------------------- product cards */

.sa-product-card {
  transition:
    transform var(--dur) ease,
    border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.sa-product-card:hover {
  border-color: rgba(var(--cl-accent), 0.5);
  box-shadow:
    0 0 0 1px rgba(var(--cl-accent), 0.18),
    0 24px 60px -28px rgba(var(--cl-accent), 0.6);
}

.sa-product-card--padded-detail .sa-product-card-media {
  border-radius: calc(var(--radius-card) - 6px);
}

.sa-product-card-title {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.sa-product-card-price {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: rgb(var(--cl-t-primary));
}

/* -------------------------------------------------------------- chrome */

/* Hairline of accent under the announcement bar. */
.sa-announcement--neutral {
  border-bottom-color: transparent;
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(var(--cl-accent), 0.55) 50%,
    transparent
  );
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
  color: rgb(var(--cl-t-muted));
  letter-spacing: 0.01em;
}

.sa-navbar-logo {
  font-family: var(--ff-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sa-footer {
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(var(--cl-accent), 0.4) 50%,
    transparent
  );
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------ sections */

.sa-section-eyebrow {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Feature and step tiles pick up the accent on hover. */
.sa-features-item,
.sa-steps-item {
  transition: border-color var(--dur) ease;
}

.sa-features-item:hover,
.sa-steps-item:hover {
  border-color: rgba(var(--cl-accent), 0.4);
}

/* -------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  .sa-product-card,
  .sa-product-card img,
  .sa-btn {
    transition: none !important;
  }
  .sa-product-card:hover img {
    transform: none !important;
  }
}