/* ============================================================
   WEBSTREAX — static subpages (services / blog / faq / about)
   Lightweight: no WebGL, no libraries. Brand-matched to home.
   ============================================================ */
:root {
  --bg: #02010a;
  --ink: #eaf2ff;
  --dim: #bac6e2;
  --cyan: #5eeaff;
  --violet: #8a6cff;
  --magenta: #ff5edb;
  --card: rgba(10, 12, 34, 0.55);
  --line: rgba(138, 108, 255, 0.25);
  --font-d: 'Unbounded', sans-serif;
  --font-b: 'Space Grotesk', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* stable gutter: the mobile-menu scroll lock otherwise removes the scrollbar and
   shifts the sticky header sideways on scrollbar-reserving browsers */
html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* cheap CSS starfield */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1px 1px at 22px 34px, rgba(234,242,255,0.6), transparent),
    radial-gradient(1px 1px at 130px 90px, rgba(138,108,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 210px 160px, rgba(94,234,255,0.5), transparent),
    radial-gradient(1px 1px at 80px 220px, rgba(234,242,255,0.4), transparent),
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(138,108,255,0.14), transparent),
    radial-gradient(ellipse 70% 45% at 10% 108%, rgba(94,234,255,0.08), transparent);
  background-size: 260px 260px, 300px 300px, 340px 340px, 280px 280px, 100% 100%, 100% 100%;
}
::selection { background: var(--violet); color: #fff; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.p-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(2, 1, 10, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(138, 108, 255, 0.12);
}
.p-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.p-logo:hover { text-decoration: none; }
.p-word {
  font-family: var(--font-d); font-weight: 700; font-size: 14px; letter-spacing: 0.22em;
  background: linear-gradient(90deg, var(--ink), #b9c8ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p-links { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; }
.p-links a {
  color: var(--dim); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; min-height: 44px; /* was an 18px tap target */
}
.p-links a:hover { color: var(--ink); text-decoration: none; }
.p-links a.active { color: var(--cyan); }
.btn {
  display: inline-block; font-weight: 600; letter-spacing: 0.05em;
  border-radius: 999px; text-decoration: none !important; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  padding: 13px 28px; color: #04030f !important; font-size: 15px;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 60%, var(--magenta));
  box-shadow: 0 0 20px rgba(94, 234, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(94, 234, 255, 0.5); }
.btn-small { padding: 9px 20px; font-size: 13px; color: var(--ink) !important; border: 1px solid var(--line); background: rgba(10,12,34,0.4); }
.btn-small:hover { border-color: var(--cyan); }

/* ---------- page hero ---------- */
.p-hero { max-width: 880px; margin: 0 auto; padding: clamp(48px, 8vh, 90px) 24px 10px; text-align: center; }
.p-eyebrow {
  color: var(--cyan); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 18px;
}
.p-hero h1 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 52px); line-height: 1.15; margin-bottom: 20px;
}
.grad {
  background: linear-gradient(95deg, var(--cyan), var(--violet) 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  /* guard: an inherited text-shadow would paint over the clipped gradient and grey it
     out (backgrounds paint before text shadows). Use drop-shadow if depth is wanted. */
  text-shadow: none;
}
.p-lede { color: var(--dim); font-size: clamp(16.5px, 1.5vw, 19.5px); line-height: 1.75; font-weight: 500; }
.p-date { margin-top: 14px; color: rgba(186,198,226,0.6); font-size: 13.5px; letter-spacing: 0.06em; }

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: 880px; margin: 0 auto; padding: 22px 24px 0; font-size: 13px; color: rgba(186,198,226,0.65); }
.crumbs a { color: rgba(186,198,226,0.85); }

/* ---------- article body ---------- */
.p-article { max-width: 780px; margin: 0 auto; padding: 34px 24px 30px; }
.p-article h2 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.3;
  margin: 46px 0 16px;
}
.p-article h2:first-child { margin-top: 10px; }
.p-article h3 { font-size: 18.5px; font-weight: 700; margin: 30px 0 10px; }
.p-article p { color: var(--dim); font-size: 17px; line-height: 1.8; margin-bottom: 16px; font-weight: 450; }
.p-article strong { color: var(--ink); }
.p-article ul, .p-article ol { color: var(--dim); font-size: 17px; line-height: 1.8; margin: 0 0 16px 22px; }
.p-article li { margin-bottom: 8px; }
.p-article table {
  width: 100%; border-collapse: collapse; margin: 22px 0 26px;
  font-size: 15.5px; line-height: 1.55;
}
.p-article th {
  text-align: left; padding: 12px 14px; color: var(--ink);
  background: rgba(138, 108, 255, 0.12); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
}
.p-article td { padding: 12px 14px; color: var(--dim); border: 1px solid rgba(138,108,255,0.15); }
.p-article tr:nth-child(even) td { background: rgba(10, 12, 34, 0.4); }
.stat-callout {
  border-left: 3px solid var(--cyan); background: var(--card);
  padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 22px 0;
  color: var(--ink); font-size: 16.5px; line-height: 1.7;
}
.stat-callout a { font-size: 14px; }

/* ---------- FAQ (semantic, crawlable, zero JS) ---------- */
.faq-group-title {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px);
  margin: 44px 0 14px;
}
details.faq {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); margin-bottom: 12px;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-weight: 700; font-size: 16.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; color: var(--cyan); font-size: 22px; font-weight: 400; flex-shrink: 0;
  transition: transform 0.25s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 20px 18px; color: var(--dim); font-size: 16px; line-height: 1.75; }

/* ---------- card grids (hubs) ---------- */
.card-grid {
  max-width: 1020px; margin: 30px auto 10px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px;
}
.g-card {
  display: block; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); padding: 26px 26px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important;
}
.g-card:hover { transform: translateY(-4px); border-color: rgba(94,234,255,0.5); box-shadow: 0 14px 40px rgba(94,234,255,0.08); }
.g-card .gc-num { font-family: var(--font-d); font-size: 11.5px; font-weight: 700; color: var(--violet); letter-spacing: 0.28em; }
.g-card h3 { font-family: var(--font-d); font-size: 19px; font-weight: 700; color: var(--ink); margin: 12px 0 10px; line-height: 1.3; }
.g-card p { color: var(--dim); font-size: 15px; line-height: 1.65; }
.g-card .gc-more { display: inline-block; margin-top: 14px; color: var(--cyan); font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; }
.g-card .gc-meta { display: block; margin-top: 12px; color: rgba(186,198,226,0.6); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band {
  max-width: 880px; margin: 50px 24px 20px; padding: 40px 30px;
  text-align: center; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(140deg, rgba(94,234,255,0.07), rgba(138,108,255,0.09) 55%, rgba(255,94,219,0.06));
}
.cta-band h2 { font-family: var(--font-d); font-weight: 700; font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.cta-band p { color: var(--dim); font-size: 16.5px; line-height: 1.7; margin-bottom: 24px; }

/* ---------- footer ---------- */
.p-footer {
  margin-top: 70px; padding: 44px clamp(20px, 4vw, 56px) 34px;
  border-top: 1px solid rgba(138,108,255,0.15);
  background: rgba(2, 1, 10, 0.6);
}
.f-grid {
  max-width: 1120px; margin: 0 auto;
  /* auto-fit, not a fixed column count: the footer gained a Registered Office
     column and a hardcoded 4 would have wrapped the 5th into a ragged row */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px;
}
.f-addr {
  font-style: normal; color: var(--dim);
  font-size: 14px; line-height: 1.65;
}
.f-grid h3.f-col {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.f-grid a { display: block; color: var(--dim); font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; }
.f-grid a:hover { color: var(--ink); text-decoration: none; }
.f-blurb { color: var(--dim); font-size: 14.5px; line-height: 1.7; max-width: 300px; margin-top: 14px; }
.f-fine {
  max-width: 1020px; margin: 30px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(138,108,255,0.1);
  color: rgba(186,198,226,0.72); font-size: 13px;   /* was 0.55 — failed WCAG AA (4.04:1) */
}

/* keyboard focus (a11y) */
.btn:focus-visible, .p-links a:focus-visible, .p-logo:focus-visible, .g-card:focus-visible, .p-article a:focus-visible, .faq summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}

/* mobile nav */
#nav-burger {
  display: none;
  background: rgba(10, 12, 34, 0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 13px 10px;
  flex-direction: column;
  justify-content: space-between;
}
#nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
#nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-burger.open span:nth-child(2) { opacity: 0; }
#nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#mobile-menu {
  position: fixed; inset: 0; z-index: 49; /* full-height overlay, not a partial panel */
  padding: 92px 28px 30px;
  background: rgba(4, 5, 18, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
#mobile-menu[hidden] { display: none; }
/* :not(.btn) — an ID selector otherwise beats .btn-primary and paints the CTA's dark
   label near-white on its bright gradient, making the only mobile CTA invisible */
#mobile-menu a:not(.btn) {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-d); font-weight: 700;
  font-size: 20px; letter-spacing: 0.04em; padding: 13px 4px;
}
#mobile-menu .btn { text-align: center; margin-top: 14px; font-family: var(--font-b); font-size: 14px; }
@media (max-height: 480px) {   /* landscape phones: keep the CTA above the fold */
  #mobile-menu { padding-top: 76px; padding-bottom: 20px; }
  #mobile-menu a:not(.btn) { font-size: 17px; padding: 9px 4px; }
}
#nav-burger:focus-visible, #mobile-menu a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

@media (min-width: 928px) { .cta-band { margin-left: auto; margin-right: auto; } }
.f-grid > * { min-width: 0; }   /* without this the columns refuse to shrink and clip */
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 900px) { /* 900 matches the home breakpoint */
  .f-grid { grid-template-columns: 1fr 1fr; }
  .p-links { display: none; }
  .p-nav .btn-small { display: none; }
  #nav-burger { display: flex; }
  .p-article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* scroll wide tables instead of clipping */
}
@media (max-width: 380px) {
  .card-grid { grid-template-columns: 1fr; padding: 0 16px; } /* prevent 290px-min clipping on tiny screens */
}

/* ---------- contact form ----------
   Deliberately backend-free: it composes a structured mailto, so there is no third-party
   form service, no data leaving the browser, and nothing to break or expire. The email
   link under the button is the no-JS path. */
.wx-form { max-width: 780px; margin: 6px auto 30px; }
.wx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .wx-row { grid-template-columns: 1fr; } }
.wx-form label {
  display: block; margin-bottom: 16px;
  color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
}
.wx-opt { color: rgba(186,198,226,0.6); font-weight: 400; }
.wx-form input, .wx-form select, .wx-form textarea {
  display: block; width: 100%; margin-top: 7px;
  padding: 12px 14px; min-height: 44px;
  background: rgba(10,12,34,0.55); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-b); font-size: 15.5px; font-weight: 450;
}
.wx-form textarea { resize: vertical; line-height: 1.6; }
.wx-form input:focus, .wx-form select:focus, .wx-form textarea:focus {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-color: var(--cyan);
}
.wx-form select { appearance: none; cursor: pointer; }
.wx-form button { margin-top: 6px; border: 0; min-height: 44px; }  /* was 43px */
.wx-note { margin-top: 14px; color: var(--dim); font-size: 14.5px; }
/* Shown after submit: the mailto handoff silently does nothing on a device with no mail
   app configured, so the composed message is always rendered here to copy instead. */
.wx-sent { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px 20px; margin: 8px 0 26px; }
.wx-sent[hidden] { display: none; }
.wx-sent p { color: var(--dim); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.wx-sent textarea { width: 100%; margin-bottom: 12px; padding: 12px 14px; background: rgba(2,1,10,0.5); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-b); font-size: 14.5px; line-height: 1.6; resize: vertical; }
.wx-err { display: block; margin-top: 6px; color: #ff9db8; font-size: 13.5px; font-weight: 600; }
.wx-form [aria-invalid="true"] { border-color: #ff9db8; }
