/* style.css (mobile-first <780px) */

/* ---------- Base ---------- */
:root{
  --bg: #ffffff;
  /* --bg-alt: #3f84ff14; */
  --bg-alt: linear-gradient(180deg, #3f84ff14, #f9fafb);
  --text: #0b1220;
  --muted: #5b667a;

  --logo-width: 150px;        /* toplogo mobil */
  
  --store-badge-width: 160px; /* app/google */

  --border: #b3c2e0;
  --border2: #b3c2e0;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);

  --primary: #3f84ff;     /* AidPoint blue-ish */
  --primary-dark: #2563eb;
  --accent: #6fd36a;      /* AidPoint green-ish */

  --radius: 16px;
  --radius-lg: 22px;

  --container: 1100px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

html, body{
  overflow-x: hidden;
  overflow-y: visible;
}


img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 14px 0; }
ul{ margin: 0; padding-left: 18px; }

.tightText p{ margin: 0 0 6px 0 !important; }


/* ---------- Layout helpers ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.section{
  padding: 20px 0;
}

.section2{
  padding: 0px 0;
  margin-bottom: 25px;
}

.section--alt{
  background: var(--bg-alt);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Logo: width in px, height auto */
.brand__logo{
  width: var(--logo-width);
  height: auto;
  max-width: 70vw;
}

.aidpoint-icon{
  max-height: 100%;
  width: auto;
  display: block;
  
}



/* ---------- Typography ---------- */
h1{
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0; /* x,x,down,x */
}

h2{
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px 0;
}

.lead{
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.note{
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}



/* ---------- Topbar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid #ccc;
}

/* Valfritt: bara om du vill behålla blur när det funkar */
@supports (backdrop-filter: blur(10px)){
  .topbar{
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.88);
    margin-bottom: 0px;
  }
}

.topbar__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 10px;
    
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* countryflags */

.lang{
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
  margin-top: 15px;
}

.lang__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 120ms ease, border-color 120ms ease;
}

.lang__btn:hover{ transform: translateY(-1px); }
.lang__btn.is-active{ border-color: rgba(63,132,255,0.55); }

/* ---------- Hero ---------- */
.hero{
  padding: 34px 0 28px 0;
}

.hero__grid{
  display: grid;
  gap: 16px;
}

.bullets{
  margin: 0 0 18px 0;
  color: var(--text);
}

.bullets li{
  margin: 5px 0;
  color: var(--text);
}

.cta{
  margin-top: 14px;
}

.cta__row{
  display: grid;
  gap: 10px;
}

.cta__note{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.cta__note2{
  margin-top: 0px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.cta__note3{
  margin-top: 5px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  user-select: none;
}

.btn:hover{ transform: translateY(-1px); }

.btn--primary{
  background: var(--primary);
  border-color: rgba(63,132,255,0.55);
  color: #fff;
}

.btn--primary:hover{ background: var(--primary-dark); }

.btn--secondary{
  background: #fff;
  color: var(--text);
}

.btn--block{ width: 100%; }

/* ---------- Right-side hero card ---------- */
.hero__card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero__cardTitle{
  font-weight: 800;
  margin-bottom: 0px;
}

/* download text */
.hero__cardTitle2{
  font-weight: 800;
  margin-bottom: 0px;
}

/* Store badges: width in px, height auto */

.storeBadges{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.storeBadge{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 5px;
  background: #fff;
}

.storeBadge__img{
  width: var(--store-badge-width);
  height: auto;
  display: block;
}

.badge{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  text-align: center;
  font-weight: 700;
  background: #fff;
}
/* innan jag lade bild i mitten
.mockBox{
  height: 100px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.20);
  background: linear-gradient(180deg, #3f84ff14, #f9fafb);
}
*/ 

/* med bilden i mitten */
.mockBox{
  height: 100px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.20);
  background: linear-gradient(180deg, #3f84ff14, #f9fafb); 

  display: flex;
  align-items: center;      /* vertikalt */
  justify-content: center;  /* horisontellt */
}

/* ---------- Cards ---------- */
.cards{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.card{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}

.card__title{
  font-weight: 900;
  margin-bottom: 8px;
}

.card__text{
  color: var(--muted);
  margin-bottom: 10px;
}

.card, .card__text { overflow-wrap: anywhere; word-break: break-word; } /* long words keeps within card */


.miniBullets{
  margin: 0 0 12px 0;
  padding-left: 18px;
}

.miniBullets li{
  margin: 6px 0;
  color: var(--text);
}

.card--featured{
  border-color: rgba(63,132,255,0.45);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.12);
}

/* ---------- Icon grid (optional section) ---------- */
.iconGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.iconTile{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.iconTile img{
  width: 44px;
  height: 44px;
}

.iconTile__title{
  font-weight: 900;
  margin: 0;
}

.iconTile__desc{
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.faq__item{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.faq__item summary{
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq__item summary::-webkit-details-marker{ display: none; }

.faq__answer{
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer{
  padding: 28px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.footer__grid{
  /* display: grid; */
  gap: 20px;
}

.footer__title{
  font-weight: 900;
  margin: 0 0 8px 0;
}

.footer__links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__links a{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Glassmorphism-knappar */
/* Glassmorphism-knappar */
.btn {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  color: #fff;

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Blå knapp */
.btn--primary {
  background: rgba(63, 132, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* Grön knapp */
.btn--secondary {
  background: rgba(255, 255, 255); /* 122, 211, 107, 0.75 */
  border: 1px solid rgba(122, 211, 107);
  color: #000;
}

.btn--primary:hover {
  background: rgba(63, 132, 255, 0.75); /* 37, 99, 235, 0.85 */
}

.btn--secondary:hover {
  background: rgba(255, 255, 255); /* 122, 211, 107, 0.9 */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* ---------- Responsive ---------- */
/* ---------- Responsive ---------- */
/* ---------- Responsive ---------- */
/* ---------- Responsive ---------- */
/* ---------- Responsive ---------- */
/* ---------- Responsive ---------- */

/* Desktop >780px */
@media (min-width: 780px){

:root{ --logo-width: 175px; } /* DESKTOP */

 /* ---------- Hero ---------- */
.hero{
  padding: 60px 0 28px 0;
}
 
 .tightText p{ margin: 0 0 2px 0 !important; }
 
  h1{ font-size: 40px; }
  .lead{ font-size: 17px; }

  .hero__grid{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 18px;
  }

  .cta__row{
    grid-template-columns: 1fr 1fr;
  }

  .cards--3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .iconGrid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .iconTile{
    grid-template-columns: 52px 1fr;
  }

  .iconTile img{
    width: 52px;
    height: 52px;
  }

  .mockBox{
    height: 155px;
  }

/* countryflags */
.lang{
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 20px;
}

.lang__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 120ms ease, border-color 120ms ease;
}

}

/* Small devices tweaks */
/* Small devices tweaks */
/* Small devices tweaks */
/* Small devices tweaks */
/* Small devices tweaks */

@media (max-width: 320px){
  h1{ font-size: 16px; }
  :root{ --logo-width: 80px; }
  .brand__logo{ height: auto; }
}

