/* ==========================================================================
   BUSINESS/FLOW — Design System
   Palette: Midnight Navy / Charcoal / White / Flow Blue / Flow Green
   Type: Space Grotesk (headings) · Inter (body)
   Personality: consultancy trust × modern AI × SME accessibility
   ========================================================================== */

:root {
  /* Brand palette */
  --navy:      #0B1F33;
  --navy-600:  #143150;
  --charcoal:  #1D1F24;
  --white:     #FFFFFF;
  --blue:      #00AEEF;   /* Flow Blue — the accent */
  --blue-700:  #0090c8;
  --green:     #00C896;   /* Flow Green — automated / outcome / success */

  /* Neutrals */
  --ink:       #1D1F24;
  --muted:     #5b6675;
  --muted-2:   #8a94a3;
  --line:      #e6eaf0;
  --soft:      #f5f8fc;   /* alternating section */
  --soft-2:    #eef3f9;
  --tint:      #e8f7fe;   /* blue tint surface */

  /* Type */
  --display: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06);
  --shadow:    0 8px 30px rgba(11,31,51,.08);
  --shadow-lg: 0 24px 60px rgba(11,31,51,.14);

  /* Layout */
  --maxw: 1160px;
  --gutter: 24px;
}

/* --- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }

/* --- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 92px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #cdd8e6; }
.section--tight { padding: 64px 0; }
.section__head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.12rem; }
.section--navy .section__head p { color: #aebccd; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 14px;
}
.eyebrow--slash::before { content: "/ "; color: var(--blue); font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* The slash device, reusable inline */
.slash { color: var(--blue); font-family: var(--display); font-weight: 700; font-style: normal; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #04263a; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--soft); color: var(--navy); border-color: var(--muted-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--blue-700); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }

/* --- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav__links a:hover, .nav__links a.is-active { color: var(--navy); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -20%, #15457a 0%, rgba(21,69,122,0) 55%),
    radial-gradient(90% 90% at 0% 120%, #0e2c4d 0%, rgba(14,44,77,0) 60%),
    var(--navy);
  color: #fff; padding: 104px 0 112px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.045'%3E%3Cpath d='M0 32h64M32 0v64'/%3E%3C/g%3E%3C/svg%3E");
}
/* giant faint slash motif */
.hero::after {
  content: ""; position: absolute; top: -10%; right: -2%; width: 42%; height: 130%;
  background: linear-gradient(180deg, var(--blue), rgba(0,174,239,0));
  opacity: .10; transform: skewX(-18deg); transform-origin: top right;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 940px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__sub { font-size: 1.22rem; color: #c5d2e3; max-width: 60ch; margin: 20px 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 24px; font-size: .92rem; color: #8ea0b6; }
.hero__note .slash { color: var(--blue); }

/* --- Answer-first / definition block (LLM-quotable) -------------------- */
.answer {
  border-left: 4px solid var(--blue);
  background: var(--soft);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 28px 32px; max-width: 860px; margin: 0 auto;
}
.answer p { font-size: 1.18rem; color: var(--ink); margin: 0; }
.answer p:last-child { margin-bottom: 0; }

/* --- Grids / cards ----------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--blue); transform: translateX(-4px); transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6deea; }
.card:hover::before { transform: translateX(0); }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--tint); color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
.card .more { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--blue-700); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: .93rem; color: var(--muted); }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* --- Comparison (Traditional / BusinessFlow) -------------------------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.compare__col { padding: 34px; border-radius: var(--r-lg); }
.compare__col--old { background: #fff; border: 1px solid var(--line); }
.compare__col--new { background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.compare__slash {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: var(--blue);
  padding: 0 18px;
}
.compare__col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compare__col--new h3 { color: #7fd5f5; }
.compare__col ul { list-style: none; margin: 14px 0 0; padding: 0; }
.compare__col li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); }
.compare__col--new li { border-top-color: rgba(255,255,255,.1); color: #d7e3f2; }
.compare__col li::before { position: absolute; left: 0; top: 10px; font-family: var(--display); font-weight: 700; }
.compare__col--old li::before { content: "\00d7"; color: var(--muted-2); font-size: 1.1rem; }
.compare__col--new li::before { content: "\2713"; color: var(--green); }

/* --- Steps (How it works) --------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; counter-reset: step; }
.step { position: relative; }
.step__num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 13px;
  background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* --- Feature messages (2x2) ------------------------------------------- */
.messages { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.message { padding-left: 22px; border-left: 3px solid var(--blue); }
.message h3 { margin-bottom: 6px; }
.message p { color: var(--muted); margin: 0; }

/* --- Pills (industries) ----------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: .15s; }
.pill:hover { border-color: var(--blue); color: var(--blue-700); }

/* --- Illustrative scenario callout ------------------------------------ */
.scenario {
  background: linear-gradient(160deg, var(--soft), #fff);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm);
  max-width: 880px; margin: 0 auto; position: relative;
}
.scenario__tag {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700);
  background: var(--tint); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.scenario p { font-size: 1.08rem; }
.scenario .result { color: var(--navy); font-weight: 600; }
.scenario .result .slash { margin: 0 6px; }
.scenario__note { font-size: .82rem; color: var(--muted-2); margin: 14px 0 0; }

/* --- FAQ (LLM-friendly) ----------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--blue); transition: transform .2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* --- CTA band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::after {
  content: ""; position: absolute; top: -20%; left: 40%; width: 30%; height: 140%;
  background: linear-gradient(180deg, var(--blue), rgba(0,174,239,0)); opacity: .12; transform: skewX(-18deg);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c5d2e3; max-width: 56ch; margin: 0 auto 30px; font-size: 1.14rem; }
.cta-band .hero__cta { justify-content: center; }

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #aebccd; padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.footer__brand img { height: 26px; margin-bottom: 16px; }
.footer__about { max-width: 32ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: var(--display); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: #aebccd; font-size: .95rem; }
.footer__links a:hover { color: #fff; }
.footer__contact { font-size: .95rem; line-height: 1.9; }
.footer__contact a { color: #cdd8e6; }
.footer__bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--muted-2);
}

/* --- Interior page hero ------------------------------------------------ */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 90% -30%, #15457a 0%, rgba(21,69,122,0) 55%), var(--navy);
  padding: 72px 0 76px;
}
.page-hero::after {
  content: ""; position: absolute; top: -20%; right: 4%; width: 30%; height: 150%;
  background: linear-gradient(180deg, var(--blue), rgba(0,174,239,0)); opacity: .10; transform: skewX(-18deg);
}
.page-hero .container { position: relative; z-index: 1; max-width: 880px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c5d2e3; font-size: 1.18rem; max-width: 60ch; margin: 14px 0 0; }
.page-hero .btn { margin-top: 28px; }

/* --- Breadcrumb -------------------------------------------------------- */
.breadcrumb { font-size: .9rem; margin-bottom: 18px; color: #8ea0b6; font-family: var(--display); }
.breadcrumb a { color: #aebccd; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: var(--blue); margin: 0 8px; font-weight: 700; }

/* --- Prose (article / rich text) -------------------------------------- */
.prose { max-width: 760px; }
.prose.center { margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.prose .lead { font-size: 1.22rem; color: var(--muted); }

/* --- Stats ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.stat__num .slash { font-size: 1.6rem; }
.stat__label { color: var(--muted); font-size: .96rem; margin-top: 8px; }

/* --- Contact layout ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--navy); }
.field .req { color: var(--blue-700); }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--tint); }
.field textarea { min-height: 140px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .85rem; color: var(--muted-2); }
.contact-aside { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.contact-aside h3 { font-size: 1.1rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-family: var(--display); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-top: 18px; }
.contact-aside dd { margin: 4px 0 0; }

/* --- Hub / link cards -------------------------------------------------- */
.hubcard { display: flex; flex-direction: column; }
.hubcard .more { margin-top: auto; padding-top: 14px; }

/* --- CTA inline -------------------------------------------------------- */
.inline-cta { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; text-align: center; }
.inline-cta h3 { margin-bottom: 6px; }
.inline-cta p { color: var(--muted); margin-bottom: 18px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .form__row { grid-template-columns: 1fr; }
}

/* --- Diagrams (inline SVG) --------------------------------------------- */
.diagram { width: 100%; max-width: 980px; margin: 0 auto; }
.diagram svg { width: 100%; height: auto; display: block; }
.figure { margin: 0; }
.figure figcaption { text-align: center; color: var(--muted-2); font-size: .85rem; margin-top: 14px; }

/* --- Media / photo slots ----------------------------------------------- */
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media.reverse .media-slot { order: -1; }
.media-slot {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--soft), var(--tint));
  border: 1px solid var(--line); aspect-ratio: 16 / 10;
}
.media-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-slot--label::after {
  content: attr(data-label); position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: var(--muted-2);
  font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  text-transform: uppercase; pointer-events: none;
}
@media (max-width: 820px) { .split-media { grid-template-columns: 1fr; gap: 28px; } .split-media.reverse .media-slot { order: 0; } }

/* --- Utilities --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 940px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare__slash { padding: 14px 0; }
  .messages { grid-template-columns: 1fr; }
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; gap: 0; align-items: flex-start;
    position: absolute; top: 72px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav__links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--soft); }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
