/* BrokerDocFlow marketing site — hand-built, zero-framework.
   Palette mirrors the product app: primary #2563eb, deep navy #0d1230/#1a1a2e,
   violet accent #7c3aed, slate neutrals. */

:root {
  color-scheme: only light; /* light-designed site — block browser forced dark mode */
  --navy-900: #0b1026;
  --navy-800: #131a3a;
  --navy-700: #1a1a2e;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-tint: #f8fafc;
  --green: #059669;
  --amber: #d97706;
  --radius: 16px;
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, .18);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, .12);
  --grad: linear-gradient(120deg, #2563eb, #7c3aed);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  font-family: var(--font-body); white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -6px rgba(37, 99, 235, .5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px rgba(37, 99, 235, .55); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s;
  padding: 14px 0;
}
.nav.scrolled { background: rgba(11, 16, 38, .92); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.nav-inner { display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; }
.nav-logo img { height: 34px; width: 34px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255,255,255,.78); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: 14px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 700px at 75% -10%, #24347c 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 110%, #3b1d7a 0%, transparent 50%),
              linear-gradient(160deg, var(--navy-900) 20%, var(--navy-700) 100%);
  padding: 150px 0 90px;
}
.hero::after { /* subtle grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(800px 500px at 50% 20%, #000, transparent 80%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #c7d6ff; background: rgba(37, 99, 235, .18); border: 1px solid rgba(120, 150, 255, .35);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); font-weight: 700; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #7cb0ff, #b79cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18.5px; color: rgba(255,255,255,.75); max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 26px; }
.hero-stat span { font-size: 13.5px; color: rgba(255,255,255,.6); }

/* browser-framed 16:9 demo video */
.video-frame {
  position: relative; margin: 0 auto; width: 100%; max-width: 640px;
  border-radius: 16px; background: linear-gradient(160deg, #2a3350, #10152e); padding: 0 6px 6px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.09),
              0 0 120px -30px rgba(124, 58, 237, .55);
}
.video-bar { display: flex; gap: 6px; padding: 11px 12px 9px; }
.video-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.video-bar span:first-child { background: #f87171; }
.video-bar span:nth-child(2) { background: #fbbf24; }
.video-bar span:nth-child(3) { background: #34d399; }
.video-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video-screen video { width: 100%; height: 100%; object-fit: contain; }
.phone-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: rgba(6, 10, 30, .35); border: 0; cursor: pointer; color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; transition: background .2s;
}
.phone-play:hover { background: rgba(6, 10, 30, .2); }
.phone-play .ring {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 10px 30px rgba(37,99,235,.6);
}
.phone-play svg { margin-left: 4px; }
.phone-caption { text-align: center; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--slate); }

/* trust strip */
.trust { padding: 26px 0; background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.06); }
.trust-row { display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.55); font-size: 13.5px; font-weight: 600; }
.trust-item svg { color: #6ea0ff; flex: none; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c7d7f8; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.feat:nth-child(3n+2) .feat-icon { background: var(--violet-soft); color: var(--violet); }
.feat:nth-child(3n) .feat-icon { background: #ecfdf5; color: var(--green); }
.feat h3 { font-size: 18.5px; margin-bottom: 10px; }
.feat p { font-size: 14.5px; color: var(--slate); }

/* playbooks */
.pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pb {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pb:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6c9f5; }
.pb-emoji {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, var(--blue-soft), var(--violet-soft));
}
.pb h3 { font-size: 16.5px; margin-bottom: 8px; }
.pb p { font-size: 13.5px; color: var(--slate); }
.pb-tag {
  position: absolute; top: 22px; right: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--violet);
  background: var(--violet-soft); border-radius: 999px; padding: 4px 10px;
}
.pb-fine { margin-top: 30px; text-align: center; font-size: 14px; color: var(--slate); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  position: absolute; top: -18px; left: 26px; background: var(--grad);
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(37,99,235,.4);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--slate); }

/* compliance band */
.compliance { color: #fff; background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); position: relative; overflow: hidden; }
.compliance::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.28), transparent 65%); top: -200px; right: -150px;
}
.compliance .section-head h2, .compliance .section-head p { color: inherit; }
.compliance .section-head p { color: rgba(255,255,255,.72); }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.comp {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px 26px; backdrop-filter: blur(4px);
}
.comp h3 { font-size: 17px; margin: 14px 0 8px; }
.comp p { font-size: 14px; color: rgba(255,255,255,.68); }
.comp svg { color: #8ab4ff; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.popular { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 17px; margin-bottom: 4px; }
.plan-price { font-family: var(--font-display); font-size: 38px; font-weight: 700; margin: 10px 0 2px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--slate-light); font-family: var(--font-body); }
.plan-note { font-size: 13px; color: var(--slate-light); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 24px; flex: 1; }
.plan li { font-size: 14px; color: var(--slate); padding: 6px 0 6px 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.plan .btn { width: 100%; }
.ai-addon {
  margin-top: 40px; background: linear-gradient(120deg, #0b1026, #241a4d); color: #fff;
  border-radius: var(--radius); padding: 36px 38px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.ai-addon h3 { font-size: 21px; margin-bottom: 8px; }
.ai-addon p { font-size: 14.5px; color: rgba(255,255,255,.72); max-width: 460px; }
.ai-tiers { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.ai-tier { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 14px 20px; text-align: center; min-width: 118px; }
.ai-tier b { display: block; font-family: var(--font-display); font-size: 19px; }
.ai-tier span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.price-fine { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--slate-light); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); font-weight: 400; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; font-size: 14.5px; color: var(--slate); }

/* ---------- contact / lead form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-side h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.contact-side p { color: var(--slate); font-size: 16.5px; margin-bottom: 26px; }
.contact-points { list-style: none; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 15px; color: var(--ink); }
.contact-points svg { color: var(--green); flex: none; margin-top: 3px; }
.lead-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 38px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-tint);
  transition: border-color .15s, box-shadow .15s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -6000px; top: -6000px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { display: none; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; }
.form-msg.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-fine { font-size: 12px; color: var(--slate-light); margin-top: 14px; }
.form-fine a { color: var(--slate); text-decoration: underline; }

/* ---------- footer ---------- */
footer { background: var(--navy-900); color: rgba(255,255,255,.65); padding: 60px 0 30px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-brand { max-width: 300px; }
.foot-brand .nav-logo { margin-bottom: 14px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.foot-col a { display: block; color: rgba(255,255,255,.6); padding: 4px 0; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45); }

/* cookie banner */
.cookie {
  position: fixed; z-index: 80; left: 20px; right: 20px; bottom: 20px; max-width: 520px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px 24px; display: none;
}
.cookie.show { display: block; animation: rise .35s ease; }
.cookie p { font-size: 13.5px; color: var(--slate); margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 18px; font-size: 13.5px; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { transition: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* legal pages */
.legal-page { padding: 140px 0 80px; max-width: 820px; }
.legal-page h1 { font-size: 34px; margin-bottom: 8px; }
.legal-page .updated { color: var(--slate-light); font-size: 14px; margin-bottom: 34px; }
.legal-page h2 { font-size: 21px; margin: 34px 0 12px; }
.legal-page p, .legal-page li { color: var(--slate); font-size: 15px; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .feat-grid, .steps, .comp-grid { grid-template-columns: 1fr 1fr; }
  .price-grid, .pb-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; position: fixed; inset: 62px 16px auto 16px; background: var(--navy-800); border-radius: 16px; flex-direction: column; padding: 20px; gap: 4px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; width: 100%; }
  .nav-burger { display: block; }
  .nav-cta { margin: 8px 0 0; width: 100%; }
  .feat-grid, .steps, .comp-grid, .price-grid, .pb-grid, .field-row { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .hero { padding: 120px 0 70px; }
  .ai-addon { padding: 28px; }
  .ai-tiers { margin-left: 0; }
  .lead-card { padding: 26px 22px; }
}
