/* Flow Technologies website · light by default, dark via [data-theme="dark"] */
:root, [data-theme="light"] {
  --bg: #F6F8FA; --surface: #FFFFFF; --ink: #0E1A2B; --sub: #4A5568; --muted: #667085;
  --line: #E3E8EE; --line-strong: #C9D2DC; --accent: #0F766E; --accent-hover: #115E59; --on-accent: #FFFFFF;
  --accent-soft: #E3F2F0; --accent-on-ink: #5EEAD4; --shadow: rgba(14,26,43,0.08);
  --band: #0E1A2B; --band-text: #F6F8FA; --band-card: rgba(255,255,255,0.06); --band-line: rgba(255,255,255,0.12);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0A1220; --surface: #0F1A2C; --ink: #EEF2F6; --sub: #A9B4C5; --muted: #8B97AB;
  --line: #1F2B3F; --line-strong: #33435E; --accent: #2DD4BF; --accent-hover: #5EEAD4; --on-accent: #04211D;
  --accent-soft: rgba(45,212,191,0.12); --accent-on-ink: #5EEAD4; --shadow: rgba(0,0,0,0.4);
  --band: #061020; --band-text: #EEF2F6; --band-card: rgba(255,255,255,0.05); --band-line: rgba(255,255,255,0.1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
.serif, h1, h2, h3 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
@media (min-width: 900px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* top bar + header */
.topbar { background: var(--band); color: var(--band-text); font-size: 13px; padding-top: env(safe-area-inset-top); }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.verified { display: inline-flex; align-items: center; gap: 8px; }
.verified svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-r { display: inline-flex; gap: 20px; opacity: .85; }
.topbar a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 24px; height: 24px; fill: none; stroke-width: 3; stroke-linecap: round; }
.logo-mark .s1 { stroke: var(--accent-on-ink); }
[data-theme="dark"] .logo-mark .s1 { stroke: #0F766E; }
.logo-mark .s2 { stroke: var(--bg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: "Source Serif 4", Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.logo-text small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--sub); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#themeToggle .moon { fill: currentColor; stroke: none; }
#themeToggle .sun { display: none; }
[data-theme="dark"] #themeToggle .moon { display: none; }
[data-theme="dark"] #themeToggle .sun { display: inline; }
.burger { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mm-in { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; padding-bottom: 20px; }
.mm-in a:not(.btn) { padding: 12px 0; font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mm-in .btn { margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; padding: 14px 22px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-line:hover { color: var(--ink); background: var(--surface); }
.nav-cta { padding: 11px 18px; font-size: 15px; }

/* hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-family: Inter, system-ui, sans-serif; }
.eyebrow.on-ink { color: var(--accent-on-ink); }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.06; font-weight: 500; letter-spacing: -0.025em; }
.lead { max-width: 560px; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.65; color: var(--sub); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { flex: 1 1 400px; min-width: 0; max-width: 480px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 24px 60px var(--shadow); overflow: hidden; }
.facts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.facts dl { margin: 0; padding: 6px 22px 14px; }
.facts dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd a { color: var(--ink); }

/* sections */
.section { padding: clamp(64px, 9vw, 96px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; }
.two-col { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.col-head { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: var(--sub); }
.muted-p { color: var(--sub); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.sec-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.sec-head > p { max-width: 420px; color: var(--sub); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.does { margin-top: 56px; }
.card { padding: 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card.row { flex-direction: row; align-items: flex-start; gap: 18px; }
.card.row > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card h3 { font-size: 23px; font-weight: 600; }
.card p { font-size: 15.5px; color: var(--sub); }
.ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.ic.ink { background: var(--ink); color: var(--bg); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.brand-card { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; padding: clamp(28px, 5vw, 44px); border-radius: 20px; background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(47,107,255,0.3), transparent 60%), #05081C; color: #F4F6FF; text-decoration: none; transition: transform .25s; }
.brand-card:hover { color: #F4F6FF; transform: translateY(-3px); }
.bc-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bc-logo { font-family: Inter, sans-serif; font-size: clamp(36px, 5vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.bc-logo { display: inline-flex; align-items: baseline; color: #FFFFFF; }
.bc-logo svg { width: 0.942em; height: 0.754em; margin-left: 0.03em; position: relative; top: 0.054em; }
.bc-desc { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: #C9D1EE; max-width: 540px; }
.bc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #8FB0FF; }
.bc-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bc-apps { flex: 1 1 280px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bc-apps li { font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }

.legal-sec-home { padding-top: 0; }
.legal-list { flex: 2 1 560px; min-width: 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.legal-list a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.legal-list a:last-child { border-bottom: 0; }
.legal-list a:hover { background: var(--accent-soft); color: var(--ink); }
.legal-list .scope { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 88px; flex-shrink: 0; }
.legal-list .t { flex: 1; font-weight: 500; min-width: 0; }
.legal-list .p { font-size: 13px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.legal-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.contact { background: var(--band); color: var(--band-text); padding: clamp(64px, 9vw, 96px) 0; }
.contact h2 { font-size: clamp(32px, 4.6vw, 48px); }
.contact .col-head p { font-size: 18px; opacity: .82; max-width: 480px; }
.contact a { color: var(--accent-on-ink); }
.contact-grid { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-grid > div { padding: 22px; border-radius: 14px; background: var(--band-card); display: flex; flex-direction: column; gap: 6px; }
.contact-grid span { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: .65; }
.contact-grid address, .contact-grid a { font-style: normal; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.footer { background: var(--band); color: var(--band-text); border-top: 1px solid var(--band-line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; opacity: .8; }
.f-links { display: flex; gap: 20px; }
.footer a { color: inherit; }

/* legal pages */
.doc-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.doc-hero-in { display: flex; flex-direction: column; gap: 14px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.doc-hero-in h1 { max-width: 860px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.updated { font-size: 15px; color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.doc-links a { font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.doc-links a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.doc { padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 9vw, 96px); }
.doc-body { max-width: 820px; display: flex; flex-direction: column; gap: 40px; }
.doc-body section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.doc-body h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.015em; }
.doc-body h3 { font-size: 19px; font-weight: 600; margin-top: 6px; }
.doc-body p, .doc-body li { font-size: 16px; line-height: 1.75; color: var(--sub); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.doc-body li::marker { color: var(--accent); }
.doc-body .contact-block { padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.doc-body .contact-block p { margin: 0; }
.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 80px 0; }

/* responsive */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .facts { max-width: none; }
}
@media (max-width: 720px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .card.row { flex-direction: column; }
  .topbar-r { display: none; }
  .cta-row .btn { flex: 1 1 220px; }
  .legal-list .p { display: none; }
  .legal-list .scope { width: 74px; font-size: 11px; }
  .facts dl div { grid-template-columns: 1fr; gap: 2px; }
  .logo-text b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
/* anchor targets land below the sticky header */
main section[id] { scroll-margin-top: 96px; }
@media (max-width: 960px) { main section[id] { scroll-margin-top: 84px; } }
