/* ============================================================
 * FormLab AI marketing site — formvix.com
 * Vanilla CSS, no build step. Matches FormLab brand palette.
 * ============================================================ */

@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-VariableFont_GRAD,opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Aligned with FormLab AI product theme */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eff6ff;
  --surface: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #60a5fa;       /* product sidebar logo highlight */
  --text: #1e293b;         /* product --text */
  --text-body: #1e293b;
  --text-muted: #64748b;   /* product --text-muted / --secondary */
  --border: #e2e8f0;
  --border-strong: #cbd5e1; /* product --border */
  --ink: #111827;          /* product sidebar background */
  --ink-2: #1f2937;        /* product sidebar nav hover */
  --radius: 10px;
  --radius-sm: 6px;        /* product --radius */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 6px rgba(15,23,42,0.05), 0 10px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.12), 0 3px 10px rgba(15,23,42,0.06);
  --max-width: 1160px;
  --container-pad: 24px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
 * NAV
 * ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--container-pad);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark svg { display: block; width: 24px; height: 24px; }
.brand-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* ============================================================
 * BUTTONS
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 11px 20px; font-size: 14.5px; border-radius: 8px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

/* ============================================================
 * HERO
 * ============================================================ */
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 40px; align-items: center;
  max-width: var(--max-width); margin: 0 auto;
  padding: 56px var(--container-pad) 48px;
}
.hero-inner { max-width: 580px; }
.hero-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--primary); margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08; letter-spacing: -0.025em;
  color: var(--ink); font-weight: 700;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 16px; line-height: 1.5;
  color: var(--text-muted); margin-bottom: 22px;
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 16px;
  list-style: none; font-size: 12.5px; color: var(--text-muted);
}
.trust-strip li { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); display: inline-block;
}

.hero-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(37,99,235,0.04) 12px 24px),
    var(--bg-soft);
}

/* ============================================================
 * PROBLEM
 * ============================================================ */
.problem {
  background: var(--bg-soft);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink); font-weight: 700;
  margin-bottom: 12px;
  max-width: 720px;
}
.problem .lead {
  font-size: 15px; color: var(--text-muted);
  max-width: 760px; margin-bottom: 8px;
}
.problem .lead strong { color: var(--text); font-weight: 600; }

/* ============================================================
 * SECTION TITLES
 * ============================================================ */
.section-title {
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.02em;
  color: var(--ink); font-weight: 700;
  margin-bottom: 10px;
  max-width: 720px;
}
.section-lead {
  font-size: 14.5px; color: var(--text-muted);
  max-width: 720px; margin-bottom: 28px;
}

/* ============================================================
 * FEATURES T1
 * ============================================================ */
.features-t1 { padding: 56px 0 16px; }
.features-t1 .section-title { margin-bottom: 36px; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 44px; align-items: center;
  padding: 32px 0;
}
.feature-row.reverse { grid-template-columns: 1.1fr 1fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }

.feature-copy { max-width: 480px; }
.feature-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 8px;
}
.feature-copy h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); font-weight: 700;
  margin-bottom: 10px;
}
.feature-copy p {
  font-size: 14.5px; color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.feature-bullets {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.feature-bullets li {
  font-size: 13.5px; color: var(--text-body);
  padding-left: 20px; position: relative;
}
.feature-bullets li::before {
  content: ''; position: absolute;
  left: 0; top: 8px; width: 12px; height: 2px;
  background: var(--primary); border-radius: 2px;
}

.feature-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
}
.feature-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ============================================================
 * FEATURES T2 — card grid
 * ============================================================ */
.features-t2 {
  background: var(--bg-soft);
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
}
.card-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card h4 {
  font-size: 15px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.card p {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.45;
}

/* ============================================================
 * UX STRIP
 * ============================================================ */
.ux-strip { padding: 56px 0; }
.ux-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.ux-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.ux-item strong {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.ux-item span {
  font-size: 12.5px; color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
 * WHY
 * ============================================================ */
.why {
  background: var(--ink);
  color: #cbd5e1;
  padding: 56px 0;
}
.why .section-title { color: #fff; }
.why-grid {
  display: grid; gap: 20px 32px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}
.why-grid > div { padding: 2px 0; }
.why-grid h4 {
  font-size: 15px; color: #fff;
  font-weight: 700; margin-bottom: 6px;
}
.why-grid h4::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  margin-right: 8px; vertical-align: middle;
}
.why-grid p {
  font-size: 13.5px; color: #94a3b8;
  max-width: 460px;
  line-height: 1.5;
}

/* ============================================================
 * FAQ
 * ============================================================ */
.faq { padding: 56px 0; }
.faq .section-title { margin-bottom: 20px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding-right: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 18px; font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  margin-top: 8px;
  font-size: 13.5px; color: var(--text-muted);
  max-width: 760px;
  line-height: 1.5;
}
.faq code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12.5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--text);
}

/* ============================================================
 * FINAL CTA
 * ============================================================ */
.final-cta {
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  color: var(--ink); font-weight: 700;
  margin-bottom: 8px;
}
.final-cta > .container > p {
  font-size: 15px; color: var(--text-muted);
  margin-bottom: 20px;
}
.email-capture { margin-top: 28px; }
.capture-eyebrow {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
#signup-form {
  display: inline-flex; gap: 6px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
#signup-form input {
  border: none; outline: none;
  font-family: inherit; font-size: 13.5px;
  padding: 6px 12px;
  background: transparent; color: var(--text);
  width: 240px;
}
#signup-form input::placeholder { color: var(--text-muted); }
.capture-note {
  margin-top: 10px;
  font-size: 13px; color: var(--primary);
}
.capture-note.error { color: #dc2626; }

/* ============================================================
 * FOOTER
 * ============================================================ */
.footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 32px 0 20px;
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand .brand-text {
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: -0.01em;
}
.footer-brand .brand-text span { color: var(--accent); }
.footer-tagline { font-size: 12.5px; color: #94a3b8; margin-top: 4px; }
.footer-links {
  display: flex; gap: 18px; align-items: center;
}
.footer-links a {
  color: #cbd5e1; font-size: 13px; font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.footer .copy {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-2);
  font-size: 12px; color: #64748b;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px var(--container-pad) 32px;
  }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 22px; padding: 24px 0;
  }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-shot { order: initial; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .ux-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .ux-grid { grid-template-columns: 1fr; }
  #signup-form { flex-direction: column; width: 100%; max-width: 320px; }
  #signup-form input { width: 100%; }
  .footer .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14.5px; }
}
