/* ==========================================================================
   Flowgen — company / pricing / customers / legal page styles
   (loaded after styles.css on: /pricing, /contact-sales, /customers/*, /legal/*,
    /vulnerability-reporting, /ai-instructions)
   ========================================================================== */

/* ---------- Generic helpers ---------- */
.muted { color: var(--fg-2); }
.small { font-size: 13px; color: var(--fg-3); }
.center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.hr-dash { border: 0; border-top: 1px dashed var(--line-dash); margin: 0; }

/* Segmented control (audience toggle / billing toggle) */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--fg-2); transition: background .15s, color .15s; }
.seg button.is-active { background: var(--fg); color: #000; }
.seg-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.seg-row .save { font-size: 12px; color: var(--green); }

/* Pill filter bar (customers) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 0; border-top: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); }
.filter-bar .lbl { font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }

/* ---------- Pricing ---------- */
.pricing-wrap { padding: 8px 0 64px; }
.pricing-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.plan .plan-note { font-size: 13px; color: var(--fg-3); margin-top: -2px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price-sub { font-size: 13px; color: var(--fg-3); min-height: 18px; }
.plan-badge { align-self: flex-start; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(8,255,182,.3); padding: 3px 8px; border-radius: 999px; margin-bottom: 14px; }

.compare { padding: 32px 0 64px; overflow-x: auto; }
.compare table { min-width: 720px; }
.compare th { position: sticky; top: calc(var(--header-h)); background: var(--bg); z-index: 2; }
.compare th .btn { margin-top: 10px; }
.compare th strong { display: block; font-size: 16px; font-weight: 500; color: var(--fg); text-transform: none; letter-spacing: 0; }
.compare th small { display: block; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fg-3); margin-top: 2px; }
.compare td { vertical-align: top; color: var(--fg-2); }
.compare td:first-child { color: var(--fg); width: 34%; }
.compare td:first-child small { display: block; color: var(--fg-3); font-size: 12px; margin-top: 2px; }
.compare tr.group td { padding-top: 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--fg); font-weight: 500; font-size: 15px; background: transparent !important; }
.compare tr.group td small { font-weight: 400; color: var(--fg-3); font-size: 13px; display: block; margin-top: 2px; }
.compare .yes { color: var(--green); }
.compare .no { color: var(--fg-4); }
.compare ul.inline { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.compare ul.inline li { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); }
.compare .cap { display: block; font-size: 12px; color: var(--fg-3); margin-top: 4px; }

/* Quote block (pricing, contact) */
.quote-block { max-width: 760px; margin: 0 auto; padding: 64px 0; text-align: center; }
.quote-block blockquote { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; }
.quote-block blockquote::before { content: "“"; color: var(--fg-4); }
.quote-block blockquote::after { content: "”"; color: var(--fg-4); }
.quote-block footer { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--fg-2); }
.quote-block footer strong { color: var(--fg); font-weight: 500; }
.avatar-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--c, linear-gradient(135deg, #3b4a3e, #151b17)); flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; }

/* FAQ heading */
.faq h2 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 20px; }

/* ---------- Logo wordmarks ---------- */
.logo-grid > * { color: var(--fg); opacity: .9; text-align: center; padding: 0 12px; }
.logo-grid .serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .12em; font-size: 14px; text-transform: uppercase; }
.logo-grid .heavy { font-weight: 800; letter-spacing: .04em; }
.logo-grid .light { font-weight: 400; letter-spacing: .02em; }
.logo-grid .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; font-size: 14px; }
.logo-grid--6 { grid-template-columns: repeat(6, 1fr); }
.logo-grid--6 > * { height: 80px; font-size: 14px; }
.logo-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .logo-grid--6, .logo-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .logo-grid--6, .logo-grid--5 { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact sales ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0 80px; align-items: start; }
.contact-intro h1 { font-size: 48px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.contact-intro .eyebrow { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.contact-intro > p { margin-top: 18px; color: var(--fg-2); font-size: 17px; max-width: 440px; }
.checklist { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checklist li i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); font-size: 12px; font-style: normal; flex: none; }
.contact-quote { margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.contact-quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg); }
.contact-quote footer { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--fg-2); }
.contact-quote footer strong { color: var(--fg); font-weight: 500; display: block; }
.contact-form-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); padding: 28px; }
.contact-form-card h2 { font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.contact-form-card .form { max-width: none; }
.form .check { display: flex; align-items: center; gap: 10px; flex-direction: row; cursor: pointer; }
.form .check input { width: 16px; height: 16px; accent-color: var(--fg); padding: 0; }
.form .btn[type=submit] { width: 100%; margin-top: 4px; padding: 12px; }
.form-foot { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.form-foot a { text-decoration: underline; color: var(--fg-2); }
.form .req { color: var(--fg-3); }
.teams-empower { padding: 0 0 80px; }
.teams-empower h2 { font-size: 14px; color: var(--fg-2); font-weight: 400; margin-bottom: 20px; }
@media (max-width: 980px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } .contact-intro h1 { font-size: 40px; } }

/* ---------- Customers hub ---------- */
.featured-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 72px; }
.featured-track .cust-card { width: auto; height: 380px; }
.quote-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--bg-1); }
.quote-card .cust-logo { position: static; }
.quote-card blockquote { margin: 24px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.quote-card footer { margin-top: 20px; font-size: 13px; color: var(--fg-2); }
.quote-card footer i { font-style: normal; margin: 0 6px; }
.quote-card .link-arrow { margin-top: 12px; color: var(--fg); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px 0 80px; }
.story-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-1); transition: border-color .15s; }
.story-card:hover { border-color: #3a3a3a; }
.story-card .thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--hue, 200) 30% 16%), hsl(calc(var(--hue, 200) + 40) 30% 9%)); font-weight: 700; font-size: 20px; letter-spacing: .02em; border-bottom: 1px solid var(--line-soft); }
.story-card .thumb.serif { font-family: Georgia, serif; font-weight: 400; letter-spacing: .14em; font-size: 15px; }
.story-card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.story-card h3 { font-size: 16px; font-weight: 500; line-height: 1.35; }
.story-card .link-arrow { margin-top: auto; padding-top: 6px; }
.story-card[hidden] { display: none; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 80px; }
.testi { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg-1); }
.testi .stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; margin-bottom: 12px; }
.testi p { font-size: 15px; line-height: 1.55; }
.testi footer { margin-top: 16px; font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 10px; }
.testi footer .avatar-dot { width: 28px; height: 28px; font-size: 11px; }
@media (max-width: 980px) { .featured-track, .story-grid, .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .featured-track, .story-grid, .testi-grid { grid-template-columns: 1fr; } .featured-track .cust-card, .quote-card { height: auto; min-height: 320px; } }

/* ---------- Case study ---------- */
.story-hero { padding: 48px 0 56px; }
.story-hero .crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 36px; }
.story-hero .crumbs a:hover { color: var(--fg); }
.story-hero .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.story-hero .cust-logo { position: static; display: inline-flex; font-size: 20px; margin-bottom: 20px; }
.story-hero h1 { font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.story-hero .lede { margin-top: 18px; color: var(--fg-2); font-size: 17px; max-width: 520px; }
.metric-card { border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(90% 80% at 80% 0%, hsl(var(--hue, 160) 40% 14%), var(--bg-1) 70%); padding: 36px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; inset: auto -10% -30% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line-dash); }
.metric-card strong { display: block; font-size: 88px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.metric-card p { margin-top: 12px; color: var(--fg-2); font-size: 15px; max-width: 320px; }
.metric-card .spark { margin-top: 28px; width: 100%; height: 70px; }
.story-stats { grid-template-columns: repeat(3, 1fr); }
.story-stats--4 { grid-template-columns: repeat(4, 1fr); }
.story-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 56px 0 80px; align-items: start; }
.story-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.story-side dl { display: grid; gap: 14px; margin: 0; }
.story-side dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.story-side dd { margin: 4px 0 0; color: var(--fg); }
.story-side dd a { text-decoration: underline; text-decoration-color: var(--fg-4); }
.story-side .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.story-side .people { display: flex; flex-direction: column; gap: 10px; }
.story-side .person { display: flex; gap: 10px; align-items: center; }
.story-side .person small { display: block; color: var(--fg-3); font-size: 12px; }
.story-side .btn { margin-top: 6px; }
.story-body { max-width: 680px; font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.story-body h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); margin: 48px 0 14px; line-height: 1.2; }
.story-body h2:first-child { margin-top: 0; }
.story-body h3 { font-size: 20px; font-weight: 500; color: var(--fg); margin: 32px 0 10px; }
.story-body p + p { margin-top: 16px; }
.story-body ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.story-body li + li { margin-top: 8px; }
.story-body strong { color: var(--fg); font-weight: 500; }
.pullquote { margin: 36px 0; padding: 28px 28px 24px; border: 1px solid var(--line); border-left: 2px solid var(--fg); border-radius: 0 12px 12px 0; background: var(--bg-1); }
.pullquote blockquote { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--fg); }
.pullquote footer { margin-top: 14px; font-size: 13px; color: var(--fg-3); display: flex; gap: 10px; align-items: center; }
.pullquote footer strong { color: var(--fg-2); font-weight: 500; }
.result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.result-cards div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg-1); }
.result-cards strong { display: block; font-size: 32px; font-weight: 500; letter-spacing: -0.03em; color: var(--fg); }
.result-cards span { font-size: 13px; color: var(--fg-2); }
.result-cards small { display: block; color: var(--fg-3); font-size: 12px; margin-top: 6px; }
.chart-card { margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg-1); font-size: 13px; }
.chart-card header { display: flex; justify-content: space-between; color: var(--fg-2); margin-bottom: 8px; }
.chart-card header b { color: var(--fg); font-weight: 500; font-size: 18px; }
.chart-card svg { width: 100%; height: 150px; }
.more-stories { padding: 0 0 80px; }
.more-stories .section-head { padding-top: 0; }
@media (max-width: 980px) { .story-hero .hero-grid { grid-template-columns: 1fr; } .story-hero h1 { font-size: 36px; } .metric-card strong { font-size: 64px; } .story-layout { grid-template-columns: 1fr; gap: 32px; } .story-side { position: static; } .story-stats, .story-stats--4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal ---------- */
.legal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 96px; }
.legal-list .card { display: flex; flex-direction: column; gap: 8px; }
.legal-list .card .link-arrow { margin-top: auto; padding-top: 12px; }
.legal-list .card .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.prose .updated { display: inline-block; font-size: 13px; color: var(--fg-3); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.prose ol { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose .table { font-size: 14px; margin: 16px 0 24px; }
.prose .table td { color: var(--fg-2); }
.prose .table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--fg); }
.prose .callout { border: 1px solid var(--line); border-left: 2px solid var(--green); border-radius: 0 10px 10px 0; padding: 16px 20px; background: var(--bg-1); margin: 20px 0; font-size: 15px; }
.prose address { font-style: normal; }
.prose .toc { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 24px 0 8px; background: var(--bg-1); font-size: 14px; }
.prose .toc p { color: var(--fg-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.prose .toc ol { columns: 2; gap: 24px; margin: 0; }
.prose .toc a { text-decoration: none; color: var(--fg-2); }
.prose .toc a:hover { color: var(--fg); }
@media (max-width: 980px) { .legal-list { grid-template-columns: 1fr; } .prose .toc ol { columns: 1; } }

/* ---------- AI instructions ---------- */
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 16px 0 8px; font-size: 15px; border-top: 1px dashed var(--line-dash); padding-top: 16px; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; color: var(--fg); }
.kv dd small { color: var(--fg-2); display: block; }
.prose .product-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .product-list li { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg-1); font-size: 15px; }
.prose .product-list strong { display: block; margin-bottom: 2px; }
.prose pre { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow: auto; font-size: 13px; line-height: 1.55; color: var(--fg); }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dt { margin-top: 10px; } }
