/* Xploro Technologies — one stylesheet for the whole site.
   Colours live here and nowhere else. They come from the Xploro logo (brand/xploro-logo-source.webp):
   navy, teal and blue, with the teal-to-blue gradient used as an accent. */

:root {
  /* Brand */
  --navy: #031C3C;         /* logo navy: text on light, dark bands */
  --navy-deep: #021530;    /* footer, top of page heroes */
  --teal: #04D8C2;         /* logo teal: buttons and highlights on dark */
  --teal-hover: #3FE6D3;
  --teal-ink: #007A6E;     /* teal dark enough for small text on white */
  --blue: #0369AF;         /* logo blue: links on white */
  --deep-blue: #003791;
  --gradient: linear-gradient(90deg, var(--teal) 0%, var(--blue) 60%, var(--deep-blue) 100%);

  /* On dark (navy) backgrounds */
  --card: #0A2A52;
  --border: #1F4878;
  --well: #0E3060;
  --on-dark: #EAF3FB;
  --on-dark-2: #A9BCD3;

  /* On light backgrounds */
  --paper: #FFFFFF;
  --paper-2: #F2F6FA;
  --surface: #FFFFFF;
  --ink: var(--navy);
  --ink-2: #4B5E78;
  --rule: #DDE5EF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16.5px; } }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Header (white, so the logo sits on its own background) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); position: relative; }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding-top: 4px; }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 8px 13px; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 8px; }
/* Phones: logo on top, menu on its own row underneath */
@media (max-width: 520px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; gap: 6px 0; padding-top: 16px; padding-bottom: 6px; }
  .brand img { height: 36px; }
  .nav { flex-basis: 100%; justify-content: flex-start; gap: 0; margin-left: -10px; }
  .nav a { padding: 7px 10px; font-size: .95rem; }
}

/* ---------- Hero (home) and page heroes ---------- */
.hero, .page-hero { position: relative; color: var(--on-dark); background: linear-gradient(180deg, var(--navy-deep) 0%, #062650 60%, #0A3466 100%); }
.hero-text { padding-top: 64px; position: relative; z-index: 1; }
.page-hero .hero-text { padding-top: 48px; }
.hero h1 { max-width: 15ch; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--on-dark-2); max-width: 40rem; }
.hero-art { height: clamp(170px, 25vw, 330px); margin-top: 8px; }
.page-hero .hero-art { height: clamp(110px, 14vw, 180px); margin-top: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.3; }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-hover); color: var(--navy); }
.btn-ghost { color: var(--on-dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); color: var(--on-dark); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (max-width: 600px) { .section { padding: 56px 0; } }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.contact-card .kicker { color: var(--teal); }
.muted { color: var(--ink-2); }

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }

/* Light cards */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(3, 28, 60, .04); }
.card h3 { font-size: 1.15rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.ruled::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--gradient); margin-bottom: 18px; }

/* Round icon on a navy well */
.icon { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg, .well svg.line { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- App cards (navy) ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app-card { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(90deg, var(--card) 0%, #06203F 100%); color: var(--on-dark); text-decoration: none; }
a.app-card:hover { border-color: var(--teal); color: var(--on-dark); }
.well { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--well); box-shadow: inset 0 0 0 2px var(--teal); color: var(--on-dark); display: grid; place-items: center; }
.well svg.fill { width: 30px; height: 30px; fill: currentColor; }
.app-card h3 { margin: 2px 0 2px; color: var(--on-dark); font-size: 1.3rem; }
.app-card .tag { color: var(--on-dark-2); margin: 0; }
.app-card .more { color: var(--teal); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; gap: 28px; } }
.principle { padding-top: 18px; border-top: 3px solid transparent; border-image: var(--gradient) 1; }
.principle h3 { font-size: 1.15rem; }
.principle p { color: var(--ink-2); margin: 0; }

/* ---------- Call to action band ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, #08305E 100%); color: var(--on-dark); border-radius: 22px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 8px; }
.cta p { color: var(--on-dark-2); margin: 0; max-width: 36rem; }
@media (max-width: 600px) { .cta { padding: 32px 24px; } }

/* ---------- Values list (icon beside text) ---------- */
.values { display: grid; gap: 28px; }
.value { display: flex; gap: 18px; align-items: flex-start; }
.value .icon { flex: none; margin: 0; }
.value h3 { font-size: 1.15rem; margin-bottom: .3em; }
.value p { margin: 0; }

/* ---------- Tick list ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.25em + 4px); width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Facts list (company details) ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }
.company-logo { width: 220px; margin: 0 0 24px; }

/* ---------- Contact card ---------- */
.contact-card { background: linear-gradient(140deg, var(--navy) 0%, #08305E 100%); color: var(--on-dark); border-radius: 22px; padding: 40px; }
.contact-card p { color: var(--on-dark-2); }
.contact-card .email { display: inline-block; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--teal); margin: 4px 0 16px; word-break: break-word; }
.contact-card .email:hover { color: var(--teal-hover); }
@media (max-width: 600px) { .contact-card { padding: 28px 22px; } }

/* ---------- Long-form text (privacy policy) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; scroll-margin-top: 16px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose .updated { color: var(--ink-2); }
.toc { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 26px; margin: 8px 0; }
.toc h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: .25em 0; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.callout { background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 10px; padding: 18px 22px; margin: 1.2em 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-2); padding: 60px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer .about { margin-top: 18px; max-width: 26rem; }
.site-footer h2 { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid #12335C; margin-top: 44px; padding-top: 22px; font-size: .85rem; }
