/* Superest landningssida. Ren CSS, inga ramverk. */

:root {
  --blue: #1565c0;
  --blue-dark: #0d3b7a;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --line: #96afcd;
  --tint: #ecf2fa;
  --green: #2f9e6a;
  --amber: #e08a2e;
  --amber-light: #e6b04a;
  --red: #d1495b;
  --max: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

h1, h2 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 0.2em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
}

/* --- header --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(180deg, #fcfdff 0%, #eef3fa 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
  color: var(--blue-dark);
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.01em;
}

/* scenen ligger i botten av headern och fyller bredden */
.scene {
  --stop-x: 1400px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #5a7daa;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene__line {
  stroke: var(--line);
  stroke-width: 3;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 1.6s ease-out forwards;
}

.scene__dots circle,
.scene__stop {
  opacity: 0;
  animation: pop 0.5s ease-out forwards;
  animation-delay: calc(0.3s + var(--i) * 0.3s);
}

.scene__stop {
  transform: translate(var(--stop-x), 270px);
  animation-name: pop-stop;
}

.scene__dots circle.is-hidden {
  display: none;
}

.scene__dots circle {
  fill: #5a7daa;
  stroke: none;
}

.scene__stop circle:first-child {
  fill: var(--red);
  stroke: none;
}

.scene__ring {
  stroke: var(--red);
  stroke-width: 2.5;
  transform-origin: 0 0;
  animation: ring 2.4s ease-out infinite;
  animation-delay: 1.6s;
}

/* helikoptern placeras med transform i css så den kan gunga */
.scene__heli {
  transform: translate(var(--stop-x), 270px) scale(0.62) translate(0, -108px);
  animation: hover 3.2s ease-in-out infinite;
}

.scene__cone {
  fill: var(--red);
  fill-opacity: 0.10;
  stroke: var(--red);
  stroke-opacity: 0.35;
  stroke-width: 3;
  animation: cone 3.2s ease-in-out infinite;
}

.scene__fill {
  fill: #5a7daa;
  stroke: none;
}

.scene__rotor {
  transform-origin: 0 -118px;
  animation: rotor 0.18s linear infinite;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop-stop {
  from { opacity: 0; transform: translate(var(--stop-x), 276px); }
  to { opacity: 1; transform: translate(var(--stop-x), 270px); }
}

@keyframes ring {
  0% { transform: scale(0.85); opacity: 1; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes hover {
  0%, 100% { transform: translate(var(--stop-x), 270px) scale(0.62) translate(0, -108px); }
  50% { transform: translate(var(--stop-x), 264px) scale(0.62) translate(0, -108px); }
}

@keyframes cone {
  0%, 100% { fill-opacity: 0.08; }
  50% { fill-opacity: 0.18; }
}

@keyframes rotor {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(0.15); }
  100% { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scene *,
  .heli,
  .heli *,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
  .reveal {
    transform: none !important;
  }
}

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.32);
}

.button--big {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

/* --- avsnitt -------------------------------------------------------------- */

.section {
  padding: 4rem 1.5rem;
}

.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section--tinted {
  background: var(--tint);
}

/* påståendet direkt under headern: stort, centrerat, luftigt */
.claim {
  text-align: center;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.claim__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.claim__sub {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.claim .points {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

/* apparna: två kort, kommer snart */
.apps {
  text-align: center;
}

.apps__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.apps__sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.apps__row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app {
  min-width: 12rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(13, 59, 122, 0.06), 0 12px 32px rgba(13, 59, 122, 0.07);
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.app__name {
  font-size: 1.25rem;
  font-weight: 700;
}

.app__soon {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--tint);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.section--cta {
  position: relative;
  text-align: center;
}

/* helikoptern i kontaktstycket: tar ingen plats i flödet. bredden är vad
   som ryms i vänstermarginalen bredvid texten, upp till 320 px */
.heli {
  --gutter: calc((100vw - 640px) / 2);
  --w: clamp(0px, calc(var(--gutter) - 4rem), 200px);
  position: absolute;
  top: 50%;
  left: calc((var(--gutter) - var(--w)) / 2);
  width: var(--w);
  height: auto;
  transform: translateY(-50%);
  fill: none;
  stroke: #5a7daa;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 3.2s ease-in-out infinite;
}

.heli__fill {
  fill: #5a7daa;
  stroke: none;
}

.heli__rotor {
  transform-origin: 0 -118px;
  animation: rotor 0.18s linear infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 6px)); }
}

.section--cta .button {
  margin-top: 0.5rem;
}

/* tre säljpunkter under varandra i varsitt kort, en bock framför. läses en
   i taget. tonas in när de rullas fram, se index.js */
.points {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
  display: grid;
  gap: 1rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 600;
}

.points li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: center;
  text-align: left;
  padding: 1.1rem 1.75rem 1.1rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(13, 59, 122, 0.06), 0 12px 32px rgba(13, 59, 122, 0.07);
}

.points li::before {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* kortet för det som kommer: samma kort, bock i grått, etikett efter */
.points .points__soon::before {
  background-color: var(--line);
}

.points__soon .app__soon {
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* tonas in när de rullas fram */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.15s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* tre klick och en bock: cirklar med streck emellan, pil in till bocken */
.steps {
  text-align: center;
}

.steps__title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin: 2rem auto 0;
}

.steps__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.15);
  flex: none;
}

/* ett litet > mellan klicken. vinkeln ligger i ::before så intoningens
   transform inte skriver över rotationen */
.step__next {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0 1.5rem;
  flex: none;
}

.step__next::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-top: 3px solid var(--line);
  border-right: 3px solid var(--line);
  transform: rotate(45deg);
}

/* korten under klicken: rubrik och punkter, som en jämförelsetabell fast
   allt ingår */
.cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 2px 6px rgba(13, 59, 122, 0.06), 0 12px 32px rgba(13, 59, 122, 0.07);
}

.card {
  text-align: center;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* tre klick och en bock: cirklar med streck emellan, pil in till bocken */
.steps {
  text-align: center;
}

.steps__title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin: 2rem auto 0;
}

.steps__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.15);
  flex: none;
}

/* ett litet > mellan klicken. vinkeln ligger i ::before så intoningens
   transform inte skriver över rotationen */
.step__next {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0 1.5rem;
  flex: none;
}

.step__next::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-top: 3px solid var(--line);
  border-right: 3px solid var(--line);
  transform: rotate(45deg);
}

/* korten under klicken: rubrik och punkter, som en jämförelsetabell fast
   allt ingår */
.cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 2px 6px rgba(13, 59, 122, 0.06), 0 12px 32px rgba(13, 59, 122, 0.07);
}

.card {
  text-align: center;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* smal skärm: helikoptern under texten, i flödet igen */
  .heli {
    position: static;
    display: block;
    width: 150px;
    margin: 0 auto 1.5rem;
    transform: none;
    animation-name: bob-static;
  }

  @keyframes bob-static {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
}


/* de tre frågorna */
.questions {
  list-style: none;
  counter-reset: q;
  padding: 0;
  margin: 2rem auto;
  display: grid;
  gap: 1rem;
}

.questions li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--tint);
  border-radius: 12px;
  background: #fff;
}

.questions li::before {
  content: counter(q);
  grid-row: 1 / 3;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.questions strong {
  font-size: 1.15rem;
}

.questions span {
  color: var(--ink-soft);
}





/* --- fot ------------------------------------------------------------------ */

.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--tint);
}

@media (max-width: 600px) {

  .hero {
    min-height: 360px;
  }

  .hero__inner {
    padding-top: 2.5rem;
  }
}
