/* FlowBuilder Studio: marketing site. Tokens follow the FlowBuilder landing (landing.css). */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-2: #faf9f7;
  --bg-3: #f3f0ec;
  --deep: #2d1654;
  --accent: #7c3aed;
  --accent-2: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.08);
  --sage: #4f7a62;
  --sage-soft: #e8f0ea;
  --sun: #c2410c;
  --sun-soft: #fdf0e7;
  --line: #e4e0da;
  --card: #ffffff;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 980px;
  --shadow: 0 10px 30px rgba(29, 29, 31, 0.07);
  --shadow-lg: 0 24px 70px rgba(45, 22, 84, 0.16);
  --w: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6;
    --bg: #111014; --bg-2: #17151c; --bg-3: #1e1b25; --card: #1c1a22;
    --line: #2e2a36; --accent: #a78bfa; --accent-2: #c4b5fd; --accent-soft: rgba(167, 139, 250, 0.12);
    --sage: #8fc3a5; --sage-soft: #1b2a22; --sun: #fb923c; --sun-soft: #2c1d13;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6;
  --bg: #111014; --bg-2: #17151c; --bg-3: #1e1b25; --card: #1c1a22;
  --line: #2e2a36; --accent: #a78bfa; --accent-2: #c4b5fd; --accent-soft: rgba(167, 139, 250, 0.12);
  --sage: #8fc3a5; --sage-soft: #1b2a22; --sun: #fb923c; --sun-soft: #2c1d13;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 640px; }
.grad { background: linear-gradient(100deg, var(--accent), #db2777 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, .3); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-3); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-weight: 500; color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn-ghost { display: none; } .nav .btn-primary { margin-left: auto; } }

/* hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 60px; background: radial-gradient(1000px 500px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { margin: 22px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* hero mock */
.mock { position: relative; }
.mock-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mock-head b { font-size: 18px; }
.mock-meta { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.sage { background: var(--sage-soft); color: var(--sage); }
.pill.sun { background: var(--sun-soft); color: var(--sun); }
.strip { display: flex; gap: 8px; overflow: hidden; padding: 4px 0 2px; }
.strip figure { margin: 0; flex: 0 0 64px; text-align: center; }
.strip .art { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; }
.strip .art img { width: 54px; height: 54px; }
.strip figcaption { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.2; }
.going { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.faces { display: flex; }
.faces span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; border: 2px solid var(--card); margin-left: -8px; }
.faces span:first-child { margin-left: 0; }
.mock-float { position: absolute; right: -14px; bottom: -34px; width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px; font-size: 13px; }
.mock-float b { display: block; margin-bottom: 6px; font-size: 14px; }
.mock-float .row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); }
@media (max-width: 520px) { .mock-float { position: static; width: auto; margin-top: 14px; } }

/* sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .lead { margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.card p { color: var(--ink-2); margin: 8px 0 0; font-size: 15.5px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.soon { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sun); margin-left: 6px; }

/* the flow loop */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.loop > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.loop > div:last-child { border-right: 0; }
.loop .step { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.loop h3 { margin: 10px 0 8px; font-size: 22px; }
.loop p { color: var(--ink-2); margin: 0 0 14px; }
.loop ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.loop li { margin: 4px 0; }
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; } .loop > div { border-right: 0; border-bottom: 1px solid var(--line); } }

.happened { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-top: 56px; }
@media (max-width: 860px) { .happened { grid-template-columns: 1fr; } }
.diff { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.diff-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.diff-row:last-child { border-bottom: 0; }
.diff-row img { width: 40px; height: 40px; }
.diff-row.skip { opacity: .5; text-decoration: line-through; }
.diff-row small { color: var(--muted); display: block; font-size: 12.5px; text-decoration: none; }

/* small studios */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f7a62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; margin-top: 1px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps .card { counter-increment: s; }
.steps .card::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; margin-bottom: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* final cta */
.final { background: linear-gradient(135deg, #2d1654, #4c1d95 60%, #7c3aed); color: #fff; text-align: center; border-radius: var(--r-lg); padding: clamp(44px, 7vw, 80px) 24px; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 16px auto 28px; font-size: 18px; }
.final .btn-primary { background: #fff; color: #2d1654; box-shadow: none; }
.final .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.final .cta-row { justify-content: center; }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* grid children may shrink below their content (stops sideways scroll on phones) */
.hero-grid > *, .grid2 > *, .grid3 > *, .happened > *, .steps > * { min-width: 0; }
body { overflow-x: hidden; }
