/* ============================================================
   WEB FORM BUILDER — formbuilder.css
   Prefix: fb-
   ============================================================ */

/* Nohemi (variable) is declared only once, in components/base.css.
   Global tokens, reset and typography come from components/base.css:
   only this page's own tokens are declared here (never a base token). */
:root {
  --fb-accent: #F59E0B;          /* amber: fills and decoration; text on it is dark */
  --fb-accent-ink: #8C5A06;
  --fb-accent-dim: rgba(245, 158, 11, 0.15);
  --fb-accent-glow: rgba(245, 158, 11, 0.25);
  --border-dark: rgba(255, 255, 255, 0.1);
}

body { background: var(--dark-bg); }

/* ── Container ── */
.fb-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ── Buttons ── */
.fb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--fb-accent);
  color: var(--text-primary);    /* 8.0:1 on amber — white gave 2.15:1 */
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  border: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 0 32px var(--fb-accent-glow);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .fb-btn-primary:hover {
    background: #FBBF24;           /* lighter hover: with dark text it rises to 10.3:1 */
    box-shadow: 0 0 52px rgba(245, 158, 11,0.4);
    transform: translateY(-1px);
  }
}
.fb-btn-primary--large {
  padding: 18px 40px;
  font-size: 17px;
}
.fb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .fb-btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
  }
}
.fb-btn-ghost--cta {
  color: rgba(255,255,255,0.6);
  border: none;
  padding: 14px 8px;
  font-size: 15px;
}
@media (hover: hover) and (pointer: fine) { .fb-btn-ghost--cta:hover { color: #fff; background: none; transform: translateX(4px); } }
/* Press feedback: a quick dip on press that eases back on release */
.fb-btn-primary:active,
.fb-btn-ghost:active { transform: scale(0.98); transition-duration: 0.08s; }

/* ── Section shared ── */
.fb-eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fb-accent-ink);
  margin-bottom: var(--sp-2);
}
.fb-section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.fb-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-2);
}
.fb-section-sub {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   S1 — HERO
   ============================================================ */
.fb-hero {
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
  padding-top: 80px;
}

.fb-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.fb-hero-glow--1 {
  top: -120px; left: -80px;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(245, 158, 11,0.12) 0%, transparent 70%);
}
.fb-hero-glow--2 {
  top: 60px; right: -100px;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(255, 90, 31,0.08) 0%, transparent 70%);
}

.fb-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.fb-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.4;
  pointer-events: none;
}

.fb-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-5);
}

/* Hero badge */
.fb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(245, 158, 11,0.08);
  border: 1px solid rgba(245, 158, 11,0.22);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;               /* it's a link: full touch target */
  margin-bottom: var(--sp-3);
  transition: border-color var(--transition), background var(--transition);
  letter-spacing: -0.01em;
}
.fb-hero-badge:hover { border-color: rgba(245, 158, 11,0.4); background: rgba(245, 158, 11,0.12); }

.fb-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fb-accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--fb-accent);
  animation: fb-pulse 2.2s cubic-bezier(0.4,0,0.6,1) 2;   /* small loop: ends before 5 s */
}
@keyframes fb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Hero headline */
.fb-hero-headline {
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.fb-hero-gradient {
  background: linear-gradient(135deg, var(--fb-accent) 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fb-hero-sub {
  font-size: 18px;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: var(--sp-4);
}

.fb-hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.fb-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted-on-dark);
}
.fb-hero-note svg { color: #4ade80; flex-shrink: 0; }

/* ── Hero visual: the real program ──
   web-form-builder_main.png from coffeecup.com. Its window is cropped at
   the right edge, so the frame bleeds off the viewport on that side. */
.fb-hero-shot {
  position: relative;
  margin-right: calc(-1 * max(var(--sp-3), (100vw - var(--max-w)) / 2 + var(--sp-3)));
}
.fb-hero-shot::before {
  content: '';
  position: absolute;
  inset: 8% 0 -4% 6%;
  background: radial-gradient(ellipse at 40% 50%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 65%);
  filter: blur(30px);
  pointer-events: none;
}
.fb-hero-shot img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.5);
}

.fb-hero-note a {
  /* 44px hit area without moving the line (padding offset by margin) */
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--fb-accent);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Stats row ── */
.fb-hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-dark);
  margin-top: var(--sp-3);
}
.fb-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4) 0;
  gap: 0;
}
.fb-stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  padding: 0 var(--sp-5);
}
.fb-stat-value {
  white-space: nowrap;
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.04em;
  color: #fff;
}
.fb-stat-label {
  font-size: var(--fs-meta);   /* lowercase text: 13px floor */
  color: var(--text-muted-on-dark);
  letter-spacing: 0;
  white-space: nowrap;
}
.fb-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-dark);
  flex-shrink: 0;
}

/* ============================================================
   S3 — FEATURES
   ============================================================ */
.fb-features {
  background: var(--surface);
  padding: var(--sp-8) 0;
}
.fb-features .fb-section-title,
.fb-features .fb-section-sub { color: var(--text-primary); }
.fb-features .fb-section-sub { color: var(--text-secondary); }

.fb-feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
}
.fb-feature-block:last-child { border-bottom: none; }

.fb-feature-block--left .fb-feature-visual { order: -1; }

.fb-feature-number {
  display: inline-block;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fb-accent-ink);
  margin-bottom: var(--sp-2);
}

.fb-feature-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.15;
}

.fb-feature-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
}
.fb-feature-desc:last-of-type { margin-bottom: var(--sp-3); }
.fb-feature-desc strong { color: var(--text-primary); font-weight: 550; }

.fb-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fb-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.fb-feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fb-accent);
  flex-shrink: 0;
}

.fb-feature-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08),
    var(--shadow-hover);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}
@media (hover: hover) and (pointer: fine) {
  .fb-feature-img-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08),
      0 20px 60px rgba(0,0,0,0.16);
  }
}
.fb-feature-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   S4 — S-DRIVE HIGHLIGHT
   ============================================================ */
.fb-sdrive .fb-eyebrow { color: var(--fb-accent); }
.fb-pricing .fb-eyebrow { color: var(--fb-accent); }
.fb-sdrive {
  background: var(--dark-bg);
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}
.fb-sdrive::before {
  content: '';
  position: absolute;
  top: 50%; left: -200px;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.fb-sdrive-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.fb-sdrive-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--sp-3);
}

.fb-sdrive-desc {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.fb-sdrive-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--sp-4);
}
.fb-sdrive-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.fb-sdrive-perks li svg { color: #4ade80; flex-shrink: 0; }

.fb-sdrive-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 550;
  color: var(--fb-accent);
  text-decoration: none;
  transition: gap var(--transition);
  gap: 4px;
  letter-spacing: -0.01em;
}
.fb-sdrive-cta:hover { gap: 8px; }

.fb-sdrive-visual { position: relative; }
.fb-sdrive-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245, 158, 11,0.06);
}
.fb-sdrive-img-wrap img { width: 100%; height: auto; display: block; }

/* ============================================================
   S6 — PRICING
   ============================================================ */
.fb-pricing {
  background: var(--dark-bg);
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}
.fb-pricing::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.fb-pricing-compare {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: 14px;
  color: var(--text-muted-on-dark);
}

/* ── Integrations strip (end of the features section) ── */
.fb-integrations {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.fb-integrations-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.fb-integrations-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fb-integration-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}
.fb-integration-badge:hover {
  border-color: rgba(245, 158, 11,0.3);
  color: var(--fb-accent);
}

/* ============================================================
   S8 — FAQ (canonical pattern)
   ============================================================ */
.fb-faq {
  background: var(--surface);
  padding: var(--sp-8) 0;
}
.fb-faq .fb-section-title { color: var(--text-primary); }

.fb-faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── FAQ — canonical pattern (matches index.html exactly) ── */

/* ============================================================
   S9 — CTA FINAL
   ============================================================ */
.fb-cta-final {
  background: var(--dark-bg);
  padding: var(--sp-8) 0 calc(var(--sp-8) + 32px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
}

.fb-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11,0.14) 0%, rgba(255, 90, 31,0.06) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.fb-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.fb-cta-badge img {
  border-radius: var(--radius-md);
  box-shadow: 0 0 32px rgba(245, 158, 11,0.2);
}

.fb-cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
}

.fb-cta-sub {
  font-size: 18px;
  color: var(--text-muted-on-dark);
  max-width: 500px;
  line-height: 1.6;
}

.fb-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
  flex-wrap: wrap;
  justify-content: center;
}

.fb-cta-note {
  font-size: 13px;
  color: var(--text-muted-on-dark);
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Mobile spacing tokens ── */
@media (max-width: 768px) {
  :root { --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px; }
}
@media (max-width: 480px) {
  :root { --sp-4: 24px; --sp-5: 24px; --sp-6: 36px; --sp-7: 48px; --sp-8: 64px; }
}

@media (max-width: 1024px) {
  .fb-hero-inner { grid-template-columns: 1fr; padding-top: var(--sp-6); }
  .fb-hero-shot { margin-right: calc(-1 * var(--sp-3)); }
  .fb-stats-grid { flex-wrap: wrap; gap: var(--sp-4); }
  .fb-stat { padding: 0 var(--sp-3); }
  .fb-stat-divider { display: none; }
  .fb-feature-block { grid-template-columns: 1fr; gap: var(--sp-4); }
  .fb-feature-block--left .fb-feature-visual { order: 0; }
  .fb-sdrive-inner { grid-template-columns: 1fr; }
  
}

@media (max-width: 768px) {
  .fb-hero-headline { font-size: 40px; }
  .fb-section-title { font-size: 26px; }
  .fb-sdrive-title { font-size: 30px; }
  .fb-cta-title { font-size: 32px; }
  .fb-cta-actions { flex-direction: column; align-items: stretch; }
  .fb-btn-primary--large,
  .fb-btn-ghost--cta { text-align: center; justify-content: center; }   /* stretched: keep the label centred */
}

@media (max-width: 640px) {
  .fb-container { padding: 0 var(--sp-3); }   /* same 24px gutter as the rest of the site */
  .fb-hero-ctas { flex-direction: column; align-items: flex-start; }
  .fb-hero-ctas { align-items: stretch; width: 100%; }
  .fb-hero-ctas .fb-btn-primary,
  .fb-hero-ctas .fb-btn-ghost { width: 100%; justify-content: center; }
  .fb-hero-shot { margin-right: calc(var(--sp-3) * -1); }
}

/* Super Pack icon: a 2×2 mosaic of the real app icons (packs-assets/superpack-icon).
   It carries its own color, so the box drops its tint, border and padding. */

