/*
 * ZephyrOne marketing sites — shared styles.
 * Layered on top of Sneat (core.css + theme-default.css). Sneat's free build is light-only,
 * so light/dark tokens live here and every component below reads from them.
 * Theme class (light-style / dark-style) is set on <html> by js/theme-init.js, matching the Organisation portal.
 */

:root,
html.light-style {
  --z-navy: #17375e;
  --z-teal: #2fa59b;
  --z-sky: #3b8fd9;
  --z-coral: #ff6f61;
  --z-sun: #ffb020;
  --z-violet: #7b61ff;
  --z-green: #2bb673;

  --z-bg: #f6f8fb;
  --z-bg-alt: #ffffff;
  --z-surface: #ffffff;
  --z-surface-2: #eef3f8;
  --z-text: #1d2b3a;
  --z-text-muted: #4f6275;
  --z-heading: #10263f;
  --z-border: #dbe3ec;
  --z-shadow: 0 10px 30px rgba(23, 55, 94, 0.08);
  --z-hero-from: #e8f3fb;
  --z-hero-to: #f6f8fb;
  --z-link: #1c6fb8;
  --z-primary: #1d5fa8;
  --z-primary-hover: #174d89;
  --z-primary-text: #ffffff;
  --z-wave: #ffffff;
  --z-focus: #ffb020;
}

html.dark-style {
  --z-bg: #0f1724;
  --z-bg-alt: #131e2e;
  --z-surface: #18253a;
  --z-surface-2: #1f2f47;
  --z-text: #dbe5f0;
  --z-text-muted: #a7b6c8;
  --z-heading: #f3f7fb;
  --z-border: #2a3d58;
  --z-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --z-hero-from: #13263f;
  --z-hero-to: #0f1724;
  --z-link: #7cc1ff;
  --z-primary: #4aa3f0;
  --z-primary-hover: #73b8f5;
  --z-primary-text: #0b1420;
  --z-wave: #131e2e;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--z-bg);
  color: var(--z-text);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { color: var(--z-heading); font-weight: 700; }
a { color: var(--z-link); }
a:hover { color: var(--z-link); text-decoration: underline; }
.text-muted, .z-muted { color: var(--z-text-muted) !important; }
:focus-visible { outline: 3px solid var(--z-focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 2000;
  background: var(--z-primary); color: var(--z-primary-text);
  padding: .5rem 1rem; border-radius: .375rem; transition: top .15s;
}
.skip-link:focus { top: 1rem; color: var(--z-primary-text); }

section { padding: 5rem 0; }
.section-alt { background: var(--z-bg-alt); }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--z-teal); margin-bottom: .75rem;
}
html.dark-style .section-eyebrow { color: #5fd3c7; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 1rem; }
.section-lead { font-size: 1.125rem; color: var(--z-text-muted); max-width: 46rem; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: .5rem; padding: .6rem 1.25rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-z-primary {
  background: var(--z-primary); border: 1px solid var(--z-primary); color: var(--z-primary-text);
  box-shadow: 0 4px 14px rgba(29, 95, 168, .3);
}
.btn-z-primary:hover, .btn-z-primary:focus { background: var(--z-primary-hover); border-color: var(--z-primary-hover); color: var(--z-primary-text); text-decoration: none; }
.btn-z-outline { background: transparent; border: 1.5px solid var(--z-primary); color: var(--z-primary); }
.btn-z-outline:hover, .btn-z-outline:focus { background: var(--z-primary); color: var(--z-primary-text); text-decoration: none; }
.btn-z-ghost { background: var(--z-surface); border: 1px solid var(--z-border); color: var(--z-heading); }
.btn-z-ghost:hover { background: var(--z-surface-2); color: var(--z-heading); text-decoration: none; }

/* ---------- Navbar ---------- */
.z-navbar {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--z-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--z-border);
}
.z-navbar .navbar { padding-top: .65rem; padding-bottom: .65rem; }
.z-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none !important; }
.z-brand img { width: 38px; height: 38px; }
.z-brand-name { font-weight: 800; font-size: 1.3rem; color: var(--z-heading); letter-spacing: -.01em; }
.z-brand-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: color-mix(in srgb, var(--z-teal) 16%, transparent); color: var(--z-teal);
  padding: .15rem .5rem; border-radius: 999px;
}
html.dark-style .z-brand-tag { color: #5fd3c7; }
.z-navbar .nav-link { color: var(--z-text) !important; font-weight: 500; padding: .5rem .8rem !important; border-radius: .4rem; }
.z-navbar .nav-link:hover { background: var(--z-surface-2); text-decoration: none; }
.z-navbar .navbar-toggler { border: 1px solid var(--z-border); color: var(--z-heading); padding: .35rem .6rem; }
.z-navbar .navbar-toggler .bx { font-size: 1.6rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--z-surface); border: 1px solid var(--z-border); color: var(--z-heading); cursor: pointer;
}
.theme-toggle .bx { font-size: 1.3rem; }
.theme-toggle:hover { background: var(--z-surface-2); }
html.light-style .theme-toggle .icon-light { display: none; }
html.dark-style .theme-toggle .icon-dark { display: none; }
@media (max-width: 991.98px) {
  .z-navbar .navbar-collapse { padding: 1rem 0 .5rem; }
  .z-nav-actions { flex-wrap: wrap; padding-top: .75rem; border-top: 1px solid var(--z-border); margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.z-hero {
  position: relative; overflow: hidden; padding: 4.5rem 0 7rem;
  background:
    radial-gradient(900px 400px at 85% 10%, color-mix(in srgb, var(--z-teal) 18%, transparent), transparent 70%),
    radial-gradient(700px 400px at 5% 90%, color-mix(in srgb, var(--z-sky) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--z-hero-from), var(--z-hero-to));
}
.z-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.z-hero h1 .z-accent {
  background: linear-gradient(90deg, var(--z-sky), var(--z-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.z-hero .lead { font-size: 1.2rem; color: var(--z-text-muted); max-width: 36rem; }
.z-hero-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.z-hero-points li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.z-hero-points .bx { color: var(--z-green); font-size: 1.35rem; flex-shrink: 0; margin-top: .1rem; }
.z-hero-note { font-size: .9rem; color: var(--z-text-muted); margin-top: 1rem; }
.z-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--z-wave); }
.z-waves.to-bg { color: var(--z-bg); }

/* Mock phone / app cards used as illustrations */
.z-mock {
  position: relative; background: var(--z-surface); border: 1px solid var(--z-border);
  border-radius: 1.25rem; box-shadow: var(--z-shadow); padding: 1.25rem;
}
.z-mock-phone { max-width: 360px; margin: 0 auto; border-radius: 2rem; padding: 1rem 1rem 1.25rem; border-width: 8px; border-color: var(--z-heading); }
html.dark-style .z-mock-phone { border-color: #304766; }
.z-mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.z-mock-hello { font-weight: 700; color: var(--z-heading); }
.z-mock-sub { font-size: .8rem; color: var(--z-text-muted); }
.z-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--z-sky), var(--z-teal)); flex-shrink: 0;
}
.z-tile { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem; border-radius: .85rem; background: var(--z-surface-2); margin-bottom: .65rem; }
.z-tile:last-child { margin-bottom: 0; }
.z-tile-title { font-weight: 600; font-size: .92rem; color: var(--z-heading); line-height: 1.3; }
.z-tile-meta { font-size: .8rem; color: var(--z-text-muted); line-height: 1.35; }
.z-pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; margin-top: .3rem; }
.z-pill-green { background: color-mix(in srgb, var(--z-green) 18%, transparent); color: #137a4b; }
.z-pill-sun { background: color-mix(in srgb, var(--z-sun) 22%, transparent); color: #8a5a00; }
.z-pill-sky { background: color-mix(in srgb, var(--z-sky) 18%, transparent); color: #1d5fa8; }
.z-pill-coral { background: color-mix(in srgb, var(--z-coral) 18%, transparent); color: #b83a2e; }
html.dark-style .z-pill-green { color: #6fe0a8; }
html.dark-style .z-pill-sun { color: #ffd27a; }
html.dark-style .z-pill-sky { color: #9fd0ff; }
html.dark-style .z-pill-coral { color: #ffaaa1; }
.z-float {
  position: absolute; background: var(--z-surface); border: 1px solid var(--z-border); border-radius: .85rem;
  box-shadow: var(--z-shadow); padding: .65rem .85rem; display: flex; gap: .6rem; align-items: center; font-size: .85rem; font-weight: 600; color: var(--z-heading);
}
.z-float-1 { top: 12%; left: -6%; }
.z-float-2 { bottom: 10%; right: -4%; }
@media (max-width: 1199.98px) { .z-float { display: none; } }

/* ---------- Icon badges (colourful) ---------- */
.z-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.z-icon .bx { font-size: 1.65rem; }
.z-icon-sm { width: 38px; height: 38px; border-radius: 10px; }
.z-icon-sm .bx { font-size: 1.2rem; }
.z-c-sky    { background: color-mix(in srgb, var(--z-sky) 16%, transparent);    color: #1f74c4; }
.z-c-teal   { background: color-mix(in srgb, var(--z-teal) 18%, transparent);   color: #1b7f76; }
.z-c-coral  { background: color-mix(in srgb, var(--z-coral) 16%, transparent);  color: #d2463a; }
.z-c-sun    { background: color-mix(in srgb, var(--z-sun) 20%, transparent);    color: #a76a00; }
.z-c-violet { background: color-mix(in srgb, var(--z-violet) 16%, transparent); color: #5a40db; }
.z-c-green  { background: color-mix(in srgb, var(--z-green) 16%, transparent);  color: #158a54; }
.z-c-navy   { background: color-mix(in srgb, var(--z-navy) 14%, transparent);   color: var(--z-navy); }
html.dark-style .z-c-sky    { color: #8ccaff; }
html.dark-style .z-c-teal   { color: #6fe3d6; }
html.dark-style .z-c-coral  { color: #ff9d93; }
html.dark-style .z-c-sun    { color: #ffcc66; }
html.dark-style .z-c-violet { color: #b5a6ff; }
html.dark-style .z-c-green  { color: #74e3ad; }
html.dark-style .z-c-navy   { background: rgba(124, 193, 255, .14); color: #c6dcf5; }

/* ---------- Cards ---------- */
.z-card {
  height: 100%; background: var(--z-surface); border: 1px solid var(--z-border); border-radius: 1rem;
  padding: 1.6rem; box-shadow: var(--z-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.z-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .z-card, .z-card:hover { transition: none; transform: none; } }
.z-card h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.z-card p { color: var(--z-text-muted); margin-bottom: 0; }
.z-card ul { padding-left: 1.1rem; margin: .75rem 0 0; color: var(--z-text-muted); }
.z-card ul li { margin-bottom: .25rem; }

/* Pain -> fix */
.z-swap { display: grid; gap: 1rem; }
.z-swap-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
  background: var(--z-surface); border: 1px solid var(--z-border); border-radius: 1rem; padding: 1rem 1.25rem;
}
.z-swap-before { color: var(--z-text-muted); display: flex; gap: .6rem; align-items: center; }
.z-swap-before .bx { color: var(--z-coral); font-size: 1.3rem; }
.z-swap-after { font-weight: 600; color: var(--z-heading); display: flex; gap: .6rem; align-items: center; }
.z-swap-after .bx { color: var(--z-green); font-size: 1.3rem; }
.z-swap-arrow { color: var(--z-teal); font-size: 1.5rem; }
@media (max-width: 767.98px) {
  .z-swap-row { grid-template-columns: 1fr; gap: .4rem; }
  .z-swap-arrow { transform: rotate(90deg); justify-self: start; }
}

/* Spotlights */
.z-spot + .z-spot { margin-top: 5rem; }
.z-spot h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 1rem; }
.z-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.z-checks li { display: flex; gap: .65rem; margin-bottom: .7rem; }
.z-checks .bx { color: var(--z-teal); font-size: 1.3rem; flex-shrink: 0; margin-top: .15rem; }
html.dark-style .z-checks .bx { color: #5fd3c7; }

.z-rota { width: 100%; border-collapse: separate; border-spacing: 0 .45rem; font-size: .88rem; }
.z-rota th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--z-text-muted); font-weight: 700; padding: 0 .6rem; }
.z-rota td { background: var(--z-surface-2); padding: .6rem; color: var(--z-heading); }
.z-rota td:first-child { border-radius: .6rem 0 0 .6rem; font-weight: 600; }
.z-rota td:last-child { border-radius: 0 .6rem .6rem 0; text-align: right; }
.z-mock-title { font-weight: 700; color: var(--z-heading); display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }

.z-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; text-align: center; font-size: .78rem; }
.z-cal span { padding: .45rem 0; border-radius: .5rem; background: var(--z-surface-2); color: var(--z-text); }
.z-cal .h { background: transparent; font-weight: 700; color: var(--z-text-muted); }
.z-cal .busy { background: color-mix(in srgb, var(--z-coral) 22%, transparent); color: var(--z-heading); }
.z-cal .mine { background: var(--z-primary); color: var(--z-primary-text); font-weight: 700; }

.z-progress { height: 8px; border-radius: 999px; background: var(--z-surface-2); overflow: hidden; margin-top: .35rem; }
.z-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--z-sky), var(--z-teal)); }

/* People / roles */
.z-role { display: flex; gap: 1rem; align-items: flex-start; }
.z-role h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.z-role p { margin: 0; color: var(--z-text-muted); font-size: .95rem; }

/* Steps */
.z-step { position: relative; text-align: center; padding: 0 1rem; }
.z-step-num {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--z-sky), var(--z-teal)); box-shadow: 0 8px 20px rgba(47, 165, 155, .35);
}
.z-step h3 { font-size: 1.2rem; }
.z-step p { color: var(--z-text-muted); }

/* Highlight band */
.z-highlight {
  border-radius: 1.25rem; padding: 2rem; color: #fff;
  background: linear-gradient(120deg, #17375e 0%, #1d5fa8 55%, #2fa59b 100%);
}
.z-highlight h2, .z-highlight h3 { color: #fff; }
.z-highlight p { color: rgba(255, 255, 255, .9); margin: 0; }
.z-highlight .z-icon { background: rgba(255, 255, 255, .16); color: #fff; }

/* FAQ (native details/summary — no JS needed) */
.z-faq details { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: .85rem; margin-bottom: .75rem; }
.z-faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--z-heading);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.z-faq summary::-webkit-details-marker { display: none; }
.z-faq summary .bx { font-size: 1.4rem; color: var(--z-teal); transition: transform .2s; flex-shrink: 0; }
.z-faq details[open] summary .bx { transform: rotate(45deg); }
.z-faq details > div { padding: 0 1.25rem 1.15rem; color: var(--z-text-muted); }

/* CTA */
.z-cta {
  border-radius: 1.5rem; padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #17375e, #1d5fa8 60%, #2fa59b);
  color: #fff;
}
.z-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.z-cta p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 38rem; margin: 0 auto 2rem; }
.z-cta .btn-light { background: #fff; color: #17375e; border: 0; }
.z-cta .btn-light:hover { background: #e8f1fb; color: #17375e; text-decoration: none; }
.z-cta .btn-outline-light { border: 1.5px solid #fff; color: #fff; }
.z-cta .btn-outline-light:hover { background: #fff; color: #17375e; text-decoration: none; }

/* Footer */
.z-footer { background: var(--z-bg-alt); border-top: 1px solid var(--z-border); padding: 3rem 0 2rem; font-size: .95rem; }
.z-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--z-text-muted); margin-bottom: .9rem; }
.z-footer ul { list-style: none; padding: 0; margin: 0; }
.z-footer li { margin-bottom: .45rem; }
.z-footer a { color: var(--z-text); }
.z-footer-bottom { border-top: 1px solid var(--z-border); margin-top: 2rem; padding-top: 1.25rem; color: var(--z-text-muted); font-size: .85rem; }

/* Reveal-on-scroll (progressive enhancement; content is visible without JS) */
.js .z-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .z-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .z-reveal { opacity: 1; transform: none; transition: none; } }

/* Width helpers (used instead of inline style attributes, which the CSP blocks) */
.z-w-60 { max-width: 60rem; }
.z-w-52 { max-width: 52rem; }
.z-progress > span.z-w-83 { width: 83%; }
.z-full { min-height: 100vh; }

/* Phone-width gutters: 16px each side, never a horizontal scroll */
@media (max-width: 575.98px) {
  .container-xxl, .container { padding-left: 16px; padding-right: 16px; }
  section { padding: 3.5rem 0; }
  .z-hero { padding: 2.5rem 0 5rem; }
  .z-mock-phone { border-width: 6px; }
  .z-highlight, .z-cta { padding: 1.5rem; }
}
main, footer { overflow-x: clip; }
