/* =============================================================
   Posh Sidekick — style.css
   Mobile-first | No framework | Target: PageSpeed 95–100
   ============================================================= */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   All brand values live here — change one variable, update everywhere.
--------------------------------------------------------------- */
:root {
  /* Brand palette (extracted from poshsidekick.com CSS) */
  --clr-brand: #2f327d; /* deep navy-purple */
  --clr-brand-mid: #6b4fbb; /* mid purple (gradient midpoint) */
  --clr-accent: #fe4a7c; /* hot-pink CTA */
  --clr-accent-dark: #e03267; /* hover / pressed state */
  --clr-success: #61ce70; /* green checkmarks */
  --clr-warning: #f59e0b; /* star ratings */

  /* Neutrals */
  --clr-white: #ffffff;
  --clr-bg: #fafafa;
  --clr-bg-pink: #fdeef3; /* hero / testimonials tint */
  --clr-text: #231f20;
  --clr-text-muted: #54595f;
  --clr-border: #e8e8f0;

  /* Typography — system-first, Poppins only when loaded */
  --font:
    "Poppins", system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
    sans-serif;

  /* 8-pt spacing grid */
  --sp-1: 0.25rem; /*  4px */
  --sp-2: 0.5rem; /*  8px */
  --sp-3: 0.75rem; /* 12px */
  --sp-4: 1rem; /* 16px */
  --sp-5: 1.25rem; /* 20px */
  --sp-6: 1.5rem; /* 24px */
  --sp-8: 2rem; /* 32px */
  --sp-10: 2.5rem; /* 40px */
  --sp-12: 3rem; /* 48px */
  --sp-16: 4rem; /* 64px */
  --sp-20: 5rem; /* 80px */

  /* Layout */
  --max-w: 1160px;
  --pad-x: 1.25rem; /* container inline padding */

  /* Shape */
  --r-sm: 0.375rem;
  --r-md: 0.75rem;
  --r-lg: 1.25rem;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --sh-md: 0 4px 18px rgba(47, 50, 125, 0.13);
  --sh-lg: 0 14px 44px rgba(47, 50, 125, 0.2);

  /* Motion */
  --ease: 200ms ease;
}

/* ---------------------------------------------------------------
   2. RESET
--------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* keeps user browser preference */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Images & media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons */
button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

/* Headings — default to brand color */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--clr-brand);
}

/* ---------------------------------------------------------------
   3. ACCESSIBILITY
--------------------------------------------------------------- */
/* Visible focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------
   4. LAYOUT UTILITIES
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------------------------------------------------------------
   5. BUTTONS
   All variants derive from .btn base class.
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--ease),
    color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
  cursor: pointer;
}

/* Primary — hot pink */
.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(254, 74, 124, 0.35);
}
.btn--primary:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(254, 74, 124, 0.45);
}
.btn--primary:active {
  transform: translateY(0);
}

/* Outline — navy border */
.btn--outline {
  background: transparent;
  color: var(--clr-brand);
  border: 2px solid var(--clr-brand);
}
.btn--outline:hover {
  background: var(--clr-brand);
  color: var(--clr-white);
}

/* Modifier: large */
.btn--large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* Modifier: full-width */
.btn--full {
  width: 100%;
}

/* Modifier: white (for dark section backgrounds) */
.btn--light {
  background: var(--clr-white);
  color: var(--clr-brand);
  box-shadow: none;
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

/* ---------------------------------------------------------------
   6. SECTION CHROME (shared across sections)
--------------------------------------------------------------- */
section {
  padding-block: var(--sp-16);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

/* Eyebrow label above h2 */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  color: var(--clr-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.0625rem;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--clr-accent) 0%,
    var(--clr-brand-mid) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------------------------------------------------------------
   HERO — Download Badges
--------------------------------------------------------------- */
.hero__download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-brand);
  transition:
    border-color var(--ease),
    background var(--ease);
}
.badge-link:hover {
  border-color: var(--clr-brand);
  background: rgba(47, 50, 125, 0.05);
}

/* ---------------------------------------------------------------
   HERO DEVICE — platform pills
--------------------------------------------------------------- */
.device-platforms {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.platform-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}
.platform-pill--posh {
  background: #fdeef3;
  color: #c0395a;
}
.platform-pill--merc {
  background: #e8f5e9;
  color: #2e7d32;
}
.platform-pill--ebay {
  background: #e3f2fd;
  color: #1565c0;
}

/* ---------------------------------------------------------------
   FEATURE CARD — platform tag
--------------------------------------------------------------- */
.feature-card__platform-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: var(--clr-bg-pink);
  padding: 2px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}

/* ---------------------------------------------------------------
   PLATFORMS STRIP
--------------------------------------------------------------- */
.platforms {
  padding-block: var(--sp-10);
  background: var(--clr-bg);
  text-align: center;
}

.platforms__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
}

.platforms__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}

.platform-logo {
  padding: var(--sp-3) var(--sp-6);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  /*
    In production, replace these text labels with:
    <img src="poshmark-logo.webp" width="100" height="24"
         alt="Poshmark" loading="lazy">
    Use .webp format — typically 80% smaller than PNG.
  */
}

/* ---------------------------------------------------------------
   COMMUNITY RATES SECTION
--------------------------------------------------------------- */
.community {
  padding-block: var(--sp-16);
  background: linear-gradient(
    160deg,
    var(--clr-bg-pink) 0%,
    var(--clr-white) 100%
  );
}

.community__inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 768px) {
  .community__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.community__content p {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-8);
  max-width: 48ch;
}
.community__content .btn--outline {
  margin-top: var(--sp-2);
}

.community__card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--sh-md);
}

.community-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-pink);
  border-radius: var(--r-md);
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}

.community__card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-3);
}
.community__card p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}

.community-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-accent);
  transition: color var(--ease);
}
.community-link:hover {
  color: var(--clr-accent-dark);
}

/* ---------------------------------------------------------------
   FOOTER APPS
--------------------------------------------------------------- */
.footer-apps {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.footer-app-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--r-full);
  transition:
    color var(--ease),
    border-color var(--ease);
}
.footer-app-link:hover {
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Fade-in animation driven by IntersectionObserver in script.js */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ---------------------------------------------------------------
   7. NAVIGATION
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}
.site-header.scrolled {
  border-color: var(--clr-border);
  box-shadow: var(--sh-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: var(--sp-6);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.25rem;
  color: var(--clr-brand);
  letter-spacing: -0.01em;
}
.logo-text strong {
  color: var(--clr-accent);
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--clr-brand);
  border-radius: 2px;
  transition:
    transform var(--ease),
    opacity var(--ease);
  transform-origin: center;
}
/* Animate to ✕ when expanded */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — hidden by default */
.nav__menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--clr-white);
  padding: var(--sp-4) var(--pad-x);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--sh-md);
  gap: var(--sp-1);
}
.nav__menu.open {
  display: flex;
}

.nav__link {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: color var(--ease);
}
.nav__link:hover {
  color: var(--clr-brand);
}

.nav__link--cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--clr-accent);
  color: var(--clr-white) !important;
  border-radius: var(--r-full);
  font-weight: 600;
  margin-top: var(--sp-2);
  transition: background var(--ease);
}
.nav__link--cta:hover {
  background: var(--clr-accent-dark);
}

/* ---- Desktop overrides ---- */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: var(--sp-1);
  }

  .nav__link--cta {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------
   8. HERO
--------------------------------------------------------------- */
.hero {
  padding-block: var(--sp-16) var(--sp-12);
  background: linear-gradient(
    160deg,
    var(--clr-bg-pink) 0%,
    var(--clr-white) 55%
  );
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

/* Badge pill above h1 */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(47, 50, 125, 0.08);
  color: var(--clr-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.025em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--clr-text-muted);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.hero__cta-note {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

/* --- Dashboard mockup (pure CSS, no image) --- */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__device {
  width: 100%;
  max-width: 380px;
  background: var(--clr-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

.device-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-border);
}
.device-dot:nth-child(1) {
  background: #ff5f57;
}
.device-dot:nth-child(2) {
  background: #febc2e;
}
.device-dot:nth-child(3) {
  background: #28c840;
}

.device-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.device-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
}

.device-stat--highlight {
  background: linear-gradient(
    135deg,
    var(--clr-brand) 0%,
    var(--clr-brand-mid) 100%
  );
  border-color: transparent;
}
.device-stat--highlight .stat-label,
.device-stat--highlight .stat-value {
  color: var(--clr-white);
}
.device-stat--highlight .stat-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-top: 3px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}
.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--clr-brand);
  line-height: 1;
}
.stat-tag {
  color: rgba(255, 255, 255, 0.8);
}

.device-progress-row {
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.progress-bar {
  height: 6px;
  background: var(--clr-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-brand-mid));
  border-radius: var(--r-full);
}
.stat-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-brand);
  align-self: flex-end;
}

/* Two-column hero at ≥768px */
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------
   9. SOCIAL PROOF BAR
--------------------------------------------------------------- */
.proof-bar {
  padding-block: var(--sp-8);
  background: var(--clr-brand);
}

.proof-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-6);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  color: var(--clr-white);
  text-align: center;
}
.proof-stat strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.proof-stat span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
}

.proof-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .proof-divider {
    display: none;
  }
  .proof-bar__inner {
    gap: var(--sp-8);
  }
}

/* ---------------------------------------------------------------
   10. FEATURES
--------------------------------------------------------------- */
.features {
  background: var(--clr-white);
}

.features__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr; /* mobile: 1 col */
}

@media (min-width: 600px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: var(--sp-6);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  transition:
    box-shadow var(--ease),
    transform var(--ease);
}
.feature-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-pink);
  border-radius: var(--r-md);
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-3);
}
.feature-card p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   11. HOW IT WORKS
--------------------------------------------------------------- */
.how-it-works {
  background: var(--clr-bg);
}

.steps {
  max-width: 660px;
  margin-inline: auto;
  position: relative;
}

/* Vertical connecting line */
.steps::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-border);
  z-index: 0;
}

.step {
  display: flex;
  gap: var(--sp-6);
  padding-bottom: var(--sp-10);
  position: relative;
  z-index: 1;
}
.step:last-child {
  padding-bottom: 0;
}

.step__number {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-white);
  border: 2px solid var(--clr-brand);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-brand);
  z-index: 1;
}

.step__content {
  padding-top: var(--sp-3);
}
.step__content h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
}
.step__content p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------
   12. PRICING
--------------------------------------------------------------- */
.pricing {
  background: linear-gradient(180deg, var(--clr-white) 0%, var(--clr-bg) 100%);
}

.pricing__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  padding: var(--sp-8);
  border: 2px solid var(--clr-border);
  border-radius: var(--r-lg);
  background: var(--clr-white);
  position: relative;
  transition:
    box-shadow var(--ease),
    transform var(--ease);
}
.pricing-card:hover {
  box-shadow: var(--sh-md);
}

.pricing-card--featured {
  border-color: var(--clr-brand);
  box-shadow: var(--sh-lg);
  transform: scale(1.02);
}
.pricing-card--featured:hover {
  transform: scale(1.03);
}

.pricing-card__badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: var(--clr-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: var(--sp-6);
}
.pricing-card__header h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-3);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: var(--sp-2);
}
.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-brand);
  line-height: 1;
}
.price-amount {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--clr-brand);
  line-height: 1;
}
.price-period {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
}
.price-note {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
}

.pricing-card__features {
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Feature list items with icon prefix */
.feat {
  font-size: 0.9375rem;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.feat::before {
  flex-shrink: 0;
  font-size: 0.875rem;
}

.feat--yes {
  color: var(--clr-text);
}
.feat--yes::before {
  content: "✓";
  color: var(--clr-success);
  font-weight: 700;
}

.feat--no {
  color: var(--clr-text-muted);
  opacity: 0.55;
}
.feat--no::before {
  content: "✗";
}

/* Money-back note */
.pricing__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  margin-top: var(--sp-10);
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}
.pricing__guarantee svg {
  color: var(--clr-brand);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   13. TESTIMONIALS
--------------------------------------------------------------- */
.testimonials {
  background: var(--clr-bg-pink);
}

.testimonials__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  border: 1px solid var(--clr-border);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  font-size: 1.0625rem;
  color: var(--clr-warning);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.testimonial-card p {
  color: var(--clr-text);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-6);
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--clr-brand) 0%,
    var(--clr-brand-mid) 100%
  );
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  /*
    In production replace with:
    <img src="avatar-sarah.webp" width="40" height="40" alt="Sarah M." loading="lazy">
  */
}

.testimonial-card footer strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--clr-brand);
}
.testimonial-card footer span {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
}

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

.faq__list {
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-brand);
  gap: var(--sp-4);
  transition: background var(--ease);
}
.faq-item__question:hover {
  background: var(--clr-bg);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--ease);
}
.faq-item__question[aria-expanded="true"] .faq-icon {
  transform: rotate(-180deg);
}

.faq-item__answer {
  padding: 0 var(--sp-6) var(--sp-5);
  /* Use CSS animation for the reveal (no layout shift) */
}
.faq-item__answer p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------
   15. FINAL CTA BANNER
--------------------------------------------------------------- */
.cta-section {
  padding-block: var(--sp-20);
  background: linear-gradient(
    135deg,
    var(--clr-brand) 0%,
    var(--clr-brand-mid) 100%
  );
}

.cta-section__inner {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.cta-section > .container > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  margin-bottom: var(--sp-8);
}

.cta-section__note {
  margin-top: var(--sp-4);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0 !important;
}

/* ---------------------------------------------------------------
   16. FOOTER
--------------------------------------------------------------- */
.site-footer {
  background: var(--clr-brand);
  color: var(--clr-white);
  padding-top: var(--sp-16);
}

.site-footer__inner {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-brand .logo-text {
  color: var(--clr-white);
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.footer-brand .logo-text strong {
  color: var(--clr-accent);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.footer-nav__col h4 {
  color: var(--clr-white);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-nav__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav__col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--ease);
}
.footer-nav__col a:hover {
  color: var(--clr-white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-block: var(--sp-6);
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
}

.user-menu {
  position: relative;
  display: inline-block;
}
.user-menu__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.user-menu__dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  min-width: 120px;
}
.user-menu.open .user-menu__dropdown {
  display: block;
}

button#user-toggle img {
  border: 2px solid #ee4b83;
  border-radius: 25px;
  width: 40px;
}
