/* Startsidan (index.html). Bygger på style.css (färger, toppmeny, Gigi).
   Allt här gäller bara när <body> har klassen "landing". */

/* ---------- Grund ---------- */
body.landing {
  min-height: 0;
  background: var(--light-grey);
  color: var(--purple);
  overflow-x: hidden;
}

.landing .lp {
  position: relative;
  overflow-x: clip;
}

.landing main { position: relative; }

.landing :where(h1, h2, h3, p) { margin: 0; }

/* Länkar som ser ut som knappar (style.css har bara <button>-knappar) */
.landing a.btn {
  display: inline-block;
  text-decoration: none;
}

.lp-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease;
}
button.lp-btn { border: 0; font-family: inherit; cursor: pointer; }
.lp-btn:hover { opacity: .85; }
.lp-btn:focus-visible,
.landing .btn:focus-visible { outline: 3px solid #ce0088; outline-offset: 2px; }
.lp-btn-solid { background: var(--purple); color: var(--white); }
.lp-btn-white { background: var(--white); color: var(--purple); }

.lp-h2 {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
}

/* ---------- Toppmeny ---------- */
.lp-topbar { z-index: 10; max-width: 1632px; }

/* ---------- Dekorativa trådar ---------- */
.lp-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Gemensam vridning från Figma (ger trådarna deras lutning) */
.lp-skew {
  position: relative;
  width: 2283.311px;
  height: 739.792px;
  flex: none;
  transform: rotate(158.66deg) scaleY(.99) skewX(9.15deg);
}
.lp-skew svg {
  position: absolute;
  left: 0;
  top: -1.48px;
  width: 100%;
  height: 742.75px;
}

.lp-thread-faint {
  position: absolute;
  left: calc(50% - 1218.08px);
  top: 518px;
  width: 2502.117px;
  height: 1468.33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  z-index: 1;
  padding: 129px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lp-hero-title {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  font-size: 128px;
  line-height: normal;
  margin-bottom: 8px;
}

.lp-hero-text {
  max-width: 762px;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 40px;
}

/* Huvudtråden. Ligger bakom texten och sticker ut åt sidorna. */
.lp-thread-main {
  position: absolute;
  z-index: -1;
  left: calc(50% - 910px);
  top: calc(100% - 152px);
  width: 1868.567px;
  height: 337.75px;
  pointer-events: none;
}
.lp-thread-main path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-thread-main path { animation: lp-draw 2.6s cubic-bezier(.45, .05, .35, 1) .2s both; }
}
@keyframes lp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Varför gigflw? ---------- */
.lp-why {
  position: relative;
  z-index: 1;
  max-width: 1376px;
  margin: 0 auto;
  padding: 329px 24px 0;
  scroll-margin-top: 24px;
}

.lp-why-grid {
  margin-top: 72px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.lp-why-item {
  width: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lp-why-art {
  height: 242px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 64px;
}
.lp-why-art img { display: block; max-width: 100%; height: auto; }
.lp-why-art-2 { align-items: flex-start; padding-top: 24px; }

.lp-why-item h3 {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.lp-why-item p {
  max-width: 358px;
  font-size: 24px;
  line-height: 1.4;
}

/* ---------- Kom igång idag ---------- */
.lp-start {
  position: relative;
  z-index: 1;
  max-width: 1328px;
  min-height: 758px;
  margin: 87px auto 0;
  border-radius: 43px;
  background: var(--purple);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lp-start-text {
  position: relative;
  z-index: 1;
  width: 544px;
  margin-left: 104px;
  padding: 48px 0;
}

.lp-start-title {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  font-size: 64px;
  line-height: normal;
  margin-bottom: 8px;
}

.lp-start-text > p {
  max-width: 521px;
  font-size: 24px;
  line-height: 1.4;
}

.lp-checks {
  list-style: none;
  margin: 40px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 24px;
  line-height: 1.4;
}
.lp-checks li { display: flex; align-items: center; gap: 16px; }
.lp-checks img { flex: none; }

/* Laptop: 1008 × 600 px stor scen, placerad som i Figma och beskuren av den lila rutan */
.lp-laptop-wrap {
  position: absolute;
  left: 590px;
  top: 84px;
}
.lp-laptop {
  position: relative;
  width: 1008px;
  height: 600px;
  transform-origin: top left;
}
.lp-laptop-shadow {
  position: absolute;
  left: 8px;
  top: 537px;
  width: 993px;
  height: 98px;
  max-width: none;
}
.lp-laptop-lid {
  position: absolute;
  left: 98px;
  top: 0;
  width: 816px;
  height: 554px;
  background: #1a202c;
  border: 2px solid #4a5568;
  border-radius: 28px 28px 4px 4px;
  overflow: hidden;
}
.lp-laptop-lid::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 806px;
  height: 528px;
  background: #000;
  border-radius: 22px 22px 0 0;
}
.lp-laptop-screen {
  position: absolute;
  left: 19px;
  top: 29px;
  width: 770px;
  height: 480px;
  background: var(--white);
  overflow: hidden;
}
.lp-laptop-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 530px;
  text-align: center;
  font: 600 13px/1 "Inter", "Segoe UI", system-ui, sans-serif;
  color: #a0aec0;
}
.lp-laptop-base {
  position: absolute;
  left: 0;
  top: 550px;
  width: 1008px;
  height: 30px;
  max-width: none;
}

/* Miniatyren av översikten i laptopens skärm */
.mini {
  padding: 10px 17px;
  font-size: 7.7px;
  color: var(--charcoal);
}
.mini-bar {
  height: 31px;
  border-radius: 2px;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 500;
}
.mini-logo {
  margin-right: auto;
  font-family: "Sacramento", cursive;
  font-size: 15px;
  text-shadow: 0 0 6.8px #ff00cb;
}
.mini-logout {
  background: var(--white);
  color: #1c1c1c;
  border-radius: 3px;
  padding: 3px 7px;
  font-weight: 600;
}
.mini-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 14px 0 16px;
}
.mini-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.mini-tabs { display: flex; gap: 9px; font-weight: 600; }
.mini-tabs span { padding: 3px 7px; border-radius: 3px; }
.mini-tabs .is-active { background: rgba(39, 9, 73, .1); }
.mini-new {
  background: var(--purple);
  color: var(--white);
  border-radius: 3px;
  padding: 3px 7px;
  font-weight: 600;
}
.mini-cols { display: flex; gap: 7px; align-items: flex-start; }
.mini-panel {
  flex: none;
  width: 174px;
  padding: 10px 7px;
  background: var(--light-grey);
  border: .5px solid rgba(198, 198, 198, .5);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mini-panel-wide { width: 512px; }
.mini-panel-title { font-weight: 600; font-size: 8.6px; margin-bottom: 3px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 160px); gap: 7px 10px; }
.mini-sub { font-size: 8.6px; }
.mini-card {
  position: relative;
  min-height: 45px;
  padding: 9px 6px 6px;
  background: var(--white);
  border: .5px solid rgba(198, 198, 198, .5);
  border-radius: 4px;
  box-shadow: 0 .9px 3.6px rgba(94, 94, 94, .1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-grid .mini-card { min-height: 57px; }
.mini-card b { font-weight: 400; }
.mini-card span { font-weight: 300; font-size: 6.9px; }
.mini-card em { font-style: normal; font-weight: 600; color: var(--purple); }
.mini-card i {
  position: absolute;
  top: 9px;
  right: 8px;
  font-style: normal;
  font-size: 6.9px;
  padding: 2px 4px;
  border-radius: 13px;
}
.mini-card .ok { background: rgba(10, 190, 17, .33); color: #007219; }
.mini-card .wait { background: rgba(223, 202, 14, .33); color: #726000; }

/* ---------- Integritetspolicy ---------- */
.lp-policy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  color: var(--charcoal, #3d404c);
  font-size: 17px;
  line-height: 1.6;
}
.lp-policy h1 { margin: 0; text-align: left; }
.lp-policy h2 { margin: 40px 0 8px; font-size: 21px; font-weight: 600; color: var(--purple, #270949); }
.lp-policy p, .lp-policy ul { margin: 8px 0 0; }
.lp-policy ul { padding-left: 22px; }
.lp-policy li + li { margin-top: 6px; }
.lp-policy-meta { font-size: 14px; opacity: .75; }
.lp-policy-draft {
  margin-top: 16px !important;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(39, 9, 73, .06);
  font-size: 14px;
}
.lp-policy-mail { font-weight: 600; color: var(--purple, #270949); }
.lp-policy-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px 120px;
  border-top: 1px solid rgba(39, 9, 73, .1);
  font-size: 14px;
  color: var(--charcoal, #3d404c);
}
.lp-policy-footer a { color: inherit; }
@media (max-width: 600px) {
  .lp-policy { padding-top: 48px; font-size: 16px; }
}
/* ---------- Kontakt ---------- */
.lp-contact {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 0;
  text-align: center;
  color: var(--charcoal, #3d404c);
  font-size: 18px;
  line-height: 1.5;
}
.lp-contact p { margin: 16px 0 0; }
.lp-contact-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px !important;
}
.lp-contact-address { font-weight: 600; font-size: 22px; color: var(--purple, #270949); user-select: all; }
.lp-contact-gigi { font-size: 15px; opacity: .8; }
@media (max-width: 600px) {
  .lp-contact { padding-top: 80px; font-size: 16px; }
}

/* ---------- Vanliga frågor ---------- */
.lp-faq {
  position: relative;
  z-index: 1;
  max-width: 1376px;
  margin: 0 auto;
  padding: 144px 24px 0;
}

/* Den svaga tråden med öglan bakom rubriken (spegelvänd kopia av huvudtråden) */
.lp-thread-faq {
  position: absolute;
  z-index: -1;
  left: calc(50% - 889px);
  top: -81px;
  width: 1868.567px;
  height: 337.75px;
  transform: scaleX(-1);
  pointer-events: none;
}

.lp-faq-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.lp-faq-item {
  background: var(--white);
  border: 1px solid rgba(198, 198, 198, .5);
  border-radius: 10px;
  box-shadow: 0 2px 8.3px rgba(94, 94, 94, .1);
}
.lp-faq-item h3 { font: inherit; }

.lp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--purple);
}
.lp-faq-q:focus-visible { outline: 3px solid #ce0088; outline-offset: 2px; }
.lp-faq-q img { flex: none; transition: transform .2s ease; }
.lp-faq-q[aria-expanded="true"] img { transform: rotate(45deg); }

.lp-faq-a { padding: 0 24px 24px; }
.lp-faq-a p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--charcoal);
}

/* ---------- Sidfot ---------- */
.lp-footer {
  position: relative;
  margin-top: 181px;
  overflow: hidden;
  /* Samma ton som vågen (lila 10 % på ljusgrått), så att ytan under vågen alltid är fylld */
  background: linear-gradient(transparent 420px, #e2dfe8 420px);
}

.lp-footer-deco {
  position: absolute;
  left: calc(50% - 1279.96px);
  top: -587px;
  width: 2721.349px;
  height: 1840.714px;
  pointer-events: none;
}
.lp-wave-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-wave-fill svg {
  flex: none;
  width: 2283.311px;
  height: 1171.918px;
  transform: rotate(158.66deg) scaleY(.99) skewX(9.15deg);
}
.lp-wave-line {
  position: absolute;
  left: 61.87px;
  top: 14.68px;
  width: 2502.117px;
  height: 1468.33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-footer-inner {
  position: relative;
  max-width: 1632px;
  margin: 0 auto;
  padding: 401px 24px 50px;
}

.lp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--purple);
}

.lp-footer-links,
.lp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-weight: 500;
  font-size: 18px;
}
.lp-footer-links { margin-left: 64px; }
.lp-footer-links a,
.lp-footer-bottom a { color: var(--purple); }
.lp-footer-links a { text-decoration: none; }
.lp-footer-links a:hover { text-decoration: underline; }
.lp-footer-bottom a { text-decoration: underline; }

.lp-social { display: flex; gap: 16px; }
.lp-social a { display: block; line-height: 0; }
.lp-social a:hover { opacity: .75; }

.lp-footer-bottom {
  justify-content: center;
  gap: 32px;
  margin-top: 41px;
}

/* ---------- Mellanstora skärmar ---------- */
@media (max-width: 1400px) {
  .lp-start { margin-left: 24px; margin-right: 24px; }
  .lp-start-text { margin-left: 72px; width: 480px; }
  .lp-laptop-wrap { left: 560px; top: 120px; }
  .lp-laptop { transform: scale(.85); }
}

@media (max-width: 1100px) {
  .lp-hero-title { font-size: 104px; }
  .lp-why-grid { gap: 16px; }
  .lp-why-item h3 { font-size: 30px; }
  .lp-why-item p { font-size: 20px; }

  /* Lila rutan: texten överst, laptopen under och beskuren till höger */
  .lp-start { flex-direction: column; align-items: stretch; min-height: 0; }
  .lp-start-text { width: auto; max-width: 560px; margin: 0; padding: 56px 48px 0; }
  .lp-laptop-wrap { position: relative; left: auto; top: auto; height: 380px; margin: 48px 0 0 48px; }
  .lp-laptop { transform: scale(.62); }

  .lp-footer-row { flex-wrap: wrap; }
  .lp-footer-links { margin-left: 0; }
}

@media (max-width: 860px) {
  .lp-why { padding-top: 260px; }
  .lp-why-grid { flex-direction: column; align-items: center; gap: 64px; }
  .lp-why-item { width: 100%; max-width: 410px; }
  .lp-why-art { height: auto; margin-bottom: 32px; }
  .lp-why-art-2 { padding-top: 0; }

  .lp-faq-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .lp-h2 { font-size: 32px; }

  .lp-hero { padding: 72px 16px 0; }
  .lp-hero-title { font-size: 80px; }
  .lp-hero-text { font-size: 18px; margin-bottom: 32px; }

  /* Tråden krymps och läggs under knappen */
  .lp-thread-main {
    left: -12vw;
    top: calc(100% + 8px);
    width: 160vw;
    height: 29vw;
  }
  .lp-thread-main path { stroke-width: 7; }
  .lp-thread-faint { display: none; }

  .lp-why { padding: 44vw 16px 0; }
  .lp-why-grid { margin-top: 40px; gap: 48px; }
  .lp-why-art img { max-height: 180px; width: auto; }
  .lp-why-item h3 { font-size: 26px; }
  .lp-why-item p { font-size: 18px; }

  .lp-start { margin: 64px 16px 0; border-radius: 28px; }
  .lp-start-text { padding: 40px 24px 0; }
  .lp-start-title { font-size: 48px; }
  .lp-start-text > p,
  .lp-checks { font-size: 18px; }
  .lp-checks { margin: 28px 0 32px; gap: 12px; }
  .lp-laptop-wrap { height: 200px; margin: 40px 0 0 24px; }
  .lp-laptop { transform: scale(.32); }

  .lp-faq { padding: 96px 16px 0; }
  .lp-thread-faq { display: none; }
  .lp-faq-grid { margin-top: 32px; }
  .lp-faq-q { padding: 18px 20px; font-size: 18px; }
  .lp-faq-a { padding: 0 20px 20px; }
  .lp-faq-a p { font-size: 16px; }

  .lp-footer { margin-top: 64px; background: linear-gradient(transparent 240px, #e2dfe8 240px); }
  .lp-footer-deco { transform: scale(.42); transform-origin: 50% 0; top: -235px; }
  .lp-wave-line path { stroke-width: 5; }
  .lp-footer-inner { padding: 210px 16px 140px; }
  .lp-footer-row { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 24px; }
  .lp-footer-links { gap: 12px 20px; font-size: 16px; }
  .lp-footer-bottom { justify-content: flex-start; gap: 12px 20px; margin-top: 24px; font-size: 14px; }
}
