/* Northern Networks styles. Colours live in the tokens at the top, with a
   dark set further down. */

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d9e1e8;
  --navy: #0b2540;
  --navy-ink: #f1f5f9;
  --navy-muted: #c3d0dc;
  --cta: #0369a1;
  --cta-hover: #075985;
  --cta-ink: #ffffff;
  --moss: #2f6b47;
  --moss-soft: #e3efe7;
  --warn-soft: #fdf3e1;
  --focus: #f59e0b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --max: 72rem;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1520;
    --surface: #102030;
    --surface-2: #142a3d;
    --ink: #e8eef4;
    --muted: #a9b8c6;
    --line: #23394d;
    --navy: #071826;
    --cta: #38a3dc;
    --cta-hover: #6bbde6;
    --cta-ink: #04131f;
    --moss: #7cc49a;
    --moss-soft: #15302a;
    --warn-soft: #2b2416;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--cta);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--cta-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 50;
}
.skip:focus {
  left: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 2rem;
  }
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
}
.site-nav.open {
  display: block;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cta);
}
.site-nav .btn {
  display: flex;
  margin-top: 0.5rem;
  color: var(--cta-ink);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .site-nav a {
    padding: 0.5rem 0.8rem;
  }
  .site-nav .btn {
    margin: 0 0 0 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover {
  background: var(--cta-hover);
  color: var(--cta-ink);
}
.btn.ghost {
  background: transparent;
  color: var(--navy-ink);
  border-color: rgba(241, 245, 249, 0.55);
}
.btn.ghost:hover {
  background: rgba(241, 245, 249, 0.12);
  color: var(--navy-ink);
}
.btn.light {
  background: #ffffff;
  color: #0b2540;
}
.btn.light:hover {
  background: #e2ecf4;
  color: #0b2540;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--navy-ink);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}
.hero p {
  color: var(--navy-muted);
  font-size: 1.15rem;
  max-width: 38rem;
}
.hero .eyebrow {
  color: #9fd3f2;
}
.hero-art {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 46%;
  pointer-events: none;
  opacity: 0.9;
}
.hero-art .sats {
  display: none;
}
@media (min-width: 900px) {
  .hero-art .sats {
    display: inline;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero.small .wrap {
  padding-top: 3rem;
  padding-bottom: 3.25rem;
}
.hero.small h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
}
@media (min-width: 768px) {
  .hero .wrap {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section.alt {
  background: var(--surface-2);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.section-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--moss-soft);
  color: var(--moss);
  margin-bottom: 1rem;
}
.card .icon svg {
  width: 24px;
  height: 24px;
}
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.card:hover {
  border-color: var(--cta);
  color: inherit;
}
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--cta);
  font-weight: 600;
}
.card .more svg {
  width: 18px;
  height: 18px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.ticks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--moss-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--head);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.steps p {
  color: var(--muted);
  margin: 0;
}

.callout {
  background: var(--navy);
  color: var(--navy-ink);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.25rem 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.callout p {
  color: var(--navy-muted);
  margin: 0;
}
@media (min-width: 800px) {
  .callout {
    grid-template-columns: 1fr auto;
    padding: 2.75rem;
  }
}

.note {
  background: var(--warn-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-size: 0.97rem;
}

/* Form */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
}
.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.93rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s;
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cta);
}
.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  cursor: pointer;
}
.choice input {
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  accent-color: var(--cta);
}
.trap {
  position: absolute;
  left: -5000px;
}
.form-error {
  color: #b42318;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .form-error {
    color: #ff8a80;
  }
}
.form-error:empty {
  display: none;
}

/* Footer */
.site-foot {
  background: var(--navy);
  color: var(--navy-muted);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.site-foot a {
  color: var(--navy-ink);
}
.site-foot .cols {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .site-foot .cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-foot li {
  margin-bottom: 0.4rem;
}
.site-foot .brand {
  color: var(--navy-ink);
  margin-bottom: 0.75rem;
}
.site-foot .legal {
  border-top: 1px solid rgba(195, 208, 220, 0.25);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
