/* Scoped styles follow the Flow landing page's Inter / blue-purple buttons. */
#flow-cookie-ui, .flow-cookie-footer, .flow-policy { font-family: Inter, sans-serif; color: #0f172a; }
#flow-cookie-ui *, .flow-cookie-footer *, .flow-policy * { box-sizing: border-box; }
#flow-cookie-ui [hidden] { display: none !important; }
#flow-cookie-ui a, .flow-cookie-footer a { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; }
#flow-cookie-ui a:hover, .flow-cookie-footer a:hover { color: #7e22ce; }
#flow-cookie-ui :focus-visible, .flow-cookie-footer :focus-visible, .flow-policy :focus-visible { outline: 3px solid #6366f1; outline-offset: 4px; }
#flow-cookie-ui ::selection, .flow-policy ::selection { background: #e0e7ff; color: #1e1b4b; }
.flow-cookie-banner { position: fixed; inset: auto 0 0; z-index: 1000; background: #fff; box-shadow: 0 -8px 40px rgb(15 23 42 / 12%); padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)); max-height: 80dvh; overflow: auto; }
.flow-cookie-banner__inner { max-width: 1232px; margin: 0 auto; }
.flow-cookie-banner p { font-size: 14px; line-height: 1.65; color: #475569; margin: 0 0 18px; }
.flow-cookie-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.flow-cookie-button { min-height: 44px; padding: 12px 24px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .015em; cursor: pointer; border: 1px solid transparent; transition: background-color .18s, box-shadow .18s; }
.flow-cookie-button--primary { color: #fff; background: linear-gradient(110deg, #3130df, #7e16c3); box-shadow: 0 4px 10px rgb(88 28 135 / 15%); }
.flow-cookie-button--primary:hover { background: linear-gradient(110deg, #2626bf, #6b13a6); }
.flow-cookie-button--secondary { color: #334155; background: #fff; border-color: #cbd5e1; }
.flow-cookie-button--secondary:hover { background: #f8fafc; border-color: #94a3b8; }
.flow-cookie-button--text { color: #4338ca; background: transparent; display: inline-flex; align-items: center; gap: 10px; }
.flow-cookie-button--text:hover { background: #f5f3ff; }
.flow-cookie-button svg, .flow-cookie-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-cookie-dialog { position: fixed; inset: 0; width: min(640px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 32px; background: #fff; color: #0f172a; border: none; border-radius: 24px; overflow: auto; box-shadow: 0 24px 80px rgb(15 23 42 / 20%); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd5e1 #fff; }
.flow-cookie-dialog::backdrop { background: rgb(15 23 42 / 48%); }
.flow-cookie-modal-open { overflow: hidden; scrollbar-gutter: stable; }
.flow-cookie-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.flow-cookie-dialog h2 { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; margin: 4px 0 0; }
.flow-cookie-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; background: #f1f5f9; border: 0; border-radius: 50%; color: #475569; cursor: pointer; }
.flow-cookie-close:hover { background: #e2e8f0; }
.flow-cookie-dialog > p { font-size: 14px; line-height: 1.65; color: #475569; margin: 0 0 24px; }
.flow-cookie-options { border-top: 1px solid #e2e8f0; }
.flow-cookie-option { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 14px; padding: 20px 0; border-bottom: 1px solid #e2e8f0; cursor: pointer; }
.flow-cookie-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #4f46e5; cursor: pointer; }
.flow-cookie-option:has(input:disabled) { cursor: default; }
.flow-cookie-option input:disabled { cursor: default; }
.flow-cookie-option__title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.flow-cookie-required { color: #64748b; font-size: 11px; font-weight: 400; }
.flow-cookie-option__description { display: block; font-size: 13px; line-height: 1.65; color: #475569; margin-top: 6px; }
.flow-cookie-documents { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0; font-size: 12px; line-height: 1.7; }
.flow-cookie-dialog .flow-cookie-actions { gap: 10px; }
.flow-cookie-dialog .flow-cookie-button { padding-inline: 18px; font-size: 11px; }
.flow-cookie-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; padding: 0; font-size: 12px; line-height: 1.7; }
.flow-cookie-footer a, .flow-cookie-footer button { color: #64748b; }
.flow-cookie-footer a { text-decoration: none; }
.flow-cookie-footer button { background: transparent; border: none; padding: 6px 0; cursor: pointer; font: inherit; text-decoration: none; }
.flow-cookie-footer a:hover, .flow-cookie-footer button:hover { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; }
.flow-site-footer { padding-top: 32px; padding-bottom: 32px; }
.flow-site-footer > .max-w-7xl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 48px; }
.flow-site-footer__brand { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.flow-site-footer__brand img { height: 24px; }
.flow-site-footer__brand span { max-width: 340px; font-size: 12px; line-height: 1.7; }
.flow-site-footer__copyright { grid-column: 2; grid-row: 2; text-align: right; color: #64748b; }
.flow-site-footer .flow-cookie-footer { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 8px 24px; }
@media (max-width: 767px) {
  .flow-site-footer > .max-w-7xl { grid-template-columns: 1fr; gap: 20px; }
  .flow-site-footer__brand { grid-column: 1; grid-row: 1; gap: 10px; }
  .flow-site-footer .flow-cookie-footer { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 6px 20px; }
  .flow-site-footer__copyright { grid-column: 1; grid-row: 3; text-align: left; }
}
.flow-cookie-footer--fallback { position: fixed; left: 16px; bottom: 16px; z-index: 50; padding: 0; }
.flow-cookie-footer--fallback > a { display: none; }
.flow-cookie-footer--fallback button { padding: 9px 16px; border-radius: 999px; background: #fff; color: #475569; box-shadow: 0 2px 12px rgb(15 23 42 / 12%); }
.flow-cookie-status { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 1100; max-width: 600px; margin: 0 auto; padding: 16px 20px; background: #fff; color: #475569; font-size: 13px; line-height: 1.6; border-radius: 12px; box-shadow: 0 8px 30px rgb(15 23 42 / 18%); }
.flow-policy { background: #fff; min-height: 100vh; font-size: 16px; line-height: 1.8; }
.flow-policy__header { border-bottom: 1px solid #e2e8f0; padding: 24px; }
.flow-policy__header > div { max-width: 1232px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.flow-policy__header img { width: 180px; height: auto; }
.flow-policy__header a { color: #475569; font-size: 14px; }
.flow-policy main { max-width: 808px; margin: auto; padding: 64px 24px 80px; }
.flow-policy h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 16px; text-wrap: balance; }
.flow-policy h2 { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin: 40px 0 14px; }
.flow-policy h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 24px 0 10px; }
.flow-policy p, .flow-policy ul { margin: 0 0 16px; color: #475569; }
.flow-policy ul { list-style: disc; padding-left: 24px; }
.flow-policy main a { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.flow-policy code { font-size: .9em; overflow-wrap: anywhere; }
.flow-policy__date { font-size: 13px; color: #64748b; }
.flow-policy footer { border-top: 1px solid #e2e8f0; padding: 24px 0; }
@media (max-width: 600px) {
  .flow-cookie-banner { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
  .flow-cookie-banner p { font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
  .flow-cookie-banner .flow-cookie-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .flow-cookie-button { width: 100%; font-size: 11px; padding: 11px 16px; }
  .flow-cookie-button--text { justify-content: center; }
  .flow-cookie-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px 20px; border-radius: 20px; }
  .flow-cookie-dialog h2 { font-size: 23px; }
  .flow-cookie-dialog > p { font-size: 13px; margin-bottom: 20px; }
  .flow-cookie-option { padding: 18px 0; gap: 12px; }
  .flow-cookie-option__title { font-size: 15px; }
  .flow-cookie-option__description { font-size: 12px; }
  .flow-cookie-dialog .flow-cookie-actions { width: 100%; }
  .flow-policy .flow-cookie-footer { gap: 8px 18px; padding-inline: 20px; }
  .flow-policy main { padding-top: 40px; }
  .flow-policy__header img { width: 150px; }
  .flow-policy__header a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { #flow-cookie-ui * { transition: none; } }

/* Required personal-data consent belongs to the lead form, separately from cookies. */
.flow-form-consent { padding: 4px 0 8px; color: #475569; }
.flow-form-consent__label { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; cursor: pointer; }
.flow-form-consent__label input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #4f46e5; cursor: pointer; }
.flow-form-consent__label span { font-size: 12px; line-height: 1.7; }
.flow-form-consent a { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; }
.flow-form-consent a:hover { color: #7e22ce; }
.flow-form-consent :focus-visible { outline: 3px solid #6366f1; outline-offset: 3px; }
.flow-form-consent__error { display: none; margin: 8px 0 0 32px; color: #b91c1c; font-size: 12px; line-height: 1.6; }
.flow-form-consent:has(input:user-invalid) .flow-form-consent__error { display: block; }
.flow-form-consent input:user-invalid { outline: 2px solid #dc2626; outline-offset: 2px; }
