/* Fuse Essentials website. Colours and type match the app (Working\SBMS\assets\css\fuse-theme.css). */
:root {
  --green: #007E45;
  --green-dark: #006034;
  --green-tint: #E7F4ED;
  --ink: #16241C;
  --ink-2: #3A4A42;
  --muted: #5C6B63;
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --border: #DCE5E0;
  --border-strong: #C4D2CB;
  --r: 8px;
  --r-lg: 12px;
  --e3: 0 1px 2px rgba(22,36,28,.06), 0 12px 32px -12px rgba(22,36,28,.18), 0 40px 80px -40px rgba(22,36,28,.24);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.032em; margin-bottom: 24px; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.625rem); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: 1.0625rem; letter-spacing: -0.011em; margin-bottom: 8px; }
p { margin: 0 0 16px; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.brand b { font-weight: inherit; }
.brand span { color: var(--green); }
/* "Fuse Essentials" in running text, coloured like the logo and kept on one line */
.fe { white-space: nowrap; }
.fe span { color: var(--green); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 6px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { color: var(--green); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-tint); }
.nav .btn { padding: 8px 14px; border-radius: var(--r); margin-left: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 11px 18px; border-radius: var(--r); font-weight: 600; font-size: .9375rem; line-height: 1.25; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(22,36,28,.2), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Sections */
.section { padding: 128px 0; }
.section-tint { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--green); margin-bottom: 16px; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 600px; }
.narrow > * { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Hero: headline full width, lede and actions side by side, screenshot standing on the tint band */
.hero { --tint: calc((min(100vw, var(--wrap)) - 48px) * .2); padding: 96px 0 0; background: linear-gradient(var(--surface) calc(100% - var(--tint)), var(--bg) 0); border-bottom: 1px solid var(--border); }
.hero .wrap, .page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
.hero .eyebrow, .hero h1, .hero .shot, .page-head .eyebrow, .page-head h1, .page-head .toc { grid-column: 1 / -1; }
.hero .lede, .page-head .lede { margin: 0; max-width: 560px; }
.hero .actions, .page-head .actions { margin: 0; }
/* Key capabilities under the hero intro; the buttons sit level with them */
.hero .checks { grid-column: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, max-content)); gap: 0 28px; margin: 20px 0 0; }
.hero .checks li { color: var(--ink); font-weight: 500; }
.hero .shot { margin-top: 64px; margin-bottom: -1px; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.page-head { padding: 96px 0 72px; border-bottom: 1px solid var(--border); }

/* Green sweep lines behind the hero, page heads and the closing band */
.hero, .page-head, .cta { position: relative; }
.hero::before, .page-head::before, .cta::before { content: ""; position: absolute; inset: 0; background: url(../img/lines.svg) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.hero::before, .page-head::before { opacity: .28; }
.page-head::before { background-size: 100% 170%; } /* short sections: keep the lines right of the intro text */
.cta::before { opacity: .85; }
.hero .wrap, .page-head .wrap, .cta .wrap { position: relative; }

/* Screenshot frame */
.shot { border: 1px solid rgba(22,36,28,.14); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e3); overflow: hidden; }
.shot img { width: 100%; }
.shot.phone { max-width: 300px; margin: 0 auto; border-radius: 28px; }
figure { margin: 0; }

/* Essentials split: what comes from where */
.split { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-top: 56px; }
.split > div { padding: 32px; border-right: 1px solid var(--border); }
.split > div:last-child { border-right: 0; }
.split h3 { font-size: 1.125rem; }
.split .tag { display: table; margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: 0; padding: 3px 8px; border-radius: 4px; background: var(--green-tint); color: var(--green-dark); }
.split ul { margin: 20px 0 0; padding: 0; list-style: none; }
.split li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--ink-2); font-size: .9375rem; }

/* Flow: the five steps drawn as one route, like stations on the Production Board */
.flow { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.flow li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 24px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.flow li::after { content: ""; position: absolute; top: 15px; left: 32px; right: 0; height: 2px; background: var(--border-strong); }
.flow li:last-child::after { content: none; }
.flow h3 { font-size: 1.0625rem; }
.flow p { font-size: .9375rem; color: var(--muted); margin: 0; }

/* Feature rows */
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 144px; }
.row.stack { gap: 0 64px; align-items: start; }
.stack > .eyebrow, .stack > .shot { grid-column: 1 / -1; }
.stack > .shot { margin-top: 56px; }
.stack > div { max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 6px 0 6px 28px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Features page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: .875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.toc a:hover { border-color: var(--green); color: var(--green); }
.group { padding: 96px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 64px; }
.group:last-of-type { border-bottom: 0; }
.group-head { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.group h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 0; }
.items > div { border-top: 1px solid var(--border); padding-top: 16px; }
.items dt { font-weight: 600; margin-bottom: 4px; }
.items dd { margin: 0; color: var(--muted); font-size: .9375rem; }
.group .shot { margin-top: 64px; }

/* Pricing */
.price-table { width: 100%; max-width: 880px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 22px 28px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; background: var(--bg); padding-top: 14px; padding-bottom: 14px; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table .desc { width: 100%; }
.price-table .desc p { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.price { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price small { display: block; font-weight: 400; font-size: .8125rem; letter-spacing: 0; color: var(--muted); }
.price-table + p { margin-top: 16px; }

/* Contact */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; background: var(--surface); scroll-margin-top: 88px; }
.card h2 { font-size: 1.75rem; }
.card dl { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; }
.card dt { color: var(--muted); font-size: .9375rem; }
.card dd { margin: 0; font-weight: 500; }

/* Call to action band */
.cta { background: var(--ink); color: #fff; padding: 96px 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #C9D4CE; max-width: 560px; margin: 0; }
.cta .actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.cta .btn-primary { box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: #4A5A52; }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Footer */
.site-foot { padding: 48px 0; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--border); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.site-foot nav { display: flex; gap: 24px; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--green); }
.site-foot .partner { height: 28px; width: auto; margin-left: auto; }
.site-foot .legal { flex-basis: 100%; margin: 0; font-size: .8125rem; }

/* Responsive */
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .hero .wrap, .page-head .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .hero .actions, .page-head .actions, .cta .actions { margin-top: 32px; }
  .cta .actions { grid-column: auto; grid-row: auto; }
  .row, .group-head { grid-template-columns: 1fr; gap: 32px; }
  .row.stack { gap: 0; }
  .stack > .shot { margin-top: 32px; }
  .row + .row { margin-top: 96px; }
  .split { grid-template-columns: 1fr; }
  .split > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .split > div:last-child { border-bottom: 0; }
  .flow { grid-template-columns: 1fr; max-width: 560px; }
  .flow li { padding: 0 0 32px 56px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow li::after { top: 32px; bottom: 0; left: 15px; right: auto; width: 2px; height: auto; }
  .flow h3 { padding-top: 5px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-head .wrap { gap: 4px 16px; padding-top: 12px; padding-bottom: 8px; }
  .nav { margin-left: -10px; width: 100%; gap: 2px; }
  .nav a { padding: 5px 10px; }
  .nav .btn { position: absolute; top: 11px; right: 24px; padding: 6px 10px; font-size: .8125rem; }
  .hero { padding-top: 56px; --tint: calc((100vw - 48px) * .34); }
  .page-head { padding: 64px 0 48px; }
  /* Show the left part of wide screenshots at a readable size on phones. */
  .shot:not(.phone) img { width: 170%; max-width: none; }
  .shot.phone { max-width: 260px; }
  .items { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .price-table th, .price-table td { padding: 16px; }
  .site-foot .partner { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
