/* Flowthera — site styles */
:root {
  --ink: #0d1b1e;
  --ink-2: #3f4f54;
  --ink-3: #5d6b6f;
  --line: #e3e6e2;
  --bg: #fafaf7;
  --surface: #ffffff;
  --accent: #0e6e66;
  --accent-ink: #0a524c;
  --accent-soft: #e4f1ef;
  --amber: #e8a33d;
  --dark: #0d1b1e;
  --dark-line: #2c3d41;
  --dark-ink-2: #c9d3d2;
  --radius: 16px;
  --max: 1120px;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::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: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, 0.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22363a; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-soft); color: var(--ink); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }

/* Type */
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em; }
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }

/* Sections */
.section { padding: 88px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .eyebrow { color: #8fd3c9; }
.section-dark .muted { color: var(--dark-ink-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }

/* Hero */
.hero { padding: 80px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Flow diagram */
.flow { display: flex; flex-direction: column; align-items: stretch; }
.flow-step { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.flow-step strong { font-weight: 600; }
.flow-step span { font-size: 14px; color: var(--ink-3); }
.flow-step.is-us { border: 2px solid var(--accent); background: var(--accent-soft); }
.flow-step.is-us strong { color: var(--accent-ink); font-weight: 700; }
.flow-step.is-us span { color: var(--ink-2); }
.flow-line { align-self: center; width: 2px; height: 28px; background: #9aa6a3; }
.flow-caption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.section-white .card { background: var(--bg); }
.card-white { background: var(--surface); }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon { width: 28px; height: 28px; color: var(--accent); }

.product { text-decoration: none; color: var(--ink); background: var(--surface); }
a.product:hover { border-color: var(--accent); color: var(--ink); }
.product.is-featured { border: 2px solid var(--accent); }
.product.is-planned { border-style: dashed; border-color: #9aa6a3; background: transparent; }
.product .more { margin-top: auto; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--ink); }
.tag-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-soft { background: #edefeb; border-color: #edefeb; color: var(--ink-2); }

.principle { border-top: 1px solid #3a4c50; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.principle h3 { font-size: 19px; font-weight: 600; }
.principle p { color: var(--dark-ink-2); font-size: 16px; }

.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--ink); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--ink-2); font-size: 16px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

/* Region strip */
.region { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.region p { color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { flex: none; margin-top: 2px; }
.contact-list strong { display: block; font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink-2); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid #cfd5d2; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 110, 102, .18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--accent-ink); font-weight: 600; }
.form-status.err { color: #a3361b; font-weight: 600; }

/* CTA band */
.cta { border-radius: 24px; background: var(--accent); color: #fff; padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta p { color: #e2f2ef; font-size: 18px; }

/* Product page */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 20px 48px -28px rgba(13, 27, 30, .35); display: flex; flex-direction: column; gap: 14px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.chat-head strong { color: var(--ink); }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.msg-user { align-self: flex-end; max-width: 85%; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px 14px 4px 14px; font-size: 15px; }
.msg-ai { max-width: 92%; background: #f2f4f1; padding: 12px 14px; border-radius: 14px 14px 14px 4px; font-size: 15px; display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.msg-row b { color: var(--accent-ink); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Legal pages */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; margin-top: 12px; }
  .nav-links li a.btn { display: flex; padding: 0 18px; justify-content: center; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
