/* ============================================
   FoldPro Landing — Mainstage structural system
   ARCHETYPES: Sticky Nav · Full-Bleed Hero · Split 50/50 ·
   3-Col Cards · Spec Bar · Pricing Columns · Multi-Col Footer
   Brand layer: industrial charcoal + safety-orange accent.
   Swap the :root color/font vars to re-skin.
   ============================================ */

:root {
  /* Typography */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  /* Brand colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f4f5f7;
  --color-bg-dark: #14171c;
  --color-text-primary: #14171c;
  --color-text-secondary: #4a4f57;
  --color-text-muted: #8a9099;
  --color-text-inverse: #ffffff;
  --color-cta: #ff5b1e;          /* safety orange */
  --color-cta-hover: #e6480d;
  --color-cta-text: #ffffff;
  --color-cta-outline-text: #14171c;
  --color-accent: #ff5b1e;
  --color-border: rgba(0,0,0,0.12);
  --color-separator: rgba(0,0,0,0.2);

  /* Layout */
  --content-width: min(1320px, 100% - 48px);
  --section-padding: clamp(48px, 8vw, 100px);
  --outer-margin: clamp(24px, 12vw, 224px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.content { width: var(--content-width); margin: 0 auto; }

/* ---------- Section label pattern ---------- */
.section-label { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.section-label .label-text {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; color: var(--color-cta);
}
.section-label .label-rule { width: 80px; height: 2px; background: var(--color-cta); }
.section-label.light .label-text { color: var(--color-cta); }
.section-label.light .label-rule { background: var(--color-cta); }
.section-label.center { align-items: center; }

/* ---------- CTA buttons ---------- */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border: 2px solid var(--color-cta); background: var(--color-cta); color: var(--color-cta-text);
  cursor: pointer; transition: background .15s ease, transform .1s ease, border-color .15s ease;
  white-space: nowrap;
}
.cta-button:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); transform: translateY(-1px); }
.cta-button.outline { background: transparent; color: var(--color-cta-outline-text); }
.cta-button.outline.dark-outline { border-color: var(--color-text-primary); color: var(--color-text-primary); }
.cta-button.outline.dark-outline:hover { background: var(--color-text-primary); color: var(--color-text-inverse); }
.cta-button.full { width: 100%; }

/* ============ NAV (Archetype 11) ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--color-border); box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.nav-inner {
  width: var(--content-width); margin: 0 auto; height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-heading); }
.brand-mark { font-size: 26px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark.accent { color: var(--color-cta); }
.brand-sub { font-family: var(--font-body); font-size: 11px; color: var(--color-text-muted); margin-left: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em; transition: color .15s;
}
.nav-links a:hover { color: var(--color-cta); }
.nav-cta { height: 42px; padding: 0 18px; font-size: 14px; }

/* ============ HERO (Archetype 1 + Split) ============ */
.hero {
  background: linear-gradient(160deg, var(--color-bg-secondary) 0%, #e9ebef 100%);
  overflow: hidden;
}
.hero-inner {
  width: var(--content-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 8px 0 24px;
}
.accent { color: var(--color-cta); }
.hero-body { font-size: 18px; color: var(--color-text-secondary); max-width: 42ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--color-text-muted); }
.hero-media img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.18)); }

/* ============ SPEC BAR ============ */
.specbar { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.specbar-inner {
  width: var(--content-width); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding: 36px 0;
}
.spec { display: flex; flex-direction: column; gap: 4px; }
.spec-num { font-family: var(--font-heading); font-size: 34px; font-weight: 800; color: var(--color-cta); line-height: 1; }
.spec-cap { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #aeb4bd; }

/* ============ GENERIC SECTION ============ */
.section { padding: var(--section-padding) 0; }
.section.alt { background: var(--color-bg-secondary); }
.section-heading {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin-bottom: 12px;
}
.section-lead { font-size: 18px; color: var(--color-text-secondary); max-width: 60ch; margin-bottom: 48px; }
.section-body { font-size: 17px; color: var(--color-text-secondary); margin-bottom: 20px; max-width: 52ch; }

/* ---------- 3-step grid (Archetype 3) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--color-bg-primary); border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.section.alt .step-card { background: var(--color-bg-primary); }
.step-img { aspect-ratio: 4/3; background: var(--color-bg-secondary); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-card figcaption {
  padding: 20px 24px; font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.step-num { color: var(--color-cta); font-weight: 800; }

/* ---------- Step list (paired with a single hero GIF/image, e.g. #how) ---------- */
.step-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.step-list li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  padding-bottom: 18px; border-bottom: 1px solid var(--color-border);
}
.step-list li:last-child { border-bottom: none; padding-bottom: 0; }

/* ---------- Split 50/50 (Archetype 2) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 10px; }
.split-text .section-heading { margin-top: 8px; }
.feature-list { list-style: none; margin: 8px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--color-text-secondary); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-cta); font-weight: 800; }

/* ---------- Use-case cards (Archetype 3) ---------- */
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.use-card { background: var(--color-bg-primary); border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.use-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
.use-img { aspect-ratio: 3/2; background: var(--color-bg-secondary); }
.use-img img { width: 100%; height: 100%; object-fit: cover; }
.use-card h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 600; margin: 22px 24px 8px; }
.use-card p { font-size: 15px; color: var(--color-text-secondary); margin: 0 24px 24px; }

/* ---------- Guardrail grid ---------- */
.guardrail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guardrail-grid figure { border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; background: var(--color-bg-primary); }
.gr-img { aspect-ratio: 1/1; background: var(--color-bg-secondary); }
.gr-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.guardrail-grid figcaption { padding: 18px 22px; font-family: var(--font-heading); font-size: 20px; font-weight: 600; }

/* ============ BUY / PRICING ============ */
.buy { background: var(--color-bg-dark); color: var(--color-text-inverse); padding: var(--section-padding) 0; }
.buy-heading { font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 4.5vw, 52px); text-align: center; margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.price-card {
  position: relative; background: var(--color-bg-primary); color: var(--color-text-primary);
  border-radius: 12px; padding: 32px; display: flex; flex-direction: column;
}
.price-card.featured { outline: 3px solid var(--color-cta); }
.price-badge {
  position: absolute; top: -14px; left: 32px; background: var(--color-cta); color: #fff;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 5px 14px; border-radius: 20px;
}
.price-media { aspect-ratio: 4/3; background: var(--color-bg-secondary); border-radius: 8px; margin-bottom: 20px; }
.price-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.price-name { font-family: var(--font-heading); font-size: 28px; font-weight: 700; }
.price-desc { font-size: 15px; color: var(--color-text-secondary); margin: 8px 0 18px; flex-grow: 0; }
.price-tag { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; margin-top: auto; }
.price-amount { font-family: var(--font-heading); font-size: 44px; font-weight: 800; }
.price-note { font-size: 13px; color: var(--color-text-muted); }
.swatch-row { display: flex; gap: 20px; margin-bottom: 16px; }
.swatch { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--color-border); }
.dot.orange { background: #ff5b1e; }
.dot.black { background: #14171c; }
.buy-fineprint { text-align: center; font-size: 13px; color: #aeb4bd; margin-top: 28px; }

/* ============ FOOTER (Archetype 9) ============ */
.footer { background: #0d0f13; color: #c7ccd3; padding: 64px 0 0; }
.footer-inner { width: var(--content-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-mark { font-size: 28px; font-weight: 800; }
.footer-brand p { font-size: 14px; color: #8a9099; margin-top: 14px; max-width: 40ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head { font-family: var(--font-heading); font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #a4aab3; transition: color .15s; }
.footer-col a:hover { color: var(--color-cta); }
.subfooter { width: var(--content-width); margin: 48px auto 0; border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; display: flex; justify-content: space-between; font-size: 13px; color: #6f757d; }
.subfooter a:hover { color: var(--color-cta); }

/* ============ MOBILE STICKY BUY BAR ============ */
.mobile-buybar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border); padding: 12px 20px;
  transform: translateY(100%); transition: transform 0.25s ease;
}
.mobile-buybar.visible { transform: translateY(0); }
.mb-price { font-size: 15px; }
.mb-price strong { font-family: var(--font-heading); font-size: 20px; color: var(--color-cta); }
.mobile-buybar .cta-button { height: 44px; padding: 0 22px; font-size: 15px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .hero-inner { gap: 32px; }
  .uses-grid, .steps-grid, .guardrail-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-media { order: -1; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .split { gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .specbar-inner { justify-content: flex-start; gap: 28px 40px; }
  .subfooter { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .uses-grid, .steps-grid, .guardrail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .nav-cta { display: none; }
  .mobile-buybar { display: flex; }
  body { padding-bottom: 72px; }
  .spec-num { font-size: 28px; }
}
