/* Flowsdone landing page. Brand: navy #04141F, cyan #19B4E6 -> green #3EFF8B
   (same as the logo and the console). No framework; mobile first. */

:root {
  --navy: #04141f;
  --navy-2: #0a2231;
  --navy-3: #12324a;
  --cyan: #19b4e6;
  --green: #3eff8b;
  --green-2: #24e5a3;
  --ink: #0b1b2b;
  --muted: #4f5f70;
  --line: #e1e7ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --on-dark: #eaf6f2;
  --on-dark-muted: #9fb3c2;
  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--green-2) 70%, var(--green) 100%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgb(4 20 31 / 0.18);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: var(--navy); box-shadow: 0 8px 24px -10px rgb(36 229 163 / 0.7); }
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgb(36 229 163 / 0.9); }
.btn-ghost { color: var(--on-dark); border-color: rgb(234 246 242 / 0.35); }
.btn-ghost:hover { background: rgb(234 246 242 / 0.08); }
.btn-outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--cyan); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(4 20 31 / 0.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: #f2fbf7; }
.brand-name span { font-weight: 300; color: var(--green); }
.nav { display: none; align-items: center; gap: 26px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--on-dark-muted); transition: color 0.15s; }
.nav a:not(.btn):hover { color: #fff; }
.nav .nav-login { color: var(--on-dark); }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: transparent; border: 1px solid rgb(255 255 255 / 0.15); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: grid; gap: 4px; padding: 8px 20px 20px; border-top: 1px solid rgb(255 255 255 / 0.06); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 4px; text-decoration: none; color: var(--on-dark); border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.mobile-nav .btn { margin-top: 12px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgb(25 180 230 / 0.22), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgb(62 255 139 / 0.12), transparent 60%),
              var(--navy);
  color: var(--on-dark);
  padding: 64px 0 36px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #0f8fb8; margin-bottom: 14px; }
.eyebrow-dark { color: var(--cyan); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; color: #fff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: var(--on-dark-muted); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; color: var(--on-dark); font-size: 16px; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--grad); color: var(--navy); font-size: 12px; font-weight: 800; }

.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); margin: 30px 0; }
.phone {
  background: linear-gradient(180deg, #0f2a3b, #0a1f2d);
  border: 1px solid rgb(255 255 255 / 0.08); border-radius: 30px; padding: 16px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7), 0 0 0 8px rgb(255 255 255 / 0.03);
}
.phone-top { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--navy); font-weight: 700; }
.phone-name { font-weight: 600; color: #fff; font-size: 15px; }
.phone-status { font-size: 13px; color: var(--green-2); }
.chat { display: grid; gap: 10px; padding: 16px 4px 6px; font-size: 14.5px; line-height: 1.45; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; opacity: 0; transform: translateY(8px); animation: pop 0.5s ease forwards; }
.msg.in { justify-self: start; background: rgb(255 255 255 / 0.08); color: var(--on-dark); border-bottom-left-radius: 4px; }
.msg.out { justify-self: end; background: linear-gradient(135deg, #1a7fa3, #16a67a); color: #fff; border-bottom-right-radius: 4px; }
.msg:nth-child(1) { animation-delay: 0.2s; }
.msg:nth-child(2) { animation-delay: 1s; }
.msg:nth-child(3) { animation-delay: 1.9s; }
.msg:nth-child(4) { animation-delay: 2.6s; }
.msg.typing { animation-delay: 3.4s; display: inline-flex; gap: 4px; justify-self: start; background: rgb(255 255 255 / 0.08); }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-muted); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.float-card {
  position: absolute; display: grid; padding: 12px 16px; border-radius: 14px;
  background: rgb(255 255 255 / 0.96); color: var(--ink); box-shadow: var(--shadow); font-size: 13px;
}
.float-card strong { font-size: 14px; }
.float-card span { color: var(--muted); }
.float-a { top: -26px; right: -18px; }
.float-b { bottom: -30px; left: -34px; }
@media (max-width: 520px) { .float-card { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; opacity: 1; transform: none; }
  .msg.typing span { animation: none; }
}

.channels-strip {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / 0.08);
  color: var(--on-dark-muted); font-weight: 500; font-size: 15px;
}
@media (min-width: 960px) {
  .hero { padding: 96px 0 44px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-dark .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }

.grid-3 { display: grid; gap: 22px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3ec; }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { margin-top: 10px; color: var(--muted); }
.pain { position: relative; overflow: hidden; }
.pain::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }

.service .icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgb(25 180 230 / 0.14), rgb(62 255 139 / 0.16));
}
.service .icon svg { width: 26px; height: 26px; fill: none; stroke: #0e86ad; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service ul, .plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15.5px; }
.service li, .plan li { position: relative; padding-left: 24px; color: var(--ink); }
.service li::before, .plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(-45deg);
}

/* Channels */
.channel-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .channel-grid { grid-template-columns: repeat(4, 1fr); } }
.channel-grid li {
  display: grid; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-2), rgb(10 34 49 / 0.4));
  border: 1px solid rgb(255 255 255 / 0.07);
}
.channel-grid strong { font-size: 18px; color: #fff; }
.channel-grid strong::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--grad); vertical-align: middle; }
.channel-grid span { color: var(--on-dark-muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-alt); }
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px;
  background: var(--navy); color: var(--green); font-weight: 700; font-size: 18px;
}
.steps h3 { font-size: 20px; font-weight: 600; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Sectors */
.sector h3::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--grad); }

/* Trust */
.trust { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .trust { grid-template-columns: 0.9fr 1.1fr; } }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust-list li { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); }
.trust-list strong { color: var(--ink); }

/* Plans */
.plans { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; }
.plan .btn { margin-top: auto; }
.plan ul { margin-bottom: 28px; }
.plan-desc { min-height: 1.6em; }
.price { margin-top: 18px !important; color: var(--muted); font-size: 16px; }
.price span { font-size: 46px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -14px; left: 32px; margin: 0 !important; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: var(--green) !important; font-size: 13px; font-weight: 600;
}
.plans-note { margin-top: 32px; text-align: center; color: var(--muted); }
.plans-note a { color: #0e86ad; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 44px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.contact-copy h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.contact-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--on-dark-muted); font-size: 18px; }
.contact-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-points li { position: relative; padding-left: 28px; }
.contact-points li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.contact-client { margin-top: 28px !important; color: var(--on-dark-muted); }
.contact-client a { color: var(--green); font-weight: 600; }

.contact-form {
  display: grid; gap: 16px; padding: 30px; border-radius: 22px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field label span { color: #0e86ad; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(25 180 230 / 0.18); }
.field [aria-invalid="true"] { border-color: #d64545; }
.field-error { font-size: 14px; color: #c03535; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: #16a67a; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; text-align: center; }
.form-status.ok { color: #0e8a5f; font-weight: 600; }
.form-status.error { color: #c03535; }

/* Footer */
.site-footer { background: #020d15; color: var(--on-dark-muted); padding: 44px 0; }
.footer-inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-tag { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 15px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 14px; }

/* Reveal on scroll (only when JS is on and motion is OK) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
