/* UK Media — group site. No build step: Google Fonts is the only external
   request besides the page itself, so there is nothing to break if a CDN is
   slow other than the fallback stack kicking in. */

:root {
  --brand:       #10243F;
  --brand-2:     #1B3A61;
  /* Fixed, not remapped for dark mode — --brand is a foreground colour that
     lightens for legibility, so a button using it as a background with
     white text goes pale-on-white and washes out. A CTA needs one navy that
     holds in both themes. */
  --cta:         #10243F;
  --cta-hover:   #16335A;
  --brand-soft:  #E7ECF3;
  --accent:      #B4530E;
  --accent-soft: #FBEDE3;
  --ink:         #12151B;
  --ink-2:       #4B5262;
  --ink-3:       #7A8194;
  --paper:       #FFFFFF;
  --paper-2:     #F6F7FA;
  --paper-3:     #EEF0F4;
  --rule:        #E1E4EA;
  --shadow:      0 1px 2px rgba(16, 36, 63, 0.04), 0 8px 24px -12px rgba(16, 36, 63, 0.18);

  --font-display: "Sora", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --measure:   64ch;
  --container: 1120px;
  --gutter:    clamp(1.25rem, 0.7rem + 2vw, 2.5rem);
  --radius:    14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9FBEE8; --brand-2: #B9D3F1; --brand-soft: #182533;
    --accent: #E28E52; --accent-soft: #2B1D13;
    --ink: #EDEFF3; --ink-2: #B3BAC8; --ink-3: #838AA0;
    --paper: #0B0E14; --paper-2: #12161F; --paper-3: #1A2029;
    --rule: #262C38;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  font-family: var(--font-body); line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(55% 45% at 88% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(60% 50% at 6% 12%, var(--brand-soft), transparent 55%),
    radial-gradient(45% 40% at 40% 92%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
.wrap { max-width: var(--container); margin: 0 auto; }

/* Frosted panel — every section but the footer sits on one of these, so the
   background gradient shows through at the edges rather than under a flat
   opaque block. */
.panel {
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid color-mix(in srgb, #fff 35%, var(--rule));
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 3rem var(--gutter);
}

/* .reveal is added by assets/reveal.js only — never in markup — so a page
   with JS off, or that fails to load the script, never gets stuck hidden. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; width: auto; border-radius: 6px; }
.nav { display: flex; gap: 1.75rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color .15s; }
.nav a:hover { color: var(--brand); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.5rem; border-radius: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  border: 1px solid transparent; line-height: 1.2;
}
.button--primary { background: var(--cta); color: #fff; box-shadow: var(--shadow); }
.button--primary:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 4px 14px -4px rgba(16, 36, 63, 0.45); }
.button--ghost { border-color: var(--rule); color: var(--ink); background: var(--paper); }
.button--ghost:hover { border-color: var(--brand); color: var(--brand); }

.button--ghosted {
  background: var(--paper-3); color: var(--ink-3); box-shadow: none;
  cursor: not-allowed; user-select: none;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero__inner {
  padding: 4.5rem var(--gutter) 3.5rem;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__copy { animation: hero-in .7s ease both; }
  .hero__visual { animation: hero-in .7s ease .1s both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__visual { display: flex; justify-content: center; }
.network-diagram svg { width: 100%; height: auto; max-width: 400px; }
.network-diagram__hub-ring { fill: none; stroke: var(--rule); stroke-width: 1.5; opacity: .6; }
.network-diagram__hub { fill: var(--cta); }
.network-diagram__hub-text { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.network-diagram__line { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.network-diagram__pill { fill: color-mix(in srgb, var(--paper) 75%, transparent); stroke: var(--rule); stroke-width: 1; }
.network-diagram__pill--more { fill: none; stroke-dasharray: 4 4; }
.network-diagram__label { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.network-diagram__label--muted { fill: var(--ink-3); }
.network-diagram__dot--dev { fill: var(--cta); }
.network-diagram__dot--soon { fill: var(--ink-3); }
.network-diagram__dot--live { fill: var(--accent); }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 320px; margin: 0 auto; }
}
.hero h1 {
  font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem); font-weight: 800;
  margin: 0 0 1.1rem; max-width: 18ch; color: var(--ink);
}
.hero__lede { max-width: var(--measure); color: var(--ink-2); font-size: 1.15rem; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }
.trust-row {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem;
}
.trust-row li {
  font-size: 0.85rem; font-weight: 600; color: var(--ink-2); position: relative; padding-left: 1.3rem;
}
.trust-row li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 4rem 0; }
.hero { padding: 0; }
section h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); font-weight: 800; margin: 0 0 0.75rem; color: var(--ink); }

/* ── Title cards ────────────────────────────────────────────────────── */
.titles__grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.title-card {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow); transition: transform .15s;
}
.title-card:hover { transform: translateY(-2px); }

/* Abstract "coming soon" preview — skeleton blocks bled to the card edges,
   never meant to read as a real screenshot. */
.portal-mock {
  position: relative; overflow: hidden;
  margin: -1.75rem -1.75rem 1.1rem; border-radius: var(--radius) var(--radius) 0 0;
}
.portal-mock svg { display: block; width: 100%; height: auto; }
.portal-mock__frame { fill: var(--paper); stroke: var(--rule); }
.portal-mock__bar { fill: var(--paper-3); }
.portal-mock__dot { fill: var(--ink-3); opacity: .45; }
.portal-mock__url { fill: var(--paper); opacity: .7; }
.portal-mock__side { fill: var(--paper-2); }
.portal-mock__side-line { fill: var(--rule); }
.portal-mock__title { fill: var(--rule); }
.portal-mock__block { fill: var(--paper-3); stroke: var(--rule); stroke-width: 1; }
.portal-mock__ribbon {
  position: absolute; top: 20px; right: -38px; width: 160px;
  transform: rotate(35deg); text-align: center;
  background: var(--cta); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 0.4rem 0; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.title-card h3 { margin: 0.2rem 0 0; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.title-card p { margin: 0; color: var(--ink-2); }

/* Brand marks sit on a fixed light plate — a logo drawn for a white
   background does not survive being inverted for dark mode. */
.title-card--brand { background: #fff; border-color: #fff; }
.title-card--brand p:not(.status-pill) { color: #4B5262; }
.title-card__logo { margin: 0.35rem 0 1.1rem; }
.title-card__logo img { display: block; height: 34px; width: auto; }
.title-card__link { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--brand); text-decoration: none; font-family: var(--font-display); font-size: 0.9rem; }
.title-card__link:hover { text-decoration: underline; }

.title-card--more {
  grid-column: 1 / -1;
  background: transparent; border: 1.5px dashed var(--rule); box-shadow: none;
}
.title-card--more .eyebrow { margin: 0; }
.title-card--more p:not(.eyebrow) { max-width: 52ch; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px; margin: 0;
}
.status-pill::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; }
.status-pill--soon { background: var(--paper-3); color: var(--ink-3); }
.status-pill--soon::before { background: var(--ink-3); }
.status-pill--live { background: var(--accent-soft); color: var(--accent); }
.status-pill--live::before { background: var(--accent); }
/* Fixed, not theme-remapped — this pill only ever sits on the brand card's
   fixed white plate, so it needs colours that hold there, not the pale
   dark-mode values --brand/--brand-soft swap to. */
.status-pill--dev { background: #E7ECF3; color: #10243F; }
.status-pill--dev::before { background: #10243F; }

/* ── How it works ───────────────────────────────────────────────────── */
.how__steps {
  list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.how__steps li { position: relative; padding-left: 0; }
.how__num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  color: var(--accent); margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.how__steps h3 { margin: 0 0 0.35rem; font-size: 1.1rem; font-weight: 700; }
.how__steps p { margin: 0; color: var(--ink-2); }

/* ── Pricing ────────────────────────────────────────────────────────── */
.pricing__intro { color: var(--ink-2); max-width: var(--measure); }
.pricing__grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.pricing-card {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow);
}
.pricing-card__eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.pricing-card h3 { margin: 0.1rem 0 0; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.pricing-card > p { margin: 0; color: var(--ink-2); }
.pricing-card__points { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.pricing-card__points li {
  font-size: 0.9rem; color: var(--ink-2); padding-left: 1.3rem; position: relative;
}
.pricing-card__points li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.pricing-card--featured {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
  background: linear-gradient(180deg, var(--accent-soft), var(--paper-2) 60%);
}
.pricing-card--featured .pricing-card__eyebrow { color: var(--accent); }
.pricing-card__cta { margin-top: 0.9rem; align-self: flex-start; }
.pricing-card__secure { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--ink-3); }
.pricing__note { margin-top: 2rem; color: var(--ink-3); font-size: 0.88rem; max-width: var(--measure); }

/* ── Prose (legal pages) ────────────────────────────────────────────── */
.prose { max-width: var(--measure); padding: 4rem var(--gutter); }
.prose h1 { font-size: 2.1rem; font-weight: 800; margin: 0 0 1.75rem; color: var(--ink); }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 2.25rem 0 0.6rem; color: var(--ink); }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 0.3rem; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--brand); font-weight: 600; }
.prose ul { padding-left: 1.2rem; }

.notice { padding: 5rem var(--gutter); max-width: var(--measure); }
.notice h1 { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.notice a { color: var(--brand); font-weight: 600; text-decoration: none; }
.notice a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; background: var(--paper-2); }
.site-footer__grid {
  padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.site-footer__about { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28ch; }
.site-footer__about p { color: var(--ink-3); font-size: 0.88rem; margin: 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__col h4 { margin: 0 0 0.2rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.site-footer__col a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.site-footer__col a:hover { color: var(--brand); }
.site-footer__bottom {
  border-top: 1px solid var(--rule); padding: 1.5rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
}
.site-footer__bottom p { margin: 0; color: var(--ink-3); font-size: 0.82rem; }

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.82rem; }
}
