/* Neovan Networks — site styles */
:root {
  color-scheme: light;
  --ground: #f4f5f6;
  --surface: #ffffff;
  --ink: #22262b;
  --body: #4a5058;
  --muted: #6b7178;
  --line: #dcdfe3;
  --brand: #c41e3a;
  --logo-ink: #000000;
  --accent: #c41e3a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe8eb;
  --ok: #0f8a5f;
  --ok-soft: #e2f4ec;
  --focus: #c41e3a;
  --radius-s: 6px;
  --radius-l: 14px;
  --wrap: 72rem;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #131518;
    --surface: #1c1f23;
    --ink: #eef0f2;
    --body: #b8bdc4;
    --muted: #8d939b;
    --line: #2c3036;
    --brand: #c41e3a;
    --logo-ink: #ffffff;
    --accent: #f0566c;
    --accent-ink: #131518;
    --accent-soft: #3d1a21;
    --ok: #4cc99a;
    --ok-soft: #14352b;
    --focus: #f0566c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--ground); color: var(--body); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { text-wrap: balance; color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; max-width: 68ch; }
strong { color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand { flex: none; }
.brand .logo { height: 48px; width: auto; }
@media (max-width: 640px) { .brand .logo { height: 40px; } }
.site-footer .brand .logo { height: 44px; }

.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-list { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; position: relative; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font: inherit; font-size: 0.98rem; font-weight: 500; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-trigger:hover { background: var(--accent-soft); }
.nav-link[aria-current="page"], .nav-trigger.is-current { color: var(--accent); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform 0.15s; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% + 0.4rem); left: -0.5rem; width: 21rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0.5rem; box-shadow: 0 18px 40px -18px rgb(20 22 26 / 0.3); display: none; }
.dropdown.is-open { display: block; }
.dropdown a { display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.dropdown a small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 0.1rem; }
.dropdown a:hover { background: var(--accent-soft); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 0.35rem 0.5rem; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.75rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.45rem 0.8rem; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.72rem 1.2rem; border-radius: var(--radius-s); font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-small { padding: 0.5rem 0.85rem; font-size: 0.93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34rem; }
.hero h1 { max-width: 14ch; }

/* The delivery receipt: the site's one signature element */
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 60px -35px rgb(20 22 26 / 0.35); }
.receipt-file { display: flex; gap: 0.9rem; align-items: center; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.receipt-file svg { width: 40px; height: 48px; flex: none; }
.receipt-file b { display: block; color: var(--ink); font-size: 1.02rem; }
.receipt-file span { color: var(--muted); font-size: 0.9rem; }
.receipt-to { font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 0.25rem; }
.receipt-to b { color: var(--ink); font-weight: 600; }
.trail { list-style: none; margin: 0.9rem 0 0; padding: 0; position: relative; }
.trail::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.trail li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 0.85rem; align-items: center; padding: 0.55rem 0; margin: 0; max-width: none; }
.trail .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; z-index: 1; color: #fff; }
.trail .dot svg { width: 12px; height: 12px; opacity: 0; }
.trail .what { color: var(--ink); font-weight: 500; font-size: 0.97rem; line-height: 1.35; }
.trail .what small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.trail time { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.trail li.done .dot { background: var(--ok); border-color: var(--ok); }
.trail li.done .dot svg { opacity: 1; }
.receipt-foot { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; color: var(--muted); }
.receipt-foot .delivered { color: var(--ok); font-weight: 600; }
.js .receipt-foot .delivered { opacity: 0; }
.js .receipt.is-complete .receipt-foot .delivered { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .trail .dot { transition: background 0.35s ease, border-color 0.35s ease; }
  .trail .dot svg { transition: opacity 0.25s ease 0.1s; }
  .trail .what, .trail time, .receipt-foot .delivered { transition: opacity 0.35s ease; }
}
.js .trail li.pending .what, .js .trail li.pending time { opacity: 0.4; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.1rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band + .section, .section.band { border-top: 0; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.three h3 { margin-bottom: 0.4rem; }
.three p { font-size: 1rem; }
.icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 1rem; }

.problems { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.problems li { margin: 0; max-width: none; border-bottom: 1px solid var(--line); }
.problems a { display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr auto; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; text-decoration: none; color: inherit; }
.problems a:hover h3 { color: var(--accent); }
.problems h3 { margin: 0; font-size: 1.2rem; }
.problems p { margin: 0; }
.problems .more { color: var(--accent); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

.plans-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.plans-strip > div { padding: 1.5rem; border-left: 1px solid var(--line); }
.plans-strip > div:first-child { border-left: 0; }
.plans-strip h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.plans-strip .price { color: var(--ink); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.plans-strip .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plans-strip p { font-size: 0.93rem; margin: 0.3rem 0 0; }

.cta-band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 0.35rem; }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); max-width: 20ch; }
.page-head .lede { font-size: 1.2rem; max-width: 40rem; }
.crumbs { font-size: 0.9rem; margin-bottom: 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-body { padding-bottom: clamp(3rem, 7vw, 5rem); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25em; font-size: 1.6rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose li strong { font-weight: 600; }

.split { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.side-nav { position: sticky; top: 6rem; font-size: 0.95rem; }
.side-nav h2 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; letter-spacing: 0; }
.side-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; }
.side-nav a:hover { color: var(--ink); }
.side-nav a[aria-current="page"] { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }

.callout { background: var(--accent-soft); border-radius: var(--radius-l); padding: 1.5rem 1.75rem; margin: 2.5rem 0; max-width: 46rem; }
.callout h2, .callout h3 { margin-top: 0 !important; font-size: 1.25rem; }
.callout p:last-child { margin-bottom: 0; }
blockquote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--accent); font-size: 1.2rem; color: var(--ink); max-width: 40rem; }
blockquote p { margin: 0; }
blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.95rem; font-style: normal; color: var(--muted); }

.feature-rows { border-top: 1px solid var(--line); }
.feature-rows article { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.feature-rows h2, .feature-rows h3 { margin: 0; font-size: 1.35rem; }
.feature-rows p:last-child { margin-bottom: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.75rem; }
.panel h2, .panel h3 { font-size: 1.3rem; }
.panel p:last-child { margin-bottom: 0; }

/* Tabs */
.tabs { display: inline-flex; gap: 0.25rem; padding: 0.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.5rem; }
.tabs button { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.file-table th { color: var(--ink); font-weight: 600; width: 16rem; }
.file-table thead th { font-size: 0.9rem; color: var(--muted); }

/* Pricing */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 46rem; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; table-layout: fixed; }
.price-table col.feat { width: 24%; }
.price-table th, .price-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table tbody th { color: var(--ink); font-weight: 500; }
.price-table thead th { vertical-align: top; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.price-table .plan-name { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.price-table .plan-price { display: block; color: var(--ink); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.35rem 0 0.1rem; }
.price-table .plan-alt { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-bottom: 1rem; }
.price-table .is-featured { background: var(--accent-soft); }
.yes { color: var(--ok); font-weight: 600; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field label { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.7rem 0.85rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.form-status { font-size: 0.97rem; padding: 0.8rem 1rem; border-radius: var(--radius-s); display: none; }
.form-status.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.form-status.err { display: block; background: #fdeaea; color: #a3261b; }
@media (prefers-color-scheme: dark) { .form-status.err { background: #3a1a1a; color: #ff9d94; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
address { font-style: normal; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-grid h2 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.75rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { color: var(--body); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid .about p { font-size: 0.93rem; max-width: 22rem; margin-top: 0.9rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-base a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem; max-height: calc(100vh - 4.25rem); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 0.8rem 0.5rem; font-size: 1.05rem; }
  .dropdown { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0.5rem 0.5rem; background: none; }
  .nav-actions { margin: 1rem 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; padding: 0.8rem; }
  .hero-grid, .two, .feature-rows article, .split { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .three { grid-template-columns: 1fr; }
  .plans-strip { grid-template-columns: 1fr 1fr; }
  .plans-strip > div:nth-child(3) { border-left: 0; }
  .plans-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .problems a { grid-template-columns: 1fr; gap: 0.4rem; }
  .plans-strip { grid-template-columns: 1fr; }
  .plans-strip > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .plans-strip > div:first-child { border-top: 0; }
  .file-table th { width: 40%; }
}
@media print { .site-header, .site-footer, .cta-band { display: none; } }
