/*
 * SheetFlux Microsite — Shared Stylesheet
 *
 * Shared HTML structure for product pages and blog pages:
 *
 * <nav class="nav">
 *   <div class="nav-inner">
 *     <a href="/" class="nav-logo">Sheet<span class="flux">Flux</span></a>
 *     <div class="nav-links" id="navLinks">
 *       <a href="/#products">Products</a>
 *       <a href="/#features">Features</a>
 *       <a href="/#pricing">Pricing</a>
 *       <a href="/#faq">FAQ</a>
 *       <a href="https://sheetflux.gumroad.com" class="nav-cta">Browse Store</a>
 *     </div>
 *     <button class="nav-hamburger" id="navToggle" aria-label="Toggle navigation">
 *       <span></span><span></span><span></span>
 *     </button>
 *   </div>
 * </nav>
 *
 * <!-- page content here -->
 *
 * <footer class="footer">
 *   <div class="footer-brand">Sheet<span class="flux">Flux</span></div>
 *   <div class="footer-links">
 *     <a href="https://sheetflux.gumroad.com">Gumroad Store</a> *   </div>
 *   <p>&copy; 2026 SheetFlux. All rights reserved.</p>
 * </footer>
 *
 * Nav and footer classes (.nav, .nav-inner, .nav-logo, .nav-links, .nav-cta,
 * .nav-hamburger, .footer, .footer-brand, .footer-links) are shared across
 * all pages. Product pages and blog pages should link to this stylesheet and
 * reuse the same nav/footer markup. Page-specific styles can be added in
 * separate CSS files or a <style> block after this link.
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.nav-logo .flux {
  background: linear-gradient(135deg, #00BFA5, #2D2B55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gray-900); }

.nav-cta {
  background: linear-gradient(135deg, #00BFA5, #009688) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Sections */
section { padding: 80px 24px; }

.section-alt { background: var(--off-white); }

.container { max-width: 1120px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00BFA5;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* Hero */
.hero {
  padding: 100px 24px 60px;
  text-align: center;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #00BFA5, #2D2B55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00BFA5, #009688);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.25);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}

.hero-cta svg { width: 18px; height: 18px; }

.hero-free {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-400);
}

.hero-free a {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  transition: color 0.2s;
}

.hero-free a:hover { color: var(--gray-900); }

/* Stats Strip */
.stats-strip {
  padding: 24px;
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  white-space: nowrap;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover,
a.product-card-link:hover .product-card {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.1);
}

/* Card Cover Image */
.card-screenshot {
  display: block;
  width: 100%;
}

/* Card Link Wrapper */
a.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  min-width: 0;
}

a.product-card-link *,
a.product-card-link:hover * {
  text-decoration: none;
}

/* Card Body */
.card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-icon-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-icon { font-size: 28px; line-height: 1; }

.card-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}

.card-type {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 8px;
}

.card-tagline {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
}

/* Coming Soon Card */
.product-card.coming-soon {
  opacity: 0.65;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.product-card.coming-soon:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

.coming-soon-header {
  padding: 24px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  gap: 14px;
}

.coming-soon-header .card-icon { font-size: 32px; }

.coming-soon-info .card-name { font-size: 18px; margin-bottom: 2px; }

.coming-soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  background: var(--gray-200);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature-item { display: flex; gap: 16px; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.step-text h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  border: 2px solid var(--gray-200);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border-color: #00BFA5;
  box-shadow: 0 4px 24px rgba(99,102,241,0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00BFA5, #009688);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span { font-size: 20px; font-weight: 700; vertical-align: super; }

.pricing-note {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E0F2F1;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366F1'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-btn {
  display: block;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-btn:hover {
  transform: translateY(-1px);
}

.pricing-btn-primary {
  background: linear-gradient(135deg, #00BFA5, #009688);
  color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.pricing-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
}

.pricing-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.pricing-btn-secondary:hover {
  background: var(--gray-200);
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--gray-400);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--gray-900), #312E81, #4C1D95);
  text-align: center;
  padding: 80px 24px;
}

.final-cta .section-title { color: white; }
.final-cta .section-subtitle { color: rgba(255,255,255,0.6); margin: 0 auto 36px; }

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--gray-900);
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.final-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.2);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.footer-brand .flux {
  background: linear-gradient(135deg, #00BFA5, #2D2B55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

/* Focus styles (accessibility) */
:focus-visible {
  outline: 2px solid #00BFA5;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #00BFA5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Responsive */
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { flex-direction: column; text-align: center; align-items: center; }
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
  }
}
