:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --card: #ffffff;
  --ink: #0c3550;
  --ink-2: #4d6573;
  --line: #d7e2eb;
  --accent: #1a9adf;
  --accent-2: #0b7ec0;
  --accent-soft: #e6f5fd;
  --good: #128a5e;
  --warn: #b45309;
  --shadow: 0 18px 50px rgba(12, 53, 80, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --max: 1120px;
}

[data-theme="dark"] {
  --bg: #071018;
  --bg-soft: #0c1822;
  --card: #101c27;
  --ink: #e8f1f7;
  --ink-2: #9bb0bf;
  --line: #1d3342;
  --accent: #3eb6f2;
  --accent-2: #1a9adf;
  --accent-soft: #123044;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.logo {
  display: flex; align-items: center;
  flex: 0 0 auto;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px;
}
.nav a, .nav-drop > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  color: var(--ink-2);
  font-size: 14.5px; font-weight: 500;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
}
.nav a:hover, .nav-drop > summary:hover, .nav a.active {
  color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.nav-drop { position: relative; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.nav-panel a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--ink);
}
.nav-panel a small { display: block; color: var(--ink-2); font-weight: 450; font-size: 12.5px; }

.header-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background: #062033;
  color: #e8f4fb;
}
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { color: #7ad0f5; }
.hero h1 { color: #fff; }
.hero .lede { color: #c3d6e3; }
.hero .trust-row { color: #c3d6e3; }
.hero .trust-row svg { color: #7ad0f5; }
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.hero .btn-ghost:hover { border-color: #fff; }
.users-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.users-row label { font-weight: 600; }
.users-row input {
  width: 88px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.licence-total {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}
.addon-price {
  color: var(--accent);
  font-weight: 700;
  margin: 6px 0 8px;
}
.addon-price span { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.kicker {
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 16ch;
}
.lede {
  margin-top: 22px;
  max-width: 58ch;
  font-size: 18px;
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 18px 26px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 14px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--accent); }

.hero-visual { margin-top: 56px; }
.mock {
  background: linear-gradient(180deg, #12324a 0%, #0b2233 100%);
  color: #d7e8f3;
  border-radius: 22px 22px 0 0;
  border: 1px solid #1b425c;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1d4662;
  font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.mock-body { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; padding: 18px; }
.panel {
  background: #0e2a3d;
  border: 1px solid #1c4863;
  border-radius: 14px;
  padding: 14px;
}
.panel h3 { font-size: 13px; font-weight: 600; color: #9ec9e0; margin-bottom: 12px; }
.ticket, .stat {
  background: #12364d;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.ticket b { display: block; color: #fff; font-weight: 600; }
.muted { color: #8fb3c7; font-size: 12px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.ok { background: #163f2c; color: #7dE0b0; }
.info { background: #163a58; color: #7ec8f0; }
.warnp { background: #3d2c14; color: #f0c27a; }

/* Sections */
section { padding: 44px 0; }
.section-head { max-width: 640px; margin-bottom: 22px; }
h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 700;
}
.sub {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.cards-3, .cards-4, .cards-2 {
  display: grid; gap: 16px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 10px 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.price {
  margin-top: 16px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.price span { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.card a.more {
  display: inline-flex; margin-top: 16px;
  color: var(--accent-2); font-weight: 600; font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.stat-card b {
  display: block;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}
.stat-card span { color: var(--ink-2); font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.checklist { list-style: none; margin-top: 18px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  color: var(--ink-2);
}
.tick {
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid; place-items: center;
  margin-top: 2px;
}

table.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.price-table th {
  background: var(--bg-soft);
  font-weight: 600;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.yes { color: var(--good); font-weight: 700; }
.no { color: #b42318; }
.addon { color: var(--accent-2); font-weight: 600; }

.note { margin-top: 12px; color: var(--ink-2); font-size: 13.5px; }

.cta-band {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg));
}
.cta-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.foot-brand .logo { display: inline-flex; margin-bottom: 14px; }
.foot-addr { margin: 0; line-height: 1.55; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: -0.03em;
}

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--ink-2);
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
footer h4 { color: var(--ink); margin-bottom: 12px; font-size: 14px; }
footer a { display: block; padding: 4px 0; }
footer a:hover { color: var(--ink); }
.site-ver { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.legal { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: #062033;
  color: #e8f4fb;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .kicker { color: #7ad0f5; }
.page-hero h1 { max-width: 18ch; font-size: clamp(36px, 5vw, 56px); color: #fff; }
.page-hero .lede { color: #c3d6e3; }
.page-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.page-hero .btn-ghost:hover { border-color: #fff; }
.licence-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.licence-foot .users-row { margin-top: 0; }
.licence-foot .users-row input { height: 40px; }
.licence-foot strong {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 18px 20px 40px;
  z-index: 40;
  overflow: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions .btn-ghost { display: none; }
  .cards-3, .cards-4, .cards-2, .stat-grid, .split, .team, .foot-grid, .mock-body {
    grid-template-columns: 1fr;
  }
  .cta-box { flex-direction: column; align-items: flex-start; }
  h1 { max-width: 12ch; }
  .hero { padding-top: 40px; }
}

@media (max-width: 640px) {
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 28px)); }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .price-table { font-size: 13px; }
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}
.field textarea { height: auto; padding: 12px; min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: var(--accent);
}

/* Licence slider */
.licence-slider {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}
.licence-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 8px 0 4px;
}
.licence-scale {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.licence-scale span { cursor: pointer; }
.licence-scale span:hover { color: var(--ink); }
.licence-now { margin-top: 18px; }
.licence-now h3 { margin: 0 0 6px; }
.feat-list { list-style: none; margin-top: 12px; }
.feat-list li { padding: 5px 0; color: var(--ink-2); }

/* Postcode checker */
.checker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.checker input {
  flex: 1;
  min-width: 180px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-transform: uppercase;
}
.checker-result { margin-top: 18px; }
[hidden] { display: none !important; }
.gate {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
}
.gate h1 { max-width: 16ch; margin: 0 auto; }
.offer-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: #062033;
  color: #e8f4fb;
}
.offer-hero .wrap { position: relative; z-index: 1; }
.offer-hero h1 { max-width: 22ch; color: #fff; }
.offer-hero .kicker { color: #7ad0f5; }
.offer-hero .lede { color: #c3d6e3; }
.offer-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.offer-hero .btn-ghost:hover { border-color: #fff; }
.invite-lead {
  font-weight: 700;
  color: var(--ink);
  font-size: 22px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.page-hero .invite-lead { color: #fff; }
.invite-note {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.cookie-bar {
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--card);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.cookie-bar p { margin: 0; flex: 1; min-width: 220px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
