:root {
    --navy: #0B1220;
    --navy-line: #283448;
    --on-navy: #E2E8F0;
    --on-navy-muted: #94A3B8;
    --stage-1: #93C5FD;
    --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { height: 100%; }
  body { min-height: 100%; }
  body {
    margin: 0;
    background: var(--navy);
    color: var(--on-navy);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  }
  main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 0; }
  .card { max-width: 34rem; text-align: center; }
  .brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; color: #fff; font-size: 1.75rem; }
  .brand svg { width: 64px; height: 64px; }
  .eyebrow { margin: 48px 0 12px; color: var(--stage-1); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
  h1 { font-family: var(--display); font-weight: 700; color: #fff; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 20px; text-wrap: balance; }
  p { margin: 0 0 16px; }
  a { color: #fff; text-underline-offset: 3px; }
  /* Footer, laid out like the full site's (25 Oct). Pinned to the bottom of
     the window on wider screens; on phones it would take a third of the
     screen, so there it sits at the end of the page instead. */
  footer {
    position: relative; z-index: 2;
    margin: 0 -20px; padding: 12px 20px max(12px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--navy-line); color: var(--on-navy-muted); font-size: 0.85rem;
    background: rgba(11, 18, 32, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  @media (min-width: 641px) { footer { position: sticky; bottom: 0; } }
  footer .wrap { max-width: 68rem; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
  .foot-id { display: flex; gap: 10px; align-items: center; line-height: 1.3; }
  .foot-id svg { width: 32px; height: 32px; flex: none; }
  .foot-id div { display: grid; gap: 1px; }
  .foot-id b { color: #fff; font-family: var(--display); font-weight: 700; }
  .foot-meta { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 16px; justify-items: end; text-align: right; }
  .foot-reg { grid-column: 1 / -1; font-size: 0.75rem; opacity: 0.8; }
  .foot-social { display: flex; gap: 14px; }
  .foot-social a { display: block; color: var(--on-navy-muted); }
  .foot-social a:hover { color: #fff; }
  .foot-social svg { width: 20px; height: 20px; display: block; }
  .foot-social:empty { display: none; }
  .foot-social:empty + .foot-links { grid-column: 1 / -1; }
  @media (max-width: 640px) { .foot-meta { grid-template-columns: auto; justify-items: start; text-align: left; } }
  footer a { color: inherit; text-underline-offset: 2px; }
  footer a:hover { color: #fff; }

  /* Register interest (25 Oct) */
  .interest { margin: 0; text-align: left; }

  /* Two columns from a laptop up (25 Oct): the pitch on the left, the form in
     its own panel on the right. Stacked and centred on a phone. */
  .panel { margin: 32px auto 0; max-width: 26rem; text-align: left; background: rgba(17, 26, 44, 0.82);
           border: 1px solid var(--navy-line); border-radius: 10px; padding: 24px;
           -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .panel h2 { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.25rem; margin: 0 0 4px; }
  .panel-lead { color: var(--on-navy-muted); font-size: 0.95rem; margin: 0 0 18px; }
  @media (min-width: 900px) {
    .card { max-width: 68rem; width: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
            gap: 64px; align-items: center; text-align: left; }
    .card .pitch .eyebrow { margin-top: 40px; }
    .card h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
    .panel { margin: 0; max-width: none; }
  }
  .interest .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .interest label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--on-navy-muted); margin: 0 0 4px; }
  .interest input { width: 100%; font: inherit; font-size: 1rem; color: #fff; background: #111a2c; border: 1px solid var(--navy-line); border-radius: 6px; padding: 10px 12px; }
  .interest input:focus { outline: 2px solid var(--stage-1); outline-offset: 1px; border-color: transparent; }
  .interest .field { margin-bottom: 10px; }
  .interest .field.invalid input { border-color: #F87171; }
  .interest button { width: 100%; margin-top: 4px; font: inherit; font-weight: 600; font-size: 1rem; color: var(--navy); background: #fff; border: 0; border-radius: 6px; padding: 12px 16px; cursor: pointer; }
  .interest button:disabled { opacity: 0.6; cursor: default; }
  .interest .result { margin: 12px 0 0; font-size: 0.95rem; color: var(--on-navy); }
  .interest .result b { display: block; color: #fff; }
  .interest .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .interest .note { font-size: 0.8rem; color: var(--on-navy-muted); margin: 10px 0 0; }
  .interest .row.firm { grid-template-columns: 1fr 7rem; }
  .interest input[type=number] { -moz-appearance: textfield; }
  .interest input[type=number]::-webkit-inner-spin-button, .interest input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

  /* Legal pages */
  main.legal { display: block; padding: 48px 0 64px; }
  .legal .wrap { max-width: 44rem; margin: 0 auto; }
  .legal .back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .legal .eyebrow { margin: 40px 0 8px; }
  .legal h1 { text-align: left; }
  .legal h2 { font-family: var(--display); color: #fff; font-size: 1.25rem; margin: 32px 0 10px; }
  .legal h3 { color: #fff; font-size: 1.05rem; margin: 22px 0 8px; }
  .legal p, .legal li { font-size: 1rem; }
  .legal ul { padding-left: 1.2rem; margin: 0 0 16px; }
  .legal .updated { color: var(--on-navy-muted); font-size: 0.9rem; }
  .legal table.tbl { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.95rem; }
  .legal table.tbl th, .legal table.tbl td { text-align: left; vertical-align: top; border-top: 1px solid var(--navy-line); padding: 8px 10px 8px 0; }

  /* Dot grid with a soft orange glow that follows the pointer (25 Oct), after
     the Cloudflare side panel. Two fixed layers: faint slate dots everywhere,
     and the same grid in the brand amber, masked to a circle at --gx/--gy
     (set by glow.js). Touch screens get a still glow behind the logo. */
  body::before, body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-size: 22px 22px; background-position: 11px 11px;
  }
  body::before { background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1.6px); }
  body::after {
    background-image:
      radial-gradient(rgba(245, 158, 11, 0.85) 1.1px, transparent 1.7px),
      radial-gradient(280px circle at var(--gx, 50%) var(--gy, 24%), rgba(245, 158, 11, 0.07), transparent 70%);
    background-size: 22px 22px, 100% 100%;
    background-position: 11px 11px, 0 0;
    -webkit-mask-image: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 24%), #000, transparent 72%);
            mask-image: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 24%), #000, transparent 72%);
    opacity: var(--go, 0);
    transition: opacity 0.5s ease;
  }
  @media (hover: none) { body::after { opacity: 0.7; } }
  main { position: relative; z-index: 1; }

  /* /app-privacy and /app-terms (#1220): the Markdown from api.suraflo.app.
     Tables sit in a .tbl box that scrolls sideways on a phone. */
  .legal-doc a, .legal-other a, .legal-error a { color: var(--stage-1); }
  .legal-doc ul ul { margin: 6px 0 8px; }
  .legal-doc li { margin: 0 0 6px; }
  .legal-doc li > p { margin: 8px 0; }
  .legal-doc .tbl { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--navy-line); border-radius: 4px; }
  .legal-doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
  .legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--navy-line); }
  .legal-doc thead th { border-top: 0; color: #fff; background: rgba(148, 163, 184, 0.08); font-weight: 600; }
  .legal-other { margin-top: 40px; color: var(--on-navy-muted); }
