/* ===========================================================
   CentralOS — marketing site design system
   Premium SaaS look (Stripe/Linear vibe), NZ roofing network
   =========================================================== */
:root {
  --navy: #14213D;
  --navy-2: #0E1830;
  --blue: #1B7BD6;
  --blue-d: #1565B5;
  --blue-l: #E8F2FC;
  --green: #16A34A;
  --green-l: #E7F6ED;
  --amber: #F59E0B;
  --purple: #7C3AED;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --line: #E6EBF2;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow: 0 16px 40px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, .18);
  --r: 16px;
  --r-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container-x { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.text-blue { color: var(--blue) !important; }
.text-green { color: var(--green) !important; }
.text-navy { color: var(--navy) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #fff; }
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 800; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); }
.center { text-align: center; }
.mw-680 { max-width: 680px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-x {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px;
  padding: 13px 24px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s; white-space: nowrap;
}
.btn-x:hover { transform: translateY(-2px); }
.btn-primary-x { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(27, 123, 214, .32); }
.btn-primary-x:hover { background: var(--blue-d); color: #fff; }
.btn-ghost-x { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost-x:hover { border-color: var(--blue); color: var(--blue); }
.btn-white-x { background: #fff; color: var(--navy); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-lg-x { padding: 15px 30px; font-size: 16.5px; }

/* ---- Navbar ---- */
.nav-wrap { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.02em; }
.brand .mark { height: 38px; width: auto; }
.brand-img { height: 40px; width: auto; display: block; }
/* On the navy footer, render the dark logo in white so it blends in. */
.footer .brand-img { filter: brightness(0) invert(1); }
.brand b { color: var(--navy); } .brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: 15px; opacity: .85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }
.mobile-only { display: none; }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-ghost-x { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .nav-links.open .mobile-only { display: block; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: 70px 0 60px; background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero .sub { font-size: 19px; color: var(--muted); max-width: 460px; }
.tagline { font-weight: 800; font-size: 20px; color: var(--navy); margin: 22px 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 440px; }
.hero-photo { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background:
   linear-gradient(150deg, rgba(20,33,61,.05), rgba(27,123,214,.12)),
   url('https://images.unsplash.com/photo-1632759145351-1d592919f522?auto=format&fit=crop&w=1100&q=70') center/cover,
   linear-gradient(150deg, #cfe0f2, #eef4fb); box-shadow: var(--shadow); }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px; font-size: 13px; }
.float-card .fc-title { font-weight: 800; color: var(--ink); font-size: 13.5px; margin-bottom: 10px; }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.fc-row .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.fc-key { display: flex; align-items: center; color: var(--text); }
.fc-val { font-weight: 800; color: var(--ink); }
.pill-stock { background: var(--green-l); color: var(--green); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.pill-lead { background: #FEF3C7; color: #92400E; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.fc-job { top: 6px; left: -10px; width: 210px; }
.fc-order { bottom: 80px; left: 30px; width: 230px; }
.fc-supplier { top: 120px; right: -16px; width: 240px; }
.fc-cta { margin-top: 10px; background: var(--green); color: #fff; text-align: center; border-radius: 8px; padding: 7px; font-weight: 700; font-size: 12px; }
.fc-cta.blue { background: var(--blue); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin-top: 10px; }
  .fc-supplier { right: 0; } .fc-job { left: 0; }
}

/* ---- Logo strip ---- */
.logo-strip { background: var(--navy); color: #fff; padding: 30px 0; }
.logo-strip .label { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.logo-row .logo-name { font-weight: 800; font-size: 20px; color: #fff; opacity: .82; letter-spacing: .02em; }

/* ---- Process steps ---- */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 6px; flex-wrap: wrap; }
.step { text-align: center; width: 170px; }
.hexi { width: 64px; height: 64px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.step-arrow { color: #CBD5E1; font-size: 22px; margin-top: 22px; }
@media (max-width: 820px) { .step-arrow { display: none; } .step { width: 44%; margin-bottom: 18px; } }

/* ---- Audience cards (photo bg + device mockup) ---- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; box-shadow: var(--shadow); isolation: isolate; }
.aud-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: var(--img); background-size: cover; background-position: center; }
.aud-card::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.aud-blue::after { background: linear-gradient(150deg, rgba(27,123,214,.93), rgba(19,78,140,.88)); }
.aud-green::after { background: linear-gradient(150deg, rgba(22,163,74,.93), rgba(11,107,51,.88)); }
.aud-purple::after { background: linear-gradient(150deg, rgba(124,58,237,.92), rgba(76,29,149,.88)); }
.aud-content { position: relative; padding: 22px; color: #fff; display: flex; gap: 12px; height: 100%; min-height: 340px; align-items: center; }
.aud-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.aud-text h3 { color: #fff; font-size: 20px; }
.aud-text p { color: rgba(255,255,255,.92); font-size: 13px; }
.aud-text .btn-x { margin-top: auto; align-self: flex-start; }
.aud-device { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }

/* device — phone */
.phone { width: 124px; background: #0F172A; border-radius: 18px; padding: 5px; box-shadow: var(--shadow-lg); }
.phone .scr { background: #F3F6FA; border-radius: 14px; overflow: hidden; font-size: 8.5px; color: #1e293b; }
.ph-top { background: #fff; padding: 8px 9px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 10px; color: var(--ink); }
.ph-body { padding: 8px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 7px; padding: 6px 7px; margin-bottom: 5px; }
.ph-row .k { display: flex; align-items: center; gap: 5px; }
.ph-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ph-label { font-weight: 800; font-size: 8px; letter-spacing: .06em; color: var(--muted); margin: 9px 0 5px; }
.ph-task { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 7px; padding: 5px 7px; margin-bottom: 4px; }
.ph-photos { display: flex; gap: 4px; }
.ph-photos div { flex: 1; height: 28px; border-radius: 5px; background: #cbd5e1; background-image: var(--p); background-size: cover; background-position: center; }

/* device — supplier dashboard */
.dash { width: 150px; background: #fff; border-radius: 14px; padding: 11px; box-shadow: var(--shadow-lg); color: var(--ink); font-size: 8.5px; }
.dash .t { font-size: 10.5px; font-weight: 800; }
.dash-grid { display: flex; gap: 8px; margin: 9px 0; }
.dash-grid > div { flex: 1; }
.dash-lbl { color: var(--muted); font-size: 8px; font-weight: 700; }
.dash-num { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.spark { width: 100%; height: 32px; margin-top: 2px; }

@media (max-width: 860px) { .aud-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .aud-device { display: none; } }

/* ---- Feature columns ---- */
.feat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.feat-col { text-align: center; }
.feat-col .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-l); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px; }
.feat-col h4 { font-size: 16px; margin-bottom: 6px; }
.feat-col p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Generic cards / grids ---- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); height: 100%; }
.card-x .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Flow story (contractors) ---- */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.flow-box { border-radius: var(--r); padding: 24px; }
.flow-old { background: #FEF2F2; border: 1px solid #FECACA; }
.flow-new { background: var(--green-l); border: 1px solid #BBF7D0; }
.flow h4 { display: flex; align-items: center; gap: 8px; }
.flow ol { margin: 12px 0 0; padding-left: 0; list-style: none; }
.flow li { padding: 9px 12px; background: #fff; border-radius: 9px; margin-bottom: 8px; font-weight: 600; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.flow-old li i { color: #DC2626; } .flow-new li i { color: var(--green); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } }

/* ---- Network diagram ---- */
.network { position: relative; max-width: 760px; margin: 0 auto; min-height: 440px; }
.node { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); text-align: center; }
.node i { display: block; font-size: 22px; color: var(--blue); margin-bottom: 6px; }
.node-core { background: var(--navy); color: #fff; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 150px; }
.node-core i { color: #fff; }
.node-top { top: 0; left: 50%; transform: translateX(-50%); }
.node-left { top: 50%; left: 0; transform: translateY(-50%); }
.node-right { top: 50%; right: 0; transform: translateY(-50%); }
.node-bl { bottom: 36px; left: 14%; }
.node-br { bottom: 36px; right: 14%; }
.net-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.net-svg line { stroke: #CBD5E1; stroke-width: 2; stroke-dasharray: 6 6; }

/* ---- Marketplace cards ---- */
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.mk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mk-card h3 { font-size: 20px; }
.mk-card ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.mk-card li { padding: 6px 0; color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 9px; }
.mk-card li i { color: var(--green); }

/* ---- AI section ---- */
.ai-sec { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 26px; padding: 56px; }
.ai-sec h2 { color: #fff; }
.ai-chat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; }
.ai-msg { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.ai-msg i { color: var(--blue); margin-top: 2px; }
@media (max-width: 760px) { .ai-sec { padding: 34px 22px; } }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.feat { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.price-card.feat::before { content: 'Most popular'; position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.price-card h3 { font-size: 20px; }
.price-amt { font-size: 38px; font-weight: 800; color: var(--ink); margin: 8px 0 2px; }
.price-amt small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; flex: 1; }
.price-card li { padding: 7px 0; font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.price-card li i { color: var(--green); margin-top: 4px; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* ---- Stats / live network ---- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.stat .lbl { font-size: 13.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ---- Big CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--blue), #2563EB); border-radius: 20px; padding: 30px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; box-shadow: var(--shadow); }
.cta-band h3 { color: #fff; margin: 0; font-size: 24px; }
.cta-band p { color: rgba(255,255,255,.92); margin: 4px 0 0; }
@media (max-width: 760px) { .cta-band { flex-direction: column; text-align: center; } }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,123,214,.15); }

/* ---- Footer ---- */
.footer { background: var(--navy); color: #fff; padding: 64px 0 28px; }
.footer .brand b, .footer .brand span { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.78); font-size: 14.5px; }
.footer ul a:hover { color: #fff; }
.foot-soc { display: flex; gap: 12px; margin-top: 12px; }
.foot-soc a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; }
.foot-soc a:hover { background: var(--blue); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.6); font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, #fff, #f4f8fc); padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); }
.page-hero .lead { max-width: 620px; }
