/* /next8 homepage in the /next4 look. Standalone and responsive; components are in next8-components.css. */
*, *::before, *::after { box-sizing:border-box; }
html.x8 { scroll-behavior:smooth; scroll-padding-top:84px; }
body.x8-page { margin:0; background:#fff; color:var(--x-text); font:400 17px/1.6 var(--x-body); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.x8-page img { max-width:100%; }
.x8-page a { color:inherit; }
.x8-page h1, .x8-page h2, .x8-page h3 { margin:0; font-family:var(--x-head); }
.x-wrap { width:min(1280px, 100% - 48px); margin-inline:auto; }
.x-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.x-skip { position:absolute; left:16px; top:-60px; z-index:100; padding:10px 16px; border-radius:10px; background:#fff; color:var(--x-ink); font-weight:600; }
.x-skip:focus { top:12px; }
.x8-page :focus-visible { outline:3px solid var(--x-mint); outline-offset:3px; }
.x-eyebrow { margin:0 0 16px; color:var(--x-green); font:600 13px/1.3 var(--x-body); letter-spacing:.18em; text-transform:uppercase; }

/* Navigation: shared bar styles are in next8-components.css (.x8-topbar). */
.x-nav { position:fixed; inset:0 0 auto; z-index:50; }
.x-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 26px; }

/* Hero: ends just below the buttons and proof line (Elle: "half a line below the buttons"). */
.x-hero { position:relative; isolation:isolate; overflow:hidden; padding:118px 0 34px; color:#fff; background:var(--x-ink); }
.x-hero-film { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; opacity:.45; }
.x-hero-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#041b18 0%,#041b18eb 34%,#041b1899 62%,#041b1873 100%), radial-gradient(55% 60% at 74% 48%,#8fe0c62e,transparent 70%), linear-gradient(180deg,transparent 72%,#041b18 100%); }
.x-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.04fr); gap:36px; align-items:center; }
.x-hero .x-eyebrow { color:var(--x-mint); }
.x-hero h1 { min-height:2.1em; font-weight:700; font-size:clamp(40px,4.8vw,68px); line-height:1.04; letter-spacing:-.045em; }
.x-hero h1 span { background:linear-gradient(92deg,var(--x-mint) 10%,#e7fff6 90%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.x-lead { max-width:560px; min-height:5em; margin:22px 0 0; color:#cfe3dc; font-size:clamp(17px,1.3vw,19px); line-height:1.6; }
.x-trades { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 26px; padding:0; border:0; }
.x-trades legend { width:100%; margin-bottom:12px; padding:0; color:var(--x-mint); font:600 12px/1 var(--x-body); letter-spacing:.18em; text-transform:uppercase; }
.x-trades input { position:absolute; opacity:0; pointer-events:none; }
.x-trades span { display:inline-block; padding:10px 16px; border:1px solid #ffffff3d; border-radius:99px; background:#ffffff0d; color:#e8f4ef; font:500 15px/1.2 var(--x-body); cursor:pointer; transition:background .2s, color .2s, border-color .2s; backdrop-filter:blur(6px); }
.x-trades label:hover span { border-color:#ffffffa6; }
.x-trades input:checked + span { background:var(--x-mint); border-color:var(--x-mint); color:var(--x-ink); font-weight:600; }
.x-trades input:focus-visible + span { outline:3px solid #fff; outline-offset:2px; }
.x8-hero-link { color:#e8f4ef !important; font:600 16px/1.3 var(--x-body); text-decoration:underline; text-decoration-color:#ffffff66; text-underline-offset:5px; }
.x8-hero-link:hover { text-decoration-color:var(--x-mint); }
.x8-proof { display:inline-flex; align-items:center; gap:10px; margin-top:18px; color:#cfe3dc !important; font-size:14.5px; text-decoration:none; }
.x8-proof b { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:#8fe0c626; color:var(--x-mint); font-size:12px; }
.x8-proof:hover span { text-decoration:underline; }
.x8-proof i { font-style:normal; color:var(--x-mint); }

/* Product stack: a laptop, a browser window and a phone, layered flat so the screens stay pixel-sharp
   (a 3D tilt resamples them and softens the text on high-density screens). */
.x-stage { position:relative; container-type:inline-size; aspect-ratio:1.1; }
.x-stage::before { content:''; position:absolute; inset:12% 6% 8%; border-radius:50%; background:radial-gradient(closest-side,#8fe0c640,transparent); filter:blur(30px); }
.x-stack { position:absolute; inset:0; }
.x-stack .x8-shot { position:absolute; }
.x-stack figcaption { display:none; }
.x-stack .x-stack-main { top:2%; right:3%; z-index:1; width:78cqw; }
.x-stack .x-stack-main .x8-screen { aspect-ratio:16 / 10; overflow:hidden; background:#fff; }
.x-stack .x-stack-main img { width:100%; }
.x-stack .x-stack-second { left:0; bottom:9%; z-index:2; width:50cqw; }
.x-stack .x-stack-second .x8-screen { max-height:28cqw; overflow:hidden; background:#fff; }
.x-stack .x-stack-second img { width:100%; }
.x-stack .x8-phone { right:2%; bottom:0; z-index:3; width:21cqw; }
.x-stack .x8-shot { animation:x-deal .9s cubic-bezier(.2,.8,.2,1) both; }
.x-stack .x-stack-second { animation-delay:.08s; }
.x-stack .x8-phone { animation-delay:.16s; }
.x-stage-note { position:absolute; left:0; bottom:-10px; max-width:66%; margin:0; color:#9fbdb4; font-size:12px; line-height:1.45; }
[data-role-only] { display:none; }
html[data-role="owner"] [data-role-only="owner"], html[data-role="operations"] [data-role-only="operations"], html[data-role="compliance"] [data-role-only="compliance"],
html[data-role="finance"] [data-role-only="finance"], html[data-role="it"] [data-role-only="it"], html[data-role="estates"] [data-role-only="estates"] { display:block; }
.x8-spec { display:none; place-items:center; }
html[data-role="it"] .x8-spec { display:grid; }
.x8-spec-card { width:min(92cqw, 480px); padding:28px 30px; border:1px solid #ffffff24; border-radius:24px; background:linear-gradient(160deg,#0e3a35 0%,#072723 100%); box-shadow:0 40px 80px -36px #000d; }
.x8-spec-badges { display:flex; gap:8px; margin:0 0 14px; }
.x8-spec-badges span, .x8-spec-tags span { padding:5px 11px; border-radius:99px; background:#8fe0c626; color:var(--x-mint); font:600 12.5px/1.2 var(--x-body); }
.x8-spec-card h2 { color:#fff; font-size:23px; line-height:1.2; letter-spacing:-.02em; }
.x8-spec-card ul { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; margin:16px 0 0; padding:0; list-style:none; color:#d6e9e3; font-size:14.5px; }
.x8-spec-card li::before { content:'✓'; margin-right:8px; color:var(--x-mint); font-weight:700; }
.x8-spec-tags { display:flex; flex-wrap:wrap; gap:6px; margin:16px 0 0; }
.x8-spec-tags span { background:#ffffff12; color:#e6f2ee; }
.x8-spec-card a { display:inline-block; margin-top:16px; color:var(--x-mint); font-weight:600; font-size:15px; }

/* Customers and certifications */
.x8-trust { background:#fff; border-bottom:1px solid var(--x-line); }
.x-logos { position:relative; overflow:hidden; padding:20px 0; }
.x-logos::before, .x-logos::after { content:''; position:absolute; top:0; bottom:0; z-index:1; width:12%; pointer-events:none; }
.x-logos::before { left:0; background:linear-gradient(90deg,#fff,#fff0); }
.x-logos::after { right:0; background:linear-gradient(270deg,#fff,#fff0); }
.x-logos-track { display:flex; align-items:center; gap:64px; width:max-content; animation:x-marquee 52s linear infinite; }
.x-logos img { width:auto; max-width:170px; object-fit:contain; filter:grayscale(1); opacity:.72; transition:filter .3s, opacity .3s; }
.x-logos img:hover { filter:none; opacity:1; }
.x-logos:hover .x-logos-track, .x-logos:focus-within .x-logos-track, .x-logos.is-paused .x-logos-track { animation-play-state:paused; }
.x8-marquee-toggle { position:absolute; right:12px; bottom:8px; z-index:2; padding:5px 10px; border:1px solid var(--x-line); border-radius:99px; background:#fff; color:var(--x-muted); font:600 11.5px/1 var(--x-body); cursor:pointer; opacity:0; transition:opacity .2s; }
.x-logos:hover .x8-marquee-toggle, .x8-marquee-toggle:focus-visible, .x-logos.is-paused .x8-marquee-toggle { opacity:1; }
.x8-badges { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 28px; padding:6px 0 24px; }
.x8-badges ul { display:flex; flex-wrap:wrap; gap:12px 34px; margin:0; padding:0; list-style:none; }
.x8-badges li { display:flex; align-items:center; gap:11px; color:var(--x-muted); font-size:14px; line-height:1.3; }
.x8-badges li :is(span, a) { display:grid; color:inherit; text-decoration:none; }
.x8-badges li b { color:var(--x-text); font-size:15px; }
.x8-badges li small { font-size:13px; }
.x8-badges li a:hover b { color:var(--x-green); text-decoration:underline; }
.x8-badge-capterra img { display:block; width:auto; height:36px; }
.x8-badges svg { flex:none; width:28px; height:28px; padding:5px; border-radius:50%; background:var(--x-paper); color:var(--x-green); }
.x8-badges > a { color:var(--x-green); font:600 15px/1.3 var(--x-body); text-decoration:none; }
.x8-badges > a:hover { text-decoration:underline; }

/* Section rhythm */
.x8-flow, .x8-savings, .x8-results, .x8-consultation, .x8-sector-band { padding:72px 0; }
.x-heading { max-width:860px; margin:0 0 38px; }
.x-heading h2 { color:var(--x-text); font-weight:700; font-size:clamp(32px,3.6vw,52px); line-height:1.05; letter-spacing:-.038em; }
.x-heading h2 span { color:var(--x-green); }
.x-heading p:not(.x-eyebrow) { margin:16px 0 0; max-width:680px; color:var(--x-muted); font-size:18px; }
.x8-centred { margin-inline:auto; text-align:center; }

/* How it works */
.x8-flow { background:var(--x-paper); }
.x8-flow .x-heading h2 span { display:block; }
.x8-steps { position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:auto auto auto; column-gap:16px; margin:0; padding:0; list-style:none; counter-reset:step; }
.x8-steps::before { content:''; position:absolute; top:34px; left:10%; right:10%; height:2px; background:repeating-linear-gradient(90deg,#9fc4b8 0 8px,transparent 8px 16px); }
.x8-steps li { position:relative; display:grid; grid-row:span 3; grid-template-rows:subgrid; justify-items:center; align-items:start; row-gap:8px; padding:0 6px; text-align:center; }
.x8-step-icon { display:grid; place-items:center; width:68px; height:68px; border:2px solid var(--x-green); border-radius:50%; background:#fff; color:var(--x-green); box-shadow:0 0 0 8px var(--x-paper); }
.x8-step-icon svg { width:30px; height:30px; }
.x8-steps b { margin-top:6px; font:600 18px/1.25 var(--x-head); letter-spacing:-.01em; }
.x8-steps p { margin:0; color:var(--x-muted); font-size:15px; line-height:1.5; }
.x8-flow-foot { margin:40px auto 0; max-width:820px; color:var(--x-muted); font-size:16px; text-align:center; }
.x8-flow-foot a, .x8-check-link a { color:var(--x-green); font-weight:600; text-decoration:none; }
.x8-flow-foot a:hover, .x8-check-link a:hover { text-decoration:underline; }

/* One-line Collabit AI band */
.x8-ai { padding:22px 0; background:var(--x-ink); color:#cfe3dc; }
.x8-ai-row { display:flex; align-items:center; justify-content:space-between; gap:10px 28px; }
.x8-ai p { margin:0; font-size:17px; }
.x8-ai b { color:#fff; }
.x8-ai a { flex:none; color:var(--x-mint); font-weight:600; text-decoration:none; }
.x8-ai a:hover { text-decoration:underline; }

/* Savings */
.x8-savings .x-heading { margin-bottom:30px; }
.x8-check-link { margin:26px 0 0; color:var(--x-muted); font-size:16px; }

/* Switching */
.x8-switch { padding:72px 0; background:#fff; }
.x8-switch-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center; }
.x8-switch h2 { color:var(--x-text); font-weight:700; font-size:clamp(32px,3.6vw,52px); line-height:1.05; letter-spacing:-.038em; }
.x8-switch h2 span { display:block; color:var(--x-green); }
.x8-switch-lead { margin:18px 0 0; max-width:560px; color:var(--x-muted); font-size:18px; }
.x8-switch-steps { display:grid; gap:8px; margin:20px 0 24px; padding:0; list-style:none; counter-reset:s; }
.x8-switch-steps li { counter-increment:s; position:relative; padding:9px 16px 9px 56px; border:1px solid var(--x-line); border-radius:14px; color:var(--x-muted); font-size:15px; line-height:1.4; }
.x8-switch-steps li::before { content:counter(s); position:absolute; left:16px; top:50%; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--x-ink); color:var(--x-mint); font:700 13px/1 var(--x-head); transform:translateY(-50%); }
.x8-switch-steps b { display:block; color:var(--x-text); font-size:16px; }
.x8-switch-quote { margin:20px 0 0; padding:0 0 0 16px; border-left:3px solid var(--x-mint); }
.x8-switch-quote p { margin:0; color:var(--x-text); font:500 17px/1.5 var(--x-body); }
.x8-switch-quote footer { margin-top:6px; color:var(--x-muted); font-size:14px; }
.x8-switch-visual svg { display:block; width:100%; height:auto; }

/* Results */
.x8-results { background:linear-gradient(135deg,#e6f6f0 0%,#f6fbf9 60%); }

/* Consultation */
.x8-consultation { padding-top:0; }
.x8-results + .x8-consultation, .x8-savings + .x8-consultation { padding-top:72px; }

/* Sector buttons */
.x8-sector-band { padding-top:12px; }
.x8-heading-row { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 30px; max-width:none; margin-bottom:26px; }
.x8-heading-row h2 { font-size:clamp(28px,2.6vw,38px); }
.x8-heading-row p { margin:0 !important; font-size:16px !important; }
.x8-results .x8-heading-row { align-items:flex-end; margin-bottom:34px; }
.x8-results .x8-heading-row h2 { font-size:clamp(32px,3.6vw,52px); }
.x8-results .x8-results-link { color:var(--x-green); font:600 16px/1.3 var(--x-body); text-decoration:none; }
.x8-results-link:hover { text-decoration:underline; }

/* Viewer */
.x-viewer { width:min(1200px, 96vw); max-height:92vh; padding:20px; border:0; border-radius:20px; background:#fff; box-shadow:0 40px 120px #000a; }
.x-viewer::backdrop { background:#041b18d9; backdrop-filter:blur(4px); }
.x-viewer img { display:block; width:100%; max-height:calc(92vh - 110px); object-fit:contain; }
.x-viewer p { margin:12px 0 0; color:var(--x-muted); font-size:14px; }
.x-viewer button { position:absolute; top:8px; right:12px; width:40px; height:40px; border:0; border-radius:50%; background:var(--x-paper); font-size:26px; line-height:1; cursor:pointer; }

/* Plugins drawn on this page: the cookie banner and chat keep their own styles. */
.x8-page .wpcf7 form .wpcf7-response-output { border-width:1.5px; }

@keyframes x-deal { from { opacity:0; translate:0 40px; } to { opacity:1; translate:0 0; } }
@keyframes x-marquee { to { transform:translateX(-50%); } }

@media (max-width:1060px) {
    .x-hero-grid { grid-template-columns:1fr; gap:30px; }
    .x8-switch-grid { grid-template-columns:1fr; gap:32px; }
    .x-hero h1, .x-lead { min-height:0; }
    .x-stage { width:min(100%, 640px); margin-inline:auto; }
    .x8-steps { grid-template-columns:1fr; gap:0; max-width:560px; margin-inline:auto; }
    .x8-steps::before { top:34px; bottom:34px; left:33px; right:auto; width:2px; height:auto; background:repeating-linear-gradient(180deg,#9fc4b8 0 8px,transparent 8px 16px); }
    .x8-steps { grid-template-rows:none; }
    .x8-steps li { grid-row:auto; grid-template-rows:none; grid-template-columns:68px 1fr; justify-items:start; column-gap:18px; row-gap:2px; padding:0 0 22px; text-align:left; }
    .x8-step-icon { grid-row:span 2; }
    .x8-steps b { margin-top:12px; }
    .x8-steps p { grid-column:2; }
}
@media (max-width:720px) {
    .x-wrap { width:calc(100% - 32px); }
    .x-hero { padding:100px 0 26px; }
    .x-trades span { padding:9px 13px; font-size:14px; }
    .x-stage { aspect-ratio:1.05; }
    .x-stack .x-stack-main { width:84cqw; right:0; }
    .x-stack .x-stack-second { width:56cqw; }
    .x-stack .x8-phone { width:24cqw; }
    .x8-tab:not(.is-active), .x8-newtab, .x8-arrows { display:none; }
    .x-stack .x-stack-second { left:3%; bottom:12%; }
    .x-stage { margin-bottom:44px; }
    .x-stage-note { bottom:-46px; max-width:none; }
    html[data-role="it"] .x-stage { aspect-ratio:auto; margin-bottom:34px; }
    html[data-role="it"] .x8-spec { position:relative; inset:auto; transform:none; }
    .x8-spec-card { width:100%; padding:22px; transform:none; }
    .x8-spec-card ul { grid-template-columns:1fr; }
    html[data-role="it"] .x-stage-note { display:none; }
    .x8-ai-row { flex-wrap:wrap; }
    .x8-flow, .x8-savings, .x8-results, .x8-sector-band, .x8-switch { padding:60px 0; }
    .x8-switch-grid { grid-template-columns:1fr; gap:28px; }
    .x8-results + .x8-consultation, .x8-savings + .x8-consultation { padding-top:60px; }
    .x8-consultation { padding-bottom:60px; }
    .x8-sector-band { padding-top:0; }
    .x8-badges { padding-bottom:18px; }
    .x8-badges li { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
    html.x8 { scroll-behavior:auto; }
    .x-stack .x8-shot, .x-logos-track { animation:none !important; }
    .x-logos-track { flex-wrap:wrap; justify-content:center; gap:28px 56px; width:auto; padding:0 24px; }
    .x-logos-track img[aria-hidden="true"] { display:none; }
}
