/* ============================================================
   Freewebstore — features page styles
   Extends styles.css with page-specific sections:
   page-hero variant, sticky category nav band, feature grid
   sections, analytics dark band, hosting stat strip, deep cards,
   future-proof band.
   Mobile-first. Tokens come from styles.css :root.
   ============================================================ */

/* ============================================================
   PAGE HERO  (variant reused across redesign pages — same
   structure as stores.css, kept here so features can ship alone
   if needed)
   ============================================================ */
.page-hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(234, 22, 134, 0.05) 0%, transparent 60%),
    var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}
.page-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 640px;
}
.page-hero-content .hero-eyebrow { margin-bottom: 0; }
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
  line-height: 1.04;
  margin: var(--space-sm) 0 0;
}
.page-hero-content .hero-lede {
  margin: var(--space-sm) 0 0;
  max-width: 580px;
}
.page-hero-content .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.page-hero-content .hero-trust {
  font-size: 14px;
  color: var(--mid);
  margin-top: var(--space-sm);
}

/* "All free." with a subtle handwritten strike — the joke is the strike */
.h-accent-strike {
  color: var(--pink);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.h-accent-strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -2px;
  height: 6px;
  background: var(--pink);
  opacity: 0.18;
  border-radius: 50%;
  transform: rotate(-1.5deg);
}

.page-hero-media {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
}
.page-hero-media .hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--warm-2);
  box-shadow: var(--shadow-card);
}
.page-hero-media .hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-hero-media .hero-photo-tag {
  position: absolute; top: 24px; left: -12px;
  width: 110px; z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
  transform: rotate(-6deg);
}
.page-hero-media .hero-photo-tag img { width: 100%; height: auto; }
.page-hero-media .hero-photo-caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  padding: 12px 16px;
  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;
}
.page-hero-media .hero-photo-caption strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.page-hero-media .hero-photo-caption span { color: var(--mid); font-size: 12.5px; }

@media (min-width: 768px) {
  .page-hero { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
}
@media (min-width: 1024px) {
  .page-hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4xl);
  }
  .page-hero-content { flex: 1 1 0; }
  .page-hero-media { flex: 0 0 460px; margin: 0; }
}

/* No-media variant: photo-less hero (e.g. features page).
   Center the content column so it doesn't drift lopsided at desktop widths. */
.page-hero--no-media .page-hero-grid {
  align-items: center;
  text-align: center;
}
.page-hero--no-media .page-hero-content {
  max-width: 720px;
  margin: 0 auto;
  align-items: center; /* center children inside the flex column */
}
.page-hero--no-media .hero-ctas { justify-content: center; }
.page-hero--no-media .hero-lede { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) {
  .page-hero--no-media .page-hero-grid {
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
}

/* ============================================================
   STICKY CATEGORY NAV BAND
   ============================================================ */
.features-nav-band {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 5; /* below site-header (z-index 10) so the main nav stays on top */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.features-nav-inner {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.features-nav-list {
  display: flex;
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-sm) 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.features-nav-list::-webkit-scrollbar { height: 4px; }
.features-nav-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.features-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 var(--space-md);
  border-radius: var(--r-full);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  scroll-snap-align: start;
  border: 1px solid transparent;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.features-nav-list a .fi {
  font-size: 14px;
  color: var(--pink);
  line-height: 1;
  transition: color var(--t-base) var(--ease);
}
.features-nav-list a.is-active .fi { color: var(--white); }
.features-nav-list a:hover .fi { color: var(--pink); }
.features-nav-list a:hover {
  background: var(--pink-tint);
  color: var(--pink);
  border-color: var(--pink-soft);
}
.features-nav-list a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.features-nav-list a.is-active {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.features-nav-list a.is-active:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  color: var(--white);
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.feature-section {
  padding: var(--space-4xl) 0;
  background: var(--white);
  /* Header (64-72px) + sticky sub-nav (~52px) stack at the top */
  scroll-margin-top: 130px;
}
.feature-section--alt { background: var(--lighter); }
.feature-section .section-head { margin-bottom: var(--space-2xl); }
.feature-section .section-head .section-sub {
  font-size: 16px;
  color: var(--mid);
  margin: var(--space-md) 0 0;
  max-width: 680px;
  line-height: 1.55;
}
.section-head.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* The flat 3-up grid of small cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pink-tint);
  color: var(--pink);
  font-size: 16px;
  line-height: 1;
  margin-bottom: 4px;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.feat:hover .feat-icon {
  background: var(--pink);
  color: var(--white);
  transform: rotate(-4deg);
}
.feature-section--alt .feat { background: var(--white); }
.feat:hover {
  border-color: var(--pink-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.feat::before {
  content: "";
  position: absolute;
  top: -1px; left: var(--space-lg);
  width: 28px;
  height: 3px;
  background: var(--pink);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.feat:hover::before { opacity: 1; }

.feat-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.feat-body {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   MARKETING — "And more reach" deemphasized comparison list
   ============================================================ */
.more-reach {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}
.more-reach-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  margin: 0 0 var(--space-xs);
}
.more-reach-body {
  font-size: 14px;
  color: var(--mid);
  margin: 0 0 var(--space-md);
  max-width: 680px;
  line-height: 1.5;
}
.more-reach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.more-reach-list li {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  background: var(--lighter);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

/* ============================================================
   ANALYTICS — dark band with prose + stats
   ============================================================ */
.feature-section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}
.feature-section--dark::before { display: none; }
.feature-section--dark h2 { color: var(--white); }
.feature-section--dark .accent { color: var(--pink); }
.eyebrow-on-dark {
  color: var(--pink);
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
}

.analytics-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}
@media (min-width: 1024px) {
  .analytics-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4xl);
  }
  .analytics-content { flex: 1 1 0; max-width: 560px; }
  .analytics-stats { flex: 0 0 380px; }
}

.analytics-content h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  margin-bottom: var(--space-md);
}
.analytics-body {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 var(--space-md);
  max-width: 560px;
}

.analytics-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.analytics-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
}
.analytics-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.analytics-stat-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   HOSTING — 4 stat-style cards
   ============================================================ */
.hosting-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) {
  .hosting-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hosting-grid { grid-template-columns: repeat(4, 1fr); }
}

.hosting-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.hosting-stat:hover {
  border-color: var(--pink-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.hosting-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 4px;
  background: var(--pink);
}
.hosting-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 0.5rem, 1.875rem);
  color: var(--pink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: var(--space-xs);
}
.hosting-stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hosting-stat-body {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

/* ============================================================
   DEEP-DIVE CARDS  (Misc: Support / API / Store Builder)
   ============================================================ */
.deep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 1024px) {
  .deep-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
}

.deep-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.deep-card:hover {
  border-color: var(--pink-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.deep-eyebrow {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--pink);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-1deg);
  display: inline-block;
}
.deep-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.deep-body {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   FUTURE-PROOF band
   ============================================================ */
.future-band {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(32, 183, 230, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(234, 22, 134, 0.10) 0%, transparent 50%),
    var(--lighter);
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.future-band-inner {
  text-align: center;
  max-width: 720px;
}
.future-caveat {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--pink);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  transform: rotate(-2deg);
  margin-bottom: var(--space-md);
  line-height: 1;
}
.future-band h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  margin: 0 0 var(--space-md);
}
.future-band-inner {
  margin-left: auto;
  margin-right: auto;
}
.future-body {
  font-size: 17px;
  color: var(--dark);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}
