#sf-home {
  --sf-max: 1800px;
  color: var(--sf-text);
  background: var(--sf-bg);
  overflow-x: hidden;
}

#sf-home * {
  box-sizing: border-box;
}

#sf-home h1,
#sf-home h2,
#sf-home h3 {
  font-family: var(--sf-font);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

#sf-home p {
  line-height: 1.6;
  color: var(--sf-text-muted);
}

.sf-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin-bottom: 2rem;
}

.sf-section-title--underline {
  position: relative;
  font-size: clamp(2.25rem, 4vw + 1rem, 3.25rem);
  padding-bottom: 0.6rem;
  margin-bottom: 2.4rem;
}

.sf-squiggle {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  transform: translateX(-50%);
  width: 65%;
  min-width: 120px;
  height: 0.9rem;
  color: var(--sf-text);
}

/* Scroll-in reveal — applied to section wrappers via .sf-reveal, toggled
   to .is-visible by IntersectionObserver in homepage.js as each section
   enters the viewport. Hero is intentionally excluded (already above the
   fold, shouldn't be invisible on load). */

.sf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.sf-admin-note {
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--sf-border);
  border-radius: 6px;
  max-width: var(--sf-max);
  margin: 0 auto;
}

/* Hero CTA gets a deliberate flashy hover — everywhere else stays the
   restrained sitewide default (see style.css); this is scoped to the
   hero specifically. */
.sf-hero .sf-btn--primary:hover {
  background: #39ff14;
  color: #0a1a05;
  box-shadow: 0 0 0 1px #39ff14, 0 0 24px 4px rgba(57, 255, 20, 0.55);
}

/* Hero */

.sf-hero {
  position: relative;
  min-height: min(84vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sf-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.sf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 38, 43, 0.8) 0%, rgba(32, 38, 43, 0.62) 55%, rgba(32, 38, 43, 0.32) 100%);
}

.sf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--sf-max);
  margin: 0 auto;
  width: 100%;
  padding: clamp(2.5rem, 6vw, var(--sf-space-xl)) 1.5rem;
}

.sf-hero__copy {
  max-width: 36em;
}

.sf-hero__title {
  color: var(--sf-text-inverse);
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 700;
}

#sf-home .sf-hero__subtitle {
  color: rgba(247, 246, 243, 0.72);
  font-size: 1.1rem;
  max-width: 34em;
  margin-bottom: 1rem;
}

#sf-home .sf-hero__standards {
  color: rgba(247, 246, 243, 0.72);
  font-size: 0.95rem;
  max-width: 38em;
  line-height: 1.7;
  padding-top: var(--sf-space-sm);
  border-top: 1px solid rgba(247, 246, 243, 0.2);
  margin-bottom: var(--sf-space-md);
}

.sf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.sf-hero .sf-btn--ghost,
.sf-hero-mobile__body .sf-btn--ghost {
  color: var(--sf-text-inverse);
  border-color: rgba(247, 246, 243, 0.5);
}
.sf-hero .sf-btn--ghost:hover,
.sf-hero-mobile__body .sf-btn--ghost:hover {
  background: var(--sf-text-inverse);
  color: var(--sf-bg-dark);
}

.sf-hero .sf-swatch__label,
.sf-hero-mobile__body .sf-swatch__label {
  color: rgba(247, 246, 243, 0.75);
}

.sf-swatches {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.sf-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sf-swatch::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sf-swatch-color);
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-swatch:hover::before,
.sf-swatch:focus-visible::before {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--sf-bg), 0 0 0 3px var(--sf-swatch-color);
}

.sf-swatch:focus-visible {
  outline: none;
}

.sf-swatch__label {
  font-size: 0.7rem;
  color: var(--sf-text-muted);
}

/* Hero (mobile) — a separate section from .sf-hero rather than squeezing
   the desktop copy down: image on top at its own natural crop (clear, not
   the heavily-overlaid/cropped desktop treatment), short copy below on a
   solid dark panel. Reuses the same hero-banner.jpg (no second asset, no
   double-download — same URL, browser fetches it once either way), just a
   tighter portrait-ish crop via aspect-ratio instead of forcing a
   viewport-height-driven box. Hidden entirely above 760px; .sf-hero
   (desktop) hidden below it — see the shared @media block further down. */

.sf-hero-mobile {
  display: none;
}

.sf-hero-mobile__media {
  overflow: hidden;
}

.sf-hero-mobile__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
}

.sf-hero-mobile__body {
  background: var(--sf-bg-dark);
  padding: 1.75rem 1.5rem 2.5rem;
}

.sf-hero-mobile__title {
  margin: 0 0 0.75rem;
  color: var(--sf-text-inverse);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

#sf-home .sf-hero-mobile__subtitle {
  margin: 0 0 1.5rem;
  color: rgba(247, 246, 243, 0.72);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .sf-hero--desktop {
    display: none;
  }
  .sf-hero-mobile {
    display: block;
  }
}

/* Trust bar */

.sf-trustbar {
  background: var(--sf-bg-dark);
  padding: 0.9rem 1.5rem;
}

.sf-trustbar ul {
  max-width: var(--sf-max);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 0;
}

.sf-trustbar li {
  color: var(--sf-text-inverse);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Shop */

.sf-shop {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}

/* `minmax(220px, 1fr)` only ever fits 1 column below ~460px — on a phone
   that's a single huge card per row, mostly empty space either side.
   User asked for 4 per row specifically on mobile instead. */
@media (max-width: 640px) {
  .sf-product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .sf-product-card__image {
    margin-bottom: 0.5rem;
    border-radius: 6px;
  }

  .sf-product-card__cta {
    display: none;
  }

  .sf-product-card__add {
    top: 0.3rem;
    right: 0.3rem;
    width: 20px;
    height: 20px;
  }

  .sf-product-card__add svg {
    width: 10px;
    height: 10px;
  }

  .sf-product-card__title {
    font-size: 0.68rem;
    line-height: 1.25;
    margin-bottom: 0.15rem;
  }

  .sf-product-card__price {
    font-size: 0.68rem;
  }
}

.sf-product-card {
  position: relative;
  transition: transform 0.25s ease;
}
.sf-product-card:hover {
  transform: translateY(-6px);
}

.sf-product-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sf-product-card__add {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sf-accent) !important;
  color: var(--sf-text-inverse) !important;
  box-shadow: 0 2px 8px rgba(43, 50, 56, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.sf-product-card__add svg {
  width: 15px;
  height: 15px;
  stroke: currentColor !important;
}

.sf-product-card__add:hover {
  background: var(--sf-accent-hover) !important;
  transform: scale(1.08);
}

.sf-product-card__add.added {
  background: #1e9e5a;
  color: var(--sf-text-inverse);
}

/* WooCommerce's own ajax_add_to_cart JS appends a "View cart" link right
   after this button on success — kept in the DOM (still a real, working
   link) but visually hidden, since a checkmark-tinted icon is enough
   feedback in this compact card context. */
.sf-product-card .added_to_cart {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.sf-product-card__image {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.25s ease;
}

.sf-product-card:hover .sf-product-card__image {
  box-shadow: 0 24px 48px -16px rgba(43, 50, 56, 0.25);
}

.sf-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sf-product-card:hover .sf-product-card__image img {
  transform: scale(1.08);
}

.sf-product-card__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-text-inverse);
  background: linear-gradient(0deg, rgba(43, 50, 56, 0.85), rgba(43, 50, 56, 0));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sf-product-card:hover .sf-product-card__cta {
  transform: translateY(0);
}

.sf-product-card__title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  transition: color 0.15s ease;
}

.sf-product-card:hover .sf-product-card__title {
  color: var(--sf-text-muted);
}

.sf-product-card__price {
  font-weight: 600;
  color: var(--sf-text);
}

/* Story band */

.sf-story {
  position: relative;
  background: var(--sf-bg-dark);
  color: var(--sf-text-inverse);
  overflow: hidden;
}

.sf-story__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sf-story__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.24;
}

.sf-story__inner {
  position: relative;
  z-index: 1;
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, var(--sf-space-xl)) 1.5rem;
  text-align: center;
}

.sf-story__copy {
  max-width: 40em;
  margin: 0 auto;
}

.sf-story__copy h2 {
  color: var(--sf-text-inverse);
  font-size: clamp(2.1rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

#sf-home .sf-story__copy p {
  color: rgba(247, 246, 243, 0.72);
  font-size: 1.1rem;
  margin: 0;
}

/* Testimonials */

.sf-testimonials {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}

.sf-testimonials__subhead {
  max-width: 40em;
  margin: 0 auto;
  color: var(--sf-text-muted);
  font-size: 1.05rem;
}

.sf-testimonial-carousel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.sf-testimonial-track {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .sf-testimonial-track {
    min-height: 380px;
  }
}

.sf-testimonial {
  margin: 0;
}

/* Screenshot review variant — real Facebook review screenshots vary wildly
   in size/shape (short text strips to full tall story captures), so this
   bounds them into a consistent frame with object-fit:contain rather than
   cropping, and reserves enough height that the section doesn't jump around
   between a short screenshot and a tall one. */

.sf-testimonial-shot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.sf-testimonial-track--shots {
  min-height: 460px;
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .sf-testimonial-track--shots {
    min-height: 420px;
  }
  .sf-testimonial-shot-row {
    gap: 0.5rem;
  }
}

.sf-shot-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--sf-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.sf-shot-arrow svg {
  width: 26px;
  height: 26px;
}

.sf-shot-arrow:hover {
  color: var(--sf-text);
}

.sf-testimonial--shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.sf-testimonial--shot[hidden] {
  display: none;
}

.sf-testimonial--shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(380px, 100%);
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px -16px rgba(43, 50, 56, 0.3);
}

.sf-stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

#sf-home .sf-testimonial p {
  font-size: 1.2rem;
  color: var(--sf-text);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.sf-testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--sf-text-muted);
}

.sf-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.sf-testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--sf-border);
  padding: 0;
  cursor: pointer;
}

.sf-testimonial-dot.is-active {
  background: var(--sf-text);
}

/* Why Use Slimline */

.sf-squiggle--wide {
  width: 90%;
}

.sf-why-use {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.sf-why-use__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 760px) {
  .sf-why-use__grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 600px);
    justify-content: center;
    gap: 2.5rem;
  }
}

.sf-why-use__media img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.sf-why-use__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sf-why-use__item h3 {
  font-family: var(--sf-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sf-text);
  margin: 0 0 0.4rem;
}

.sf-why-use__item p {
  color: var(--sf-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Newsletter */

.sf-newsletter {
  background: var(--sf-bg-dark);
  color: var(--sf-text-inverse);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.sf-newsletter__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.sf-newsletter__inner h2 {
  color: var(--sf-text-inverse);
  font-size: clamp(1.4rem, 2vw + 1rem, 1.9rem);
}

.sf-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .sf-newsletter__form {
    flex-direction: row;
  }
}

.sf-newsletter__form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(246, 245, 243, 0.3);
  background: rgba(246, 245, 243, 0.05);
  color: var(--sf-text-inverse);
  font-size: 0.95rem;
}

.sf-newsletter__form input[type="email"]::placeholder {
  color: rgba(246, 245, 243, 0.5);
}

.sf-newsletter__message {
  margin-top: 1.25rem;
  color: rgba(246, 245, 243, 0.85);
}

.sf-newsletter__message--error {
  color: #ff8a8a;
}

/* Comparison table */

.sf-comparison {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}

.sf-comparison__subhead {
  max-width: 40em;
  margin: 0 auto;
  color: var(--sf-text-muted);
  font-size: 1.05rem;
}

.sf-squiggle--standalone {
  position: static;
  display: block;
  transform: none;
  width: 140px;
  height: 1rem;
  margin: 1.25rem auto 2.5rem;
}

.sf-comparison__table-wrap {
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
}

.sf-comparison__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sf-comparison__table th,
.sf-comparison__table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--sf-border);
}

.sf-comparison__table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sf-text-muted);
}

.sf-comparison__table th:first-child,
.sf-comparison__table td:first-child {
  text-align: left;
}

.sf-comparison__table th:not(:first-child),
.sf-comparison__table td:not(:first-child) {
  text-align: center;
}

.sf-comparison__feature {
  font-weight: 600;
  color: var(--sf-text);
}

.sf-tick {
  display: inline-block;
  vertical-align: middle;
}

.sf-tick--yes {
  color: #1e9e5a;
}

.sf-tick--no {
  color: #dc3545;
}

@media (max-width: 640px) {
  .sf-comparison__table th,
  .sf-comparison__table td {
    padding: 0.7rem 0.6rem;
    font-size: 0.85rem;
  }
}
