/* ============================================================
   Freewebstore homepage — styles.css
   Tokens from the Freewebstore Design System.
   Mobile-first. Two breakpoints: 640px (tablet) and 1024px (desktop).
   ============================================================ */

/* ----------- Tokens ----------- */
:root {
  /* Brand */
  --pink:        #EA1686;
  --pink-hover:  #A31344;
  --pink-tint:   #FDF1F7;
  --pink-soft:   #FCE4F0;
  --blue:        #20B7E6;
  --blue-hover:  #1A9DC4;

  /* Neutrals */
  --ink:         #14101A;
  --darker:      #212121;
  --dark:        #404041;
  --mid:         #A9A9A9;
  --border:      #DDDDDD;
  --light:       #E7E7E8;
  --lighter:     #F5F5F7;
  --white:       #FFFFFF;

  /* Status */
  --success:     #5DC548;
  --warning:     #FFB432;
  --error:       #EA1636;

  /* Warm accents for "Be your own boss" */
  --warm-1:      #FAF6F1;
  --warm-2:      #F4ECDF;
  --warm-3:      #EFE3D0;

  /* Typography */
  --font-display: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-accent:  'Caveat', cursive;

  /* Spacing (8px grid) */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card:  0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 0 22px #ababab;

  /* Motion */
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-reveal: 480ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Layout */
  --max-w: 1280px;
  --gutter: 20px;

  --header-h: 64px;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
    --header-h: 72px;
  }
}

/* ----------- Reset / base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--lighter);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--t-base) var(--ease); }
a:hover { color: var(--pink); }
ul, ol { list-style: none; padding: 0; margin: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--pink); color: var(--white); }
::-moz-selection { background: var(--pink); color: var(--white); }

.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;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  padding: 12px 20px; background: var(--ink); color: var(--white);
  border-radius: var(--r-sm); font-weight: 500;
}
.skip-link:focus { top: 16px; color: var(--white); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----------- Container & utilities ----------- */
.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--mid); font-weight: 400; }
.accent { color: var(--pink); }
.caveat { font-family: var(--font-accent); font-weight: 600; color: var(--pink); }

/* ----------- Typography ----------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.25rem, 6vw + 1rem, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
}

h3 {
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: var(--space-md);
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 14px; }
.btn-xl { padding: 18px 36px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn-accent:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  color: var(--white);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover { background: var(--lighter); border-color: var(--lighter); }

.btn::after {
  content: "→";
  font-size: 1em;
  transition: transform var(--t-base) var(--ease);
}
.btn:hover::after { transform: translateX(3px); }
.btn-ghost::after { content: none; }

/* ----------- Header ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--header-h);
}
.brand img { height: 22px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 25px; } }

.primary-nav { display: none; }
@media (min-width: 1024px) {
  .primary-nav { display: block; flex: 1; }
  .primary-nav ul {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
  }
  .primary-nav a {
    font-size: 14px;
    color: var(--dark);
    padding: 8px 0;
    position: relative;
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease);
  }
  .primary-nav a:hover { color: var(--ink); }
  .primary-nav a:hover::after { transform: scaleX(1); }
}

.header-actions { display: none; align-items: center; gap: var(--space-md); }
@media (min-width: 1024px) {
  .header-actions { display: flex; }
}
.header-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  border-radius: 1px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  padding: var(--space-lg) var(--gutter) var(--space-xl);
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.mobile-menu ul a { font-size: 16px; font-weight: 500; color: var(--ink); display: block; padding: 8px 0; }

/* ----------- Sections ----------- */
section {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

.section-head { max-width: 720px; margin-bottom: var(--space-2xl); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { line-height: 1.1; }
.section-sub {
  margin-top: var(--space-md);
  font-size: 1.0625rem;
  color: var(--dark);
  max-width: 580px;
}
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(56px, 7vw, 112px);
  background:
    radial-gradient(900px 600px at 100% 0%, var(--warm-1) 0%, transparent 70%),
    radial-gradient(700px 500px at 0% 100%, var(--pink-tint) 0%, transparent 65%),
    var(--lighter);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-3xl); }
}

.hero-content { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--dark);
  margin-bottom: var(--space-lg);
}
.hero-eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(93, 197, 72, 0.18);
}

.hero h1 { letter-spacing: -0.035em; }

.hero-scribble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: var(--space-md) 0 var(--space-lg);
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 1vw + 1.2rem, 1.875rem);
  font-weight: 600;
  color: var(--pink);
  line-height: 1;
}
.hero-scribble-arrow {
  transform: translateY(4px) rotate(-2deg);
  color: var(--pink);
}

.hero-lede {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  color: var(--dark);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-trust {
  font-size: 13px;
  color: var(--mid);
}

/* Hero photo */
.hero-media {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
}
@media (min-width: 1024px) {
  .hero-media { max-width: none; }
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 5;
  background: var(--warm-2);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On-brand photo placeholders (swap for real photography pre-launch) */
.hero-photo--maya {
  background:
    radial-gradient(circle at 30% 25%, rgba(234, 22, 134, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(32, 183, 230, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, #F2E3D0 0%, #E8C9B5 60%, #D9B5A0 100%);
}
.seller-photo--candles {
  background:
    radial-gradient(circle at 25% 30%, rgba(234, 22, 134, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #F2DCE6 0%, #E8C2D5 100%);
}
.seller-photo--rings {
  background:
    radial-gradient(circle at 70% 30%, rgba(32, 183, 230, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, #E5E9EC 0%, #C9D3DA 100%);
}
.seller-photo--vintage {
  background:
    radial-gradient(circle at 35% 70%, rgba(255, 180, 50, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #EFE5D0 0%, #DAC8A8 100%);
}

.hero-photo, .seller-photo {
  position: relative;
  isolation: isolate;
}
.hero-photo::after, .seller-photo::after {
  /* Subtle dot grid texture (design-system grid-bg motif) — placeholders only */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 16, 26, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
/* Real photography: drop the placeholder padding and texture */
.hero-photo:has(img),
.seller-photo:has(img) {
  padding: 0;
}
.hero-photo:has(img)::after,
.seller-photo:has(img)::after {
  display: none;
}
.photo-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  transform: rotate(-2deg);
  text-align: center;
  padding: 0 12px;
  transition: transform var(--t-base) var(--ease);
}
.photo-placeholder-sub {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(20, 16, 26, 0.45);
}

.seller-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seller-photo .photo-placeholder-label {
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
}

.hero-photo-tag {
  position: absolute;
  top: 24px;
  left: -12px;
  width: 120px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
  transform: rotate(-6deg);
}
.hero-photo-tag img { width: 100%; height: auto; }

.hero-photo-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-photo-caption strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.hero-photo-caption span { color: var(--mid); font-size: 12.5px; }

/* ============================================================
   VALUE STRIP
   ============================================================ */
.value-strip {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  font-size: 14px;
  color: var(--dark);
}
.value-strip-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.value-strip-list .value-strip-icon {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
  font-size: 18px;
  line-height: 1;
}
.value-strip-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   SELLER STORIES
   ============================================================ */
.seller-stories {
  background: var(--lighter);
}
.seller-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 640px) {
  .seller-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-grid > :nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - var(--space-lg) / 2); }
}
@media (min-width: 1024px) {
  .seller-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
  .seller-grid > :nth-child(3) { grid-column: auto; max-width: none; }
}

.seller-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.seller-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: #c8c8cb;
}

.seller-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--warm-2);
  position: relative;
}
.seller-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.seller-card:hover .seller-photo .photo-placeholder-label { transform: rotate(-2deg) translateY(-2px); }

.seller-quote {
  margin: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}
.seller-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.4;
}

.seller-byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--space-lg) var(--space-lg);
  margin-top: auto;
}
.seller-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.seller-meta {
  font-size: 12.5px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stories-footnote {
  margin-top: var(--space-2xl);
  text-align: center;
}
.stories-footnote a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--pink);
  font-size: 15px;
}
.stories-footnote a:hover { color: var(--pink-hover); }

/* ============================================================
   BIG STAT
   ============================================================ */
.big-stat {
  background:
    radial-gradient(700px 500px at 50% 0%, var(--pink-tint) 0%, transparent 70%),
    var(--warm-1);
  text-align: center;
  position: relative;
}
.big-stat::before, .big-stat::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.big-stat::before { top: 0; }
.big-stat::after { bottom: 0; }

.big-stat-inner {
  max-width: 880px;
  margin: 0 auto;
}
.big-stat-prelude {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mid);
  margin-bottom: var(--space-lg);
}
.big-stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.big-stat-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.4vw + 0.9rem, 1.875rem);
  line-height: 1.2;
  color: var(--ink);
  margin-top: var(--space-xl);
  letter-spacing: -0.01em;
}
.big-stat-tagline .caveat {
  font-size: 1.4em;
  display: inline-block;
  transform: rotate(-2deg) translateY(-2px);
}
.big-stat-footnote {
  margin-top: var(--space-md);
  color: var(--mid);
  font-size: 14px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step;
  position: relative;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); }
}

.step {
  position: relative;
  padding: var(--space-xl);
  background: var(--lighter);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pink);
  background: var(--pink-tint);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}
.step h3 { margin-bottom: var(--space-sm); color: var(--ink); }
.step p { font-size: 15px; color: var(--dark); line-height: 1.55; }

.step-icon {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink-tint);
  color: var(--pink);
  font-size: 18px;
  line-height: 1;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.step:hover .step-icon {
  background: var(--pink);
  color: var(--white);
  transform: rotate(-6deg);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  background: var(--lighter);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--pink-soft);
}
.why-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--pink-tint);
  color: var(--pink);
  font-size: 24px;
  line-height: 1;
  margin-bottom: var(--space-lg);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.why-card:hover .why-card-icon {
  background: var(--pink);
  color: var(--white);
  transform: rotate(-4deg) scale(1.04);
}
.why-card h3 {
  margin-bottom: var(--space-md);
  color: var(--ink);
  font-size: 1.25rem;
}
/* (The old small ::before dot was the visual cue before each h3 —
   replaced now by the .why-card-icon block above. Kept the rule
   below as a no-op so the cascade doesn't surface a stray dot
   if the icon is ever absent.) */
.why-card h3::before {
  content: none;
  display: none;
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
}
.why-card p { font-size: 15px; line-height: 1.6; color: var(--dark); }

/* ============================================================
   SHOPIFY MATH
   ============================================================ */
.shopify-math {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.shopify-math .section-head h2 .strike {
  position: relative;
  color: var(--mid);
  font-weight: 500;
}
.shopify-math .section-head h2 .strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 4px;
  background: var(--pink);
  transform: rotate(-6deg);
  border-radius: 2px;
}
.shopify-math .section-head h2 .accent {
  color: var(--pink);
  font-weight: 700;
}

.math-table-wrap {
  margin-top: var(--space-2xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Mobile: table becomes stacked cards */
.math-table thead { display: none; }
.math-table, .math-table tbody, .math-table tr, .math-table td, .math-table th {
  display: block;
  text-align: left;
}
.math-table tbody tr {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.math-table tbody tr:last-child { border-bottom: none; }
.math-table tbody tr th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  padding: 0 0 8px;
}
.math-table tbody td {
  padding: 6px 0 6px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.math-table tbody td::before {
  content: attr(data-label);
  font-size: 12px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.math-table tbody td.us { color: var(--pink); font-weight: 600; }
.math-table tbody td.us::before { color: var(--pink); }

/* Desktop table */
@media (min-width: 768px) {
  .math-table thead { display: table-header-group; }
  .math-table { display: table; }
  .math-table tbody { display: table-row-group; }
  .math-table tr { display: table-row; padding: 0; border-bottom: none; }
  .math-table th, .math-table td { display: table-cell; }

  .math-table thead th {
    padding: var(--space-lg) var(--space-md);
    background: var(--lighter);
    border-bottom: 2px solid var(--border);
    text-align: center;
    vertical-align: top;
  }
  .math-table thead th:first-child,
  .math-table tbody tr th[scope="row"] {
    text-align: left;
    padding-left: var(--space-2xl);
  }
  .math-table thead th.us {
    background: var(--pink-tint);
    border-bottom-color: var(--pink);
  }
  .th-brand {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 15px;
    margin-bottom: 4px;
  }
  .th-price {
    display: block;
    font-family: var(--font-display);
    color: var(--pink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .th-price-amount { display: inline; }
  .th-price-period { font-size: 13px; font-weight: 400; color: var(--mid); letter-spacing: 0; }
  .th-price-muted { color: var(--mid); font-weight: 500; font-size: 15px; }

  .math-table tbody tr th[scope="row"] {
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-2xl);
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    font-size: 14.5px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
  }
  .math-table tbody td {
    padding: var(--space-md) var(--space-md);
    font-size: 14.5px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    display: table-cell;
    justify-content: initial;
    text-align: center;
    vertical-align: middle;
  }
  .math-table tbody td::before { content: none; }
  .math-table tbody td.us { background: rgba(234, 22, 134, 0.03); color: inherit; font-weight: inherit; }
  .math-table tbody tr:last-child th,
  .math-table tbody tr:last-child td { border-bottom: none; }
}

.cell-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cell-yes {
  color: var(--ink);
  font-weight: 600;
}
.cell-yes::before {
  content: "✓";
  display: inline-block;
  color: var(--pink);
  margin-right: 6px;
  font-weight: 700;
}
.cell-no {
  color: var(--mid);
}
.cell-no::before {
  content: "✗";
  display: inline-block;
  color: var(--mid);
  margin-right: 6px;
  font-weight: 700;
  opacity: 0.6;
}

.math-footnote {
  margin-top: var(--space-xl);
  font-size: 14px;
  color: var(--dark);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.math-footnote strong { color: var(--ink); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--warm-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: minmax(280px, 360px) 1fr; gap: var(--space-3xl); }
}

.trust-rating { text-align: center; }
@media (min-width: 1024px) { .trust-rating { text-align: left; } }

.trust-stars {
  font-size: 24px;
  color: var(--pink);
  letter-spacing: 4px;
  margin-bottom: var(--space-md);
}
.trust-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}
@media (min-width: 1024px) { .trust-number { justify-content: flex-start; } }
.trust-number-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 4vw, 4.5rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.trust-number-label {
  font-size: 16px;
  color: var(--dark);
}
.trust-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  max-width: 320px;
}
@media (max-width: 1023px) { .trust-tagline { margin-left: auto; margin-right: auto; } }

.trust-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .trust-quotes { grid-template-columns: repeat(3, 1fr); }
}

.trust-quote {
  margin: 0;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.trust-quote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.trust-quote blockquote { margin: 0; }
.trust-quote blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.trust-quote figcaption {
  font-size: 12.5px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: auto;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(234, 22, 134, 0.18) 0%, transparent 70%),
    radial-gradient(500px 400px at 90% 70%, rgba(32, 183, 230, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.final-cta p {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
}
.final-cta-trust {
  margin-top: var(--space-lg);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-3xl);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}
@media (min-width: 768px) {
  .site-footer-inner { grid-template-columns: 1.4fr 2fr; gap: var(--space-3xl); }
}

.footer-brand p {
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 14px;
  max-width: 280px;
  color: rgba(255,255,255,0.55);
}
.footer-logo { filter: brightness(0) invert(1); opacity: 0.9; height: 24px; }

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.footer-social a:hover { background: var(--pink); color: var(--white); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h2 {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-lg) 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom small {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integrations {
  background:
    radial-gradient(800px 500px at 50% 0%, var(--warm-1) 0%, transparent 70%),
    var(--white);
  border-top: 1px solid var(--border);
}

.integrations-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1100px) {
  .integrations-groups {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.integrations-group {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}
@media (min-width: 1100px) {
  .integrations-group + .integrations-group::before {
    content: "";
    position: absolute;
    left: calc(var(--space-xl) / -2);
    top: 14%;
    bottom: 14%;
    width: 1px;
    background: var(--border);
  }
}

.integrations-group-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mid);
  font-weight: 600;
  margin: 0;
}

.integrations-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

/* 4-item group: 2x2 grid by default so the 4th item never orphans;
   expand to a single row of 4 once the viewport has room. */
.integrations-group--four .integrations-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-md) var(--space-md);
  justify-content: center;
  justify-items: center;
}
@media (min-width: 640px) {
  .integrations-group--four .integrations-list {
    grid-template-columns: repeat(4, auto);
    gap: var(--space-sm);
  }
}

.integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  cursor: default;
}
.integration-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 56px;
  padding: 0 10px;
  color: var(--ink);
  opacity: 0.55;
  border-radius: var(--r-md);
  background: transparent;
  transition: opacity var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.integration-mark svg {
  height: 24px;
  width: auto;
  display: block;
}
/* Icon-only marks (square viewBox) sit slightly larger for visual balance */
.integration--icon .integration-mark { padding: 0 8px; }
.integration--icon .integration-mark svg {
  height: 28px;
  width: 28px;
}

.integration-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.integration:hover .integration-mark,
.integration:focus-within .integration-mark {
  opacity: 1;
  background: var(--warm-1);
  color: var(--pink);
  transform: translateY(-2px);
}
.integration:hover .integration-name,
.integration:focus-within .integration-name {
  opacity: 1;
  transform: translateY(0);
  color: var(--ink);
}

.integrations-foot {
  margin-top: var(--space-2xl);
  text-align: center;
  font-size: 14px;
  color: var(--mid);
}
.integrations-foot a {
  color: var(--pink);
  font-weight: 500;
  font-family: var(--font-display);
}
.integrations-foot a:hover { color: var(--pink-hover); }

/* Always show names on touch devices (no hover) */
@media (hover: none) {
  .integration-name { opacity: 0.7; transform: none; }
  .integration-mark { opacity: 0.75; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--lighter);
  border-top: 1px solid var(--border);
}
.faq-inner { max-width: 800px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.faq-item:hover { border-color: #c8c8cb; }
.faq-item:has(details[open]) { border-color: var(--pink-soft); box-shadow: var(--shadow-card); }

.faq-item details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-family: var(--font-display);
  user-select: none;
}
.faq-item details > summary::-webkit-details-marker,
.faq-item details > summary::marker { display: none; content: ""; }

.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
  line-height: 1.35;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lighter);
  display: inline-block;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%;
  left: 50%;
  border-radius: 1px;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item details[open] .faq-icon { background: var(--pink-tint); }
.faq-item details[open] .faq-icon::before { background: var(--pink); }
.faq-item details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); background: var(--pink); }

/* Animate the open/close height. Uses modern ::details-content pseudo so
   answer text stays in the DOM regardless — crawlable, AI-readable.
   Older browsers fall back to instant show/hide (still functional). */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item details::details-content {
    height: 0;
    overflow: clip;
    transition: height 320ms var(--ease),
                content-visibility 320ms var(--ease) allow-discrete;
  }
  .faq-item details[open]::details-content {
    height: auto;
  }
}
.faq-body-inner p {
  padding: 0 var(--space-xl) var(--space-lg);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  max-width: 64ch;
}

.faq-foot {
  margin-top: var(--space-xl);
  text-align: center;
  font-size: 14px;
  color: var(--mid);
}
.faq-foot a {
  color: var(--pink);
  font-weight: 500;
  font-family: var(--font-display);
}
.faq-foot a:hover { color: var(--pink-hover); }

@media (prefers-reduced-motion: reduce) {
  @supports (interpolate-size: allow-keywords) {
    .faq-item details::details-content { transition: none; }
  }
}

/* ============================================================
   MOTION — reveal on scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--t-reveal) var(--ease),
    transform var(--t-reveal) var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Cookie consent banner
   Markup + JS injected on every page; shares the existing
   localStorage key (checkUtilitiesCookie) with the legacy site
   so visitors who already accepted don't get re-prompted.
   ============================================================ */
#utilities_grant_panel {
  position: fixed;
  bottom: -50px;
  left: 10px;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: calc(100% - 20px);
  max-width: 360px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  z-index: 999999999;
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(20, 16, 26, 0.25);
  transition: bottom var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
#utilities_grant_panel.utilities_grant_panel_show {
  opacity: 1;
  visibility: visible;
  bottom: 10px;
}
#utilities_grant_panel_inner { width: 100%; }
#utilities_grant_panel_text { margin-bottom: 10px; }
#utilities_grant_panel_text a {
  color: var(--white);
  text-decoration: underline;
}
#utilities_grant_panel_button {
  background: var(--white);
  color: var(--pink);
  border-radius: var(--r-sm);
  padding: 8px 18px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  align-self: flex-start;
  user-select: none;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
#utilities_grant_panel_button:hover {
  background: var(--ink);
  color: var(--white);
}
