/* planportal.no – landingssiden (Quaerite-AS/quaerite-platform#1236).
   Frittstående: ingen bygg, ingen skript, ingen eksterne kall.
   Samme oppbygging som landingssiden til meldtiltak.no; merkefargen er PlanPortals. */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonter/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonter/source-sans-3-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonter/source-sans-3-latin-700-normal.woff2') format('woff2');
}

:root {
  --brand: #036BA0;
  --ink: #16202B;
  --muted: #56616D;
  --line: #DDE3E9;
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --accent: #E39B1B;
  --warn-text: #7A5200;
  --on-ink: #FFFFFF;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--ink);
  text-decoration: underline;
}

a:hover {
  color: var(--muted);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.hopp {
  position: absolute;
  left: -9999px;
}

.hopp:focus {
  left: 16px;
  top: 8px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--surface);
}

.topp {
  min-height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-bottom: 4px solid var(--brand);
}

.merke {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.merke:hover {
  color: var(--ink);
  text-decoration: underline;
}

.merke img {
  width: 32px;
  height: 32px;
}

.toppmeny {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.toppmeny a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

main {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overlinje {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  max-width: 860px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.ingress {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.5;
}

.knapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knapp {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* Den ene fylte knappen på siden. */
.knapp-fylt {
  background: var(--brand);
  border: 2px solid var(--brand);
  color: var(--on-ink);
}

.knapp-fylt:hover {
  color: var(--on-ink);
  text-decoration: underline;
}

.knapp-omriss {
  background: var(--surface);
  border: 1px solid var(--ink);
  color: var(--ink);
}

.knapp-omriss:hover {
  color: var(--ink);
  text-decoration: underline;
}

.flate {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Flytlinjen: fire ledd, loddrett på smale skjermer og vannrett fra 900 px. */
.flyt {
  margin: 0;
  padding: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flyt li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flyt .ledd {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--ink);
  text-align: center;
}

.flyt .ledd strong {
  font-size: 18px;
}

.flyt .ledd span {
  font-size: 14px;
  color: var(--muted);
}

.flyt .pil {
  align-self: center;
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
}

.seksjon {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seksjon p {
  max-width: 860px;
}

.kort-rad {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.kort {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kort p {
  font-size: 15px;
  color: var(--muted);
}

/* Forbehold: aksentstripe, alltid med ikon og tekst. */
.grense {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 4px solid var(--accent);
}

.grense .tittel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--warn-text);
}

.grense .tittel svg {
  flex-shrink: 0;
}

.grense p {
  max-width: 860px;
}

.kontakt {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--ink);
}

.kontakt .tekst {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bunn {
  margin-top: auto;
  padding: 20px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 15px;
}

@media (min-width: 640px) {
  .topp {
    padding: 0 32px;
  }

  main {
    padding: 56px 32px 64px;
    gap: 64px;
  }

  .hero {
    gap: 22px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 26px;
  }

  .ingress {
    font-size: 20px;
  }

  .knapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .flyt {
    padding: 28px;
  }

  .flyt .ledd strong {
    font-size: 20px;
  }

  .flyt .ledd span {
    font-size: 15px;
  }

  .seksjon {
    gap: 18px;
  }

  .seksjon p,
  .grense p {
    font-size: 17px;
  }

  .kort-rad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .kort p {
    font-size: 15px;
  }

  .grense {
    padding: 28px;
    gap: 12px;
  }

  .kontakt {
    padding: 32px;
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .kontakt .tekst {
    flex: 1 1 0;
  }

  .bunn {
    padding: 28px 32px;
  }
}

/* Flytlinjen legges vannrett først når de fire leddene får plass. */
@media (min-width: 900px) {
  .flyt {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  .flyt li {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  .flyt .ledd {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 18px 10px;
  }

  .flyt .pil {
    transform: none;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .kort-rad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
