@font-face {
  font-family: "Figtree";
  src: url("/egen-design/exempel/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --natt: #0c1a2b;
  --natt-2: #16293f;
  --sol: #ffb52e;
  --papper: #f6f3ec;
  --ink: #101a24;
  --ink-2: #4c5864;
  --linje: rgb(16 26 36 / 0.14);
  --kant: min(100% - 40px, 1360px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  color: var(--ink);
  background: var(--papper);
}

::selection {
  color: var(--natt);
  background: var(--sol);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.04;
}

a {
  color: inherit;
}

.inre {
  width: var(--kant);
  margin-inline: auto;
}

/* Etiketten */
.etikett {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  justify-content: space-between;
  padding: 9px 20px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: #111110;
}

.etikett strong {
  font-weight: 650;
}

.etikett a {
  text-underline-offset: 3px;
}

/* Toppen. Numret följer med, den som ska installera något ringer ofta. */
.topp {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background: var(--natt);
}

.topp-rad {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ordbild {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ordbild svg {
  width: 30px;
  height: 30px;
}

.topp nav {
  display: flex;
  gap: 30px;
  margin-inline: auto;
  font-size: 16px;
}

.topp nav a {
  color: rgb(255 255 255 / 0.84);
  text-decoration: none;
}

.topp nav a:hover {
  color: #fff;
}

.tel {
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--natt);
  white-space: nowrap;
  text-decoration: none;
  background: var(--sol);
  border-radius: 11px;
}

/* Heron: himlen bär texten och huset står kvar i sitt eget ljus. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(860px, calc(100svh - 110px));
  padding-block: clamp(36px, 5vw, 76px) clamp(20px, 3vw, 36px);
  overflow: clip;
  color: #fff;
  background: var(--natt);
  isolation: isolate;
}

.hero-bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 100%;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(
      ellipse 58% 40% at 14% 44%,
      rgb(12 26 43 / 0.82) 0%,
      rgb(12 26 43 / 0) 100%
    ),
    linear-gradient(
      180deg,
      var(--natt) 0%,
      rgb(12 26 43 / 0.88) 26%,
      rgb(12 26 43 / 0.42) 48%,
      rgb(12 26 43 / 0) 66%
    );
}

.hero h1 {
  font-size: clamp(30px, 9.6vw, 104px);
  line-height: 1.01;
}

@media (min-width: 860px) {
  .hero h1 {
    font-size: clamp(60px, 7vw, 104px);
  }
}

.hero-text p {
  max-width: 37rem;
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  color: rgb(255 255 255 / 0.92);
}

.dorrar {
  display: grid;
  gap: 12px;
  padding-top: clamp(150px, 22vw, 240px);
  margin-top: auto;
}

@media (min-width: 720px) {
  .dorrar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.dorr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px;
  align-items: center;
  padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2vw, 28px);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgb(12 26 43 / 0.7);
  transition: transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .dorr:hover {
    transform: translateY(-2px);
  }
}

.dorr-namn {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.dorr-pris {
  grid-row: 2;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.dorr svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--natt);
  background: var(--sol);
  border-radius: 11px;
}

/* De två valen */
.tva {
  padding-block: clamp(56px, 8vw, 120px);
}

.tva-rad {
  display: grid;
  gap: 56px 32px;
}

@media (min-width: 860px) {
  .tva-rad {
    grid-template-columns: 1fr 1fr;
  }
}

.val {
  scroll-margin-top: 24px;
}

.val img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.val h2 {
  margin-top: 24px;
  font-size: clamp(30px, 3vw, 44px);
}

.val p {
  max-width: 34rem;
  margin-top: 12px;
  color: var(--ink-2);
}

.lank {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--sol);
  text-underline-offset: 5px;
}

/* Priserna */
.priser {
  padding-block: clamp(56px, 8vw, 120px);
  scroll-margin-top: 12px;
  background: #fff;
}

.priser-rad {
  display: grid;
  gap: 32px 64px;
}

@media (min-width: 960px) {
  .priser-rad {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.priser-rad p {
  max-width: 30rem;
  margin-top: 16px;
  color: var(--ink-2);
}

.prislista > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--linje);
}

.prislista > div:last-child {
  border-bottom: 1px solid var(--linje);
}

.prislista dd {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Omdömena: frågan först, så att det syns vad en solcellskund undrar över. */
.omdomen {
  padding-block: clamp(56px, 8vw, 120px);
}

.omdomen-huvud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 48px;
  align-items: baseline;
  justify-content: space-between;
}

.omdomen-huvud p {
  font-size: 16px;
  color: var(--ink-2);
}

.omdomen-rad {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 52px);
}

@media (min-width: 960px) {
  .omdomen-rad {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.omdome {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  margin: 0;
  background: #fff;
  border-radius: 14px;
}

.omdome h3 {
  font-size: clamp(26px, 2.4vw, 34px);
}

.stjarnor {
  display: block;
  width: 100px;
  height: 20px;
  margin-top: 14px;
  background: var(--sol);
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.6 5.5 6 .8-4.4 4.2 1.1 6-5.3-2.9-5.3 2.9 1.1-6L1.4 7.9l6-.8z'/%3E%3C/svg%3E")
    left center / 20px 20px repeat-x;
}

.omdome blockquote {
  margin: 16px 0 24px;
  line-height: 1.5;
}

.omdome figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: auto;
  font-size: 16px;
  color: var(--ink-2);
  border-top: 1px solid var(--linje);
}

.omdome figcaption strong {
  font-weight: 650;
  color: var(--ink);
}

.omdome-fakta {
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--natt);
  white-space: nowrap;
  background: var(--sol);
  border-radius: 7px;
}

/* Stegen */
.steg {
  padding-block: clamp(56px, 8vw, 120px);
  color: #fff;
  scroll-margin-top: 12px;
  background: var(--natt);
}

.steg ol {
  display: grid;
  gap: 32px 40px;
  padding: 0;
  margin-top: clamp(28px, 4vw, 52px);
  list-style: none;
  counter-reset: steg;
}

.steg li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 14px;
  align-content: start;
  padding-top: 22px;
  counter-increment: steg;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.steg li::before {
  grid-row: 1 / 3;
  font-size: 60px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  color: var(--sol);
  letter-spacing: -0.04em;
  content: counter(steg, decimal-leading-zero);
}

@media (min-width: 860px) {
  .steg ol {
    grid-template-columns: repeat(3, 1fr);
  }

  .steg li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .steg li::before {
    grid-row: auto;
    margin-bottom: clamp(16px, 2vw, 28px);
    font-size: clamp(72px, 7.4vw, 112px);
  }
}

.steg li strong {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.steg li span {
  color: rgb(255 255 255 / 0.82);
}

/* Företag */
.foretag {
  padding-block: clamp(56px, 8vw, 120px);
}

.foretag-rad {
  display: grid;
  gap: 18px 64px;
}

@media (min-width: 960px) {
  .foretag-rad {
    grid-template-columns: 7fr 5fr;
    align-items: end;
  }
}

.foretag p {
  color: var(--ink-2);
}

/* Kontakten */
.kontakt {
  padding-block: clamp(56px, 8vw, 120px);
  color: var(--natt);
  background: var(--sol);
}

.stort-tal {
  display: block;
  margin-top: 8px;
  font-size: clamp(42px, 9vw, 132px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.kontakt p {
  margin-top: 14px;
}

/* Sidfoten. Bågen är ordbildens båge, med solen där den står just nu. */
.fot {
  padding-block: clamp(48px, 6vw, 88px) 24px;
  font-size: 16px;
  color: rgb(255 255 255 / 0.84);
  background: var(--natt);
}

.fot a {
  text-decoration: none;
}

.fot .inre a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sol);
  text-underline-offset: 4px;
}

.fot ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sol[hidden] {
  display: none;
}

.sol {
  margin-bottom: clamp(44px, 6vw, 80px);
}

.sol-rad {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.sol-rad:first-child p:first-child {
  font-weight: 600;
  color: #fff;
}

.sol-bage {
  position: relative;
  height: clamp(64px, 11vw, 150px);
  margin-block: 14px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.sol-bage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sol-bage path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.sol-himmel {
  stroke: rgb(255 255 255 / 0.26);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
}

.sol-gangen {
  stroke: var(--sol);
  stroke-width: 2.4;
}

.sol-punkt {
  position: absolute;
  display: none;
  width: 18px;
  height: 18px;
  background: var(--sol);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgb(255 181 46 / 0.2);
  transform: translate(-50%, -50%);
}

.sol-punkt[data-synlig] {
  display: block;
}

.fot-spalter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.fot-marke {
  grid-column: 1 / -1;
}

.fot-marke p {
  max-width: 21rem;
  margin-top: 10px;
}

.fot-rubrik {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.62);
}

.fot-spalter li {
  padding-block: 3px;
}

/* Orterna och mejladressen får hela bredden på telefonen. */
@media (max-width: 719px) {
  .fot-spalter > :nth-last-child(-n + 2) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .fot-spalter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fot-spalter {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  }

  .fot-marke {
    grid-column: auto;
  }
}

.fot .fot-tryggt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 20px;
  margin-top: clamp(36px, 4vw, 56px);
  font-size: 15px;
  border-block: 1px solid rgb(255 255 255 / 0.2);
}

.fot-tryggt li {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.fot-tryggt li::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--sol);
  border-radius: 50%;
}

.fot-rad {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 15px;
}

.fot-rad a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Telefonen */
@media (max-width: 859px) {
  .topp nav {
    display: none;
  }

  .topp-rad {
    height: 64px;
  }

  .tel {
    padding: 9px 14px;
    font-size: 15px;
  }

  .etikett {
    padding-inline: 20px;
    font-size: 13px;
  }

  body {
    font-size: 17px;
  }

  .hero {
    min-height: calc(100svh - 124px);
  }

  .hero-bild {
    object-position: 58% 100%;
  }
}
