/* Flexsoft Dynamics — public site. Original design: confident navy/blue, airy white, soft tinted bands. */
:root {
  --navy: #0e2a5c;
  --navy-deep: #081a3d;
  --blue: #1a66f0;
  --blue-strong: #0f50c9;
  --blue-soft: #eaf1fe;
  --cyan: #22c3dd;
  --ink: #0b1526;
  --ink-2: #44526a;
  --ink-3: #6b7890;
  --line: #e4e9f1;
  --soft: #f5f8fc;
  --ok: #16865a;
  --c1: #22c3dd; --c2: #16a37a; --c3: #f2793a; --c4: #8b5cf6; --c5: #e3a008; --c6: #1a66f0;
  --ph-bg: #fff6d6; --ph-line: #e0b400;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .05), 0 10px 30px rgba(14, 42, 92, .08);
  --font: "Inter", "Segoe UI Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.center { text-align: center; margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Draft placeholders (stripped by build.py for production) */
.draft-bar { background: var(--ph-bg); border-bottom: 1px solid var(--ph-line); color: #5a4700; font-size: .85rem; text-align: center; padding: 6px 12px; }
.ph { background: var(--ph-bg); border: 1.5px dashed var(--ph-line); color: #6b5300; border-radius: 6px; font-size: .9em; }
.ph-inline { padding: 0 .35em; display: inline-block; }
.ph-block { padding: .6em .8em; display: block; }
.ph-box { display: grid; place-items: center; text-align: center; }
.ph-box > .ph { padding: .8em 1em; line-height: 1.4; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.4em; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(26, 102, 240, .25); }
.btn-primary:hover { background: var(--blue-strong); }
.btn-ghost { border-color: #cfd8e6; color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; box-shadow: none; }
.btn-block { width: 100%; }
.link-more { font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-more::after { content: " ›"; font-size: 1.15em; }
.link-more:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5em; color: var(--blue); text-decoration: none; font-size: 1.4rem; font-weight: 750; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 700; color: var(--navy); margin-bottom: .8em; }
.eyebrow-cyan { color: var(--cyan); }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); background: radial-gradient(60% 55% at 50% 30%, #eaf1fe 0%, rgba(234,241,254,0) 70%), #fff; overflow: hidden; }
.hero-copy { text-align: center; max-width: 1060px; }
.pill-badge { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em 1em; box-shadow: var(--shadow); margin-bottom: 28px; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 24px; }
.h1-navy { color: var(--navy); }
.h1-blue { color: var(--blue); }
.hero .lead { max-width: 640px; margin: 0 auto 32px; font-size: 1.18rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.cap-pill { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 650; color: var(--navy); background: #e3f6fa; border-radius: 999px; padding: .4em 1em .4em .7em; margin: 0; }
.seats { display: inline-flex; gap: 4px; }
.seats i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }

/* Hero gallery of module illustrations */
.gallery { width: min(1280px, 100% - 32px); margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tile figcaption { font-size: .84rem; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-top: 1px solid var(--line); background: #fbfcfe; }
.ui { height: 170px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.ui-bar { display: flex; gap: 8px; align-items: center; }
.ui-bar b { height: 9px; width: 38%; border-radius: 5px; background: #d9e1ec; }
.ui-bar .btn-mini { width: 46px; height: 18px; margin-left: auto; background: var(--blue); border-radius: 5px; }
.ui-bar .chip { width: 40px; height: 16px; background: var(--blue-soft); border-radius: 999px; }
.ui-field small { display: block; width: 30%; height: 5px; background: #e6ebf2; border-radius: 3px; margin-bottom: 4px; }
.ui-field span { display: block; height: 16px; border: 1px solid #dfe5ee; border-radius: 5px; }
.ui-field span.tall { height: 30px; }
.ui-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-rows { display: grid; gap: 7px; }
.ui-rows i { height: 14px; border-radius: 4px; background: linear-gradient(90deg, #eef2f7 0 30%, #f6f8fb 30% 70%, #e9eef5 70%); }
.ui-rows i:nth-child(2) { background: linear-gradient(90deg, #ffe7da 0 30%, #f6f8fb 30% 70%, #e9eef5 70%); }
.ui-rows.short i { height: 12px; }
.drill-total { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--blue-soft); }
.drill-total small { display: block; width: 40%; height: 5px; background: #c4d6f9; border-radius: 3px; margin-bottom: 7px; }
.drill-total strong { display: block; width: 55%; height: 14px; background: var(--blue); border-radius: 4px; }
.drill-arrow { width: 2px; height: 14px; background: var(--blue); margin-left: 22px; position: relative; }
.drill-arrow::after { content: ""; position: absolute; left: -4px; bottom: -4px; border: 5px solid transparent; border-top-color: var(--blue); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.kpis div { height: 34px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(180deg, #fff 55%, #eef3fb 55%); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #5b95f7, var(--blue)); }
.bars .b1 { height: 35%; } .bars .b2 { height: 60%; } .bars .b3 { height: 48%; } .bars .b4 { height: 78%; } .bars .b5 { height: 55%; } .bars .b6 { height: 92%; } .bars .b7 { height: 70%; }

/* Audience cards */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud-card { border: 1px solid var(--line); border-radius: 16px; padding: 36px; background: #fff; box-shadow: var(--shadow); }
.aud-card h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.aud-card > p:not(.eyebrow) { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a66f0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Dark band */
.band { background: radial-gradient(80% 120% at 70% 0%, #1c4aa8 0%, rgba(28,74,168,0) 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.band h2 { color: #fff; max-width: 640px; }
.band .lead { color: #c4d2ea; max-width: 600px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0 0; }
.facts div { border-left: 2px solid var(--cyan); padding-left: 16px; }
.facts dt { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.facts dd { margin: 4px 0 0; color: #c4d2ea; font-size: .95rem; }

/* Steps & learning path: cards with colored top border */
.steps, .path { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(4, 1fr); }
.path { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.steps li, .path li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; padding: 24px 22px; box-shadow: var(--shadow); }
.steps p, .path p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.c1 { border-top-color: var(--c1) !important; } .c2 { border-top-color: var(--c2) !important; } .c3 { border-top-color: var(--c3) !important; }
.c4 { border-top-color: var(--c4) !important; } .c5 { border-top-color: var(--c5) !important; } .c6 { border-top-color: var(--c6) !important; }
.step-n { display: block; font-weight: 750; color: var(--ink-3); font-size: .85rem; letter-spacing: .08em; margin-bottom: 12px; }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); font-weight: 750; margin-bottom: 14px; font-size: .95rem; }
.path li.final { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: var(--navy); }
.path li.final h3 { color: #fff; } .path li.final p { color: #c4d2ea; }
.path li.final .dot { background: var(--blue); color: #fff; }
.note { margin-top: 24px; color: var(--ink-3); font-size: .88rem; }

/* Case study block */
.case { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.case-meta { margin: 0; display: grid; gap: 18px; align-content: center; }
.case-meta dt { font-size: .82rem; color: var(--ink-3); margin-bottom: 2px; }
.case-meta dd { margin: 0; font-weight: 600; border-left: 2px solid var(--cyan); padding-left: 12px; font-size: .96rem; }
.case-quote { margin: 0; border-radius: 16px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(90% 120% at 100% 0%, #3b7bf5 0%, rgba(59,123,245,0) 55%), linear-gradient(140deg, #1452c8 0%, var(--navy) 100%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; box-shadow: var(--shadow); }
.case-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #bfe3ff; margin-bottom: 12px; }
.case-text { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.case-meta-inline { margin: 8px 0 28px; }
.case-meta-inline dd { font-weight: 500; color: var(--ink); }

/* Founder */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.founder-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; background: repeating-linear-gradient(45deg, #fbf3d2, #fbf3d2 12px, #fff8e0 12px, #fff8e0 24px); border: 1.5px dashed var(--ph-line); }
.founder-photo .ph { border: 0; background: transparent; font-weight: 600; }
.role { color: var(--ink-3); font-weight: 600; font-size: .95rem; margin-top: -.2em; }

/* Roster */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.avatar { aspect-ratio: 1 / 1; background: #fbf3d2; }
.avatar-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f1f4f9, #f1f4f9 10px, #eaeef5 10px, #eaeef5 20px); }
.avatar-empty svg { width: 64px; height: 64px; fill: none; stroke: #b0bccd; stroke-width: 1.4; }
.person-body { padding: 18px 20px 22px; }
.person-body p { color: var(--ink-2); font-size: .93rem; margin: 0 0 .4em; }
.person.pending h3 { color: var(--ink-3); }
.badge { display: inline-block; font-size: .74rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: var(--ink-2); margin-bottom: 10px; }
.badge-ok { background: #e1f5ec; color: var(--ok); }
.seats-left { font-weight: 600; color: var(--ink) !important; margin-top: .6em !important; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.price-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.price-label { font-weight: 650; color: var(--ink-3); margin-bottom: .2em; }
.price { font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .3em; line-height: 1.1; color: var(--navy); }
.currency { font-size: 1.6rem; vertical-align: .55em; }
.per { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-sub { color: var(--ink-3); font-size: .93rem; }

/* Events */
.events-empty { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 36px; background: #fff; box-shadow: var(--shadow); }
.events-empty h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.events-empty p:last-child { color: var(--ink-2); margin: 0; }
.cal { width: 80px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-align: center; background: #fff; }
.cal span { display: block; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: 4px 0; }
.cal strong { display: block; font-size: 1.8rem; padding: 6px 0; color: var(--ink-3); }

/* Join */
.join { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; }
.join-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c1); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.join-card p { color: var(--ink-2); }
.join-card .ph { margin: 16px 0 0; font-size: .85rem; }

/* FAQ */
.faq { display: grid; gap: 12px; text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 620; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* Final CTA */
.cta-final { background: radial-gradient(70% 90% at 50% 100%, #1d55c4 0%, rgba(29,85,196,0) 65%), linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; padding: clamp(72px, 9vw, 112px) 0; }
.cta-final h2 { color: #fff; }
.cta-final .lead { color: #c4d2ea; margin-bottom: 36px; }
.contact-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); text-decoration: none; color: #fff; text-align: left; transition: background .15s; }
.contact-card:hover { background: rgba(255,255,255,.14); }
.contact-card strong { display: block; font-size: .95rem; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; flex: none; }
.icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.site-footer { padding: 56px 0 28px; font-size: .93rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 280px; }
.site-footer h4 { font-size: .95rem; font-weight: 650; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--ink-3); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps, .roster { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 300px 1fr; gap: 40px; }
  .pricing, .join { grid-template-columns: 1fr 380px; gap: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .audience, .case, .founder, .pricing, .join { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo { max-width: 340px; }
  .events-empty { grid-template-columns: auto 1fr; }
  .events-empty .btn { grid-column: 1 / -1; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
  .ui { height: 120px; padding: 10px; gap: 6px; }
  .tile figcaption { font-size: .76rem; padding: 8px 10px; }
  .steps, .path, .roster { grid-template-columns: 1fr; }
  .roster .person { flex-direction: row; }
  .roster .avatar { width: 110px; aspect-ratio: auto; min-height: 120px; flex: none; }
  .avatar-empty svg { width: 44px; height: 44px; }
  .cta-row .btn { width: 100%; }
  .aud-card, .price-card, .join-card { padding: 24px; }
  .events-empty { grid-template-columns: 1fr; padding: 24px; }
  .price { font-size: 2.4rem; }
  .facts { gap: 28px 16px; }
  .contact-card { width: 100%; }
}
@media (min-width: 900px) { .h1-navy, .h1-blue { white-space: nowrap; } }

/* Monogram stand-in until the portrait arrives */
.monogram { display: grid; place-items: center; background: linear-gradient(145deg, #0b63ce, #0a3f86); border: 0; }
.monogram span { color: #fff; font-weight: 750; letter-spacing: .04em; font-size: clamp(2rem, 6vw, 5rem); }
.avatar.monogram span { font-size: 2.6rem; }
