/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fff0e6;
}

main {
  width: 100%;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.white-background {
  background-color: #ffffff;
}

.title {
  font-size: 2.5em;
  color: #333;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* =============================
   HERO SECTION
============================= */

/* Hero container: mobil först */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #fff0e6;
  padding: clamp(40px, 8vw, 100px) clamp(20px, 10vw, 100px);
  flex-direction: column;
  gap: clamp(30px, 5vw, 60px);
  margin-top: clamp(1rem, 8vw, 8rem);
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  /* text först, bild under på mobil */
  justify-content: center;
  align-items: center;
  width: 90%;
  gap: clamp(30px, 5vw, 60px);
}

/* Textinnehåll */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ff7f50, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
  -webkit-text-stroke: 0.3px black;
}

.hero h2 {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: clamp(20px, 4vw, 30px);
  color: #333;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.hero-text {
  display: flex;
  max-width: 90%;
  padding-bottom: clamp(20px, 5vw, 50px);
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.7;
}

/* Hero bild */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 498px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(40px, 8vw, 80px);
  /* responsiv padding */
  text-align: center;
}

.intro-text {
  display: flex;
  max-width: 800px;
  /* begränsar textbredden på stora skärmar */
  width: 90%;
  /* låter texten växa på mindre skärmar */
  padding-bottom: clamp(20px, 5vw, 50px);
  font-size: clamp(18px, 2.5vw, 22px);
  /* responsiv font-size */
  line-height: 1.7;
}

.market p {
  font-size: clamp(16px, 2vw, 18px);
  /* responsiv font-size */
  color: #383838;
}

.feature-item {
  display: flex;
  flex-direction: column;
  background-color: white;
  width: 225px;
  height: 225px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  text-decoration: none;
  border: #f39c12 solid 2px;
  position: relative;
  min-width: 255px;
  max-width: 225px;
  /* Sätt en min-bredd för varje item så att det inte blir för smalt */
  flex: 1 1 200px;
  /* Gör så att varje item växer, krymper, men inte blir mindre än 250px */
}

/* Hover-effekter för feature-item */
.feature-item:hover {
  background-color: #f39c12;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-item:hover .plus-icon {
  color: #fff;
}

.howItWorks-item {
  display: flex;
  background-color: white;
  width: 200px;
  height: 200px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  text-decoration: none;
  position: relative;
  min-width: 300px;
  max-width: 300px;
  /* Sätt en min-bredd för varje item så att det inte blir för smalt */
  flex: 1 1 200px;
  /* Gör så att varje item växer, krymper, men inte blir mindre än 250px */
}

/* Hover-effekter för feature-item */
.howItWorks-item:hover {
  background-color: #f39c12;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.howItWorks-item:hover .arrow-icon {
  color: white;
}

.howItWorks-text h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.howItWorks-text p {
  font-size: 19px;
}

.arrow-icon {
  display: flex;
  width: 50px;
  padding: 10px;
  color: orange;
  transition: color 0.2s;
  justify-content: center;
  align-items: center;
}

.arrow-icon i {
  font-size: 30px;
  animation: 3s beating linear infinite;
}

.promo-container {
  display: flex;
  width: 80;
  justify-content: center;
  align-items: center;
}

.promo-image {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  width: 90%;
}

@keyframes beating {
  0%,
  100% {
    transform: scale(1);
  }

  7% {
    transform: scale(1.08);
  }

  14% {
    transform: scale(0.98);
  }

  21% {
    transform: scale(1.08);
  }

  45% {
    transform: scale(0.98);
  }
}

.benefits-section {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;

  padding: 80px;
}

.benefits-title {
  display: flex;
  margin-bottom: 70px;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1300px;
  /* Justera maxbredd vid behov */
}

.benefit-item {
  width: 80%;
  /* Gör så att varje item fyller sin kolumn */
  height: 300px;
  width: 400px;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  text-align: center;
}

.benefit-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.icon {
  display: flex;
  font-size: 60px;
  color: #f39c12;
  margin-bottom: 10px;
}

.benefit-item h2 {
  display: flex;
  text-align: center;
  font-size: 28px;
  color: #333;
  font-weight: 700;
}

.benefit-item p {
  display: flex;
  font-size: 18px;
  color: #666;
}

.button-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 50px;
  margin-bottom: 40px;
}

.start-free-cta {
  display: flex;
  width: 400px;
  height: 100px;
  margin-top: 15px;
  margin-right: 15px;
  padding: 15px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  background-color: #f39c12;
  color: #fff;
}

/* Sections */
.market {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 80px;
}

.tools {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 80px;
}

.faq {
  display: flex;
  flex-direction: column;
  padding: 80px;
}

.final-cta {
  display: flex;
  flex-direction: column;
  padding: 80px;

  justify-content: center;
  align-items: center;
}

.market {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.howItWorks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1200px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1200px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1400px;
}

.languages {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.languages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1200px;
  /* Justera maxbredd vid behov */
}

.lang-desc {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #383838;
  max-width: 1200px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  /* Dimmed background */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-open {
  overflow: hidden;
}

/* Individual Card Styles */
.card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  height: 200px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  text-decoration: none;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background-color: #fdf1d3;
}

.tool {
  width: 300px;
}

.trust {
  display: flex;
  flex-direction: column;
  background-color: white;
  width: 325px;
  height: 250px;
  padding: 20px;
  color: #f39c12;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, height 0.3s ease;
  border: #f39c12 solid 2px;
  overflow: hidden;
  position: relative;
}

.trust i {
  font-size: 70px;
  padding: 0 0 15px 0;
  transition: color 0.3s ease;
}

.trust-title {
  font-weight: bold;
  font-size: 23px;
}

.search-icon {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #f39c12;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.search-icon i {
  font-size: 20px;
}

.trust:hover .search-icon {
  opacity: 0;
}

.expand-icon {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #f39c12;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.expand-icon i {
  font-size: 20px;
}

.trust:hover .expand-icon {
  opacity: 0;
}
.trust-text {
  opacity: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  max-height: 0;
  font-size: 20px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 30px;
  color: #333;
}

.trust:hover .trust-text {
  opacity: 1;
  max-height: 200px;
}

.trust:hover {
  background-color: #f39c12;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  height: 360px;
}

.lang {
  background-color: #fff0e6;
  width: 250px;
}

.card i {
  font-size: 60px;
  color: #f39c12;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  border-radius: 10px;
}

.card i:hover {
  color: #e68a00;
}

.card p {
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.card .completed-icon {
  font-size: 1.5em;
  color: #2ecc71;
  margin-top: 10px;
}

.image-card {
  display: flex;
  flex-direction: column;

  height: 200px;
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  text-decoration: none;
}

.image-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

.image-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.image-card-text {
  margin-top: 6px;
  border-radius: 10px;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  height: 50px;
}

a {
  display: block;
}

.faq-section {
  padding: 80px 0;
  text-align: center;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #f97316;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-title {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 52px;
}

.faq-answer p {
  color: #6b7280;
  line-height: 1.6;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip p {
  font-size: 21px;
}

.tooltip-text {
  visibility: hidden;
  width: 400px;
  background-color: black;
  color: #fff;
  text-align: center;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 15px;
  background-color: rgb(255, 255, 255);
}

.tooltip:hover .tooltip-text {
  display: flex;
  padding: 40px;
  justify-content: center;
  align-items: center;
  visibility: visible;
  opacity: 1;
  font-size: 20px;
  line-height: 30px;
  color: black;
  border: #f39c12 solid 2px;
}

.tooltip .plus-icon {
  font-size: 40px;
  padding: 15px 0 0 0;
  color: orange;
  transition: color 0.2s;
}

.tooltip:hover .plus-icon {
  color: #fff;
  transition: color 0.2s;
}
#markets-one-row .flex-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  width: 100%;
}

/* Desktop - stor skärm */
@media (min-width: 1600px) {
  .hero-container {
    flex-direction: row;
    gap: 3rem;
  }

  .hero-content {
    width: 50%;
  }

  .hero-image-container {
    width: 50%;
  }

  .hero-image {
    max-width: 600px;
    width: 100%;
  }
}

/* Laptop / mellanstor skärm */
@media (min-width: 1024px) and (max-width: 1599px) {
  .hero-container {
    flex-direction: row;
    gap: 2rem;
  }

  .hero-content {
    width: 55%;
  }

  .hero-image-container {
    width: 45%;
  }

  .hero-image {
    max-width: 500px;
    width: 100%;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero-content,
  .hero-image-container {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    max-width: 400px;
    width: 100%;
  }
}

.getearly {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Mobil */
@media (max-width: 767px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .hero-content,
  .hero-image-container {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    max-width: 300px;
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    gap: 20px;
  }
  #markets-one-row .flex-grid {
    flex-direction: column;
    align-items: center;
  }
}
/* ==== HOW IT WORKS v2 (uppdaterad, utan connector, robust badge) ==== */
.howItWorks-v2 {
  --bg: #fff0e6; /* din beige */
  --card-bg: #fff;
  --card-border: #ffe0c2;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #f39c12;
  --accent-soft: #fff7ec;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  background: var(--bg);
  padding: clamp(48px, 7vw, 96px) 16px;
}

.hiw-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-title {
  font-weight: 800;
  color: #2b2b2b;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  margin: 0; /* säker */
}

/* Grid – en kolumn på mobil, 3 på tablet, 5 på desktop */
.hiw-grid {
  margin: clamp(24px, 4vw, 40px) auto 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr; /* mobil */
  max-width: 1100px;
  list-style: none; /* om du råkar använda <ol> */
  padding-left: 0; /* nollställ */
}

/* Kort – lika storlek & layout */
.hiw-card {
  --badge: 30px; /* badge-diameter – justera vid behov */

  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);

  /* Lyft innehållet lika mycket som badgen sticker in ovanför kortet */
  padding: calc(24px + var(--badge) / 2) 18px 22px;

  text-align: center;
  width: 100%;
  max-width: 360px; /* lite bredare på mobil, ser luftigare ut */
  margin: 0 auto;

  display: flex; /* stabil höjd */
  flex-direction: column;
  align-items: center;

  min-height: 220px; /* gör upplevelsen konsekvent även med 1–2 rads rubriker */
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.hiw-card:hover {
  transform: translateY(-2px);
  background: #fffaf5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.hiw-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-250%, -50%); /* halva badgen ovanför kortet */
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(243, 156, 18, 0.35);
}

/* Ikon */
.hiw-icon {
  margin: 8px auto 8px;
  height: 56px;
  width: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hiw-icon i {
  font-size: 26px;
}

/* Text */
.hiw-heading,
.hiw-text {
  margin: 0;
}
.hiw-heading {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
}
.hiw-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* CTA under stegen */
.hiw-cta {
  display: grid;
  place-items: center;
  margin-top: 48px;
}
.hiw-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
}
.hiw-btn:hover {
  background: #e8920f;
}
.hiw-btn:active {
  transform: translateY(1px);
}

/* Breakpoints */
@media (min-width: 768px) {
  .hiw-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .hiw-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Styling for invite text */
.invite-text {
  font-size: 18px;
  color: #333;
  margin: 0;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.invite-text:first-of-type {
  margin-top: 20px;
}

.invite-text:last-of-type {
  margin-top: 2px;
}
