/* =====================================================
   GLOBAL RESET / SÄKERHET
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

:root {
  --side-padding: 20px;
  --mobile-side-padding: 16px;
  --accent: #1ed760;
  --dark-bg: #0a0e13;
  --card-bg: rgba(17, 22, 32, 0.85);
  --text-primary: #ffffff;
  --text-secondary: #cfd6e4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   PAGE WRAPPER
===================================================== */
.page-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* =====================================================
   CONTAINER
===================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--mobile-side-padding);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--side-padding);
  }
}

/* =====================================================
   HERO SECTION
===================================================== */
section, section.hero{
	margin:0;
}

.hero {
padding-top:50px;
display: flex;
  flex-direction: column;
  justify-content: flex-end;
}



.hero .container{
  display:grid;
  grid-template-columns: 520px minmax(0, 1fr);
  align-items:center;
  gap:80px;
  justify-content:space-between;
}



.hero-content {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.05;
  text-align: center;
  width: 100%;
  letter-spacing:-0.02em;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  display: none; /* Visa endast på större skärmar */
    margin-right:40px;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 26px rgba(30, 215, 96, 0.35);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;       /* ⇐ behövs för shimmer */
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 215, 96, 0.45);
}

/* ✨ shimmer-effekt */
.button-primary.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmerMove 0.8s ease-out forwards;
}

@keyframes shimmerMove {
  from {
    left: -150%;
  }
  to {
    left: 150%;
  }
}

@media (min-width: 768px) {

  .hero .container {
    flex-direction: row;
    text-align: left;
    gap: 40px;
    align-items: center;
  }
  
  

  .hero-content {
    flex: 1.4;
    align-items: flex-start;
	min-width: 0px;
	position:relative;
  z-index:10;
	
	  }

  .hero-content h1,
  .hero-lead {
    text-align: left;
  }

  .hero-image {
    display: block;
    flex: 1;
	min-width:0;
  }

  .button-primary {
    width: auto;
    min-width: 260px;
    padding: 16px 42px;
    font-size: 1.15rem;
    margin: 0;
  }
}

/* =====================================================
   HP CALENDAR
===================================================== */
.hp-calendar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 var(--mobile-side-padding);
  margin-bottom: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hp-calendar {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hp-calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  max-width: 50px;
  flex-shrink: 0;
}

.hp-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.hp-month {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hp-calendar-text {
  flex: 1;
  min-width: 0; /* Allows text to shrink */
  overflow: hidden;
}

.hp-calendar-text strong {
  display: block;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  margin-bottom: 4px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-calendar-text > span {
  display: block;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  color: var(--text-secondary);
  word-wrap: break-word;
  line-height: 1.3;
}


.hp-countdown {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .hp-calendar-wrapper {
    flex-direction: row;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 12px;
    padding: 0 var(--side-padding);
  }

  .hp-calendar {
    flex: 1;
    padding: 20px;
    gap: 16px;
    border-radius: 16px;
  }

  .hp-calendar-date {
    min-width: 70px;
    max-width: 70px;
  }

  .hp-day {
    font-size: 2rem;
  }

  .hp-month {
    font-size: 0.85rem;
  }

  .hp-countdown {
    font-size: 0.85rem;
    margin-top: 8px;
  }
}

/* =====================================================
   CARD GRID (BOX 1-3)
===================================================== */
#cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-column-3 {
  width: 100%;
  max-width: 100%;
  flex: none;
  box-sizing: border-box;
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.85);
  mask-image: linear-gradient(to bottom, black 75%, transparent);
}

.rotate-left
{transform: rotate(-4deg);}

.rotate-right
{transform: rotate(4deg);}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.card-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.card-title {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 800;
  margin: 6px 0 14px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  word-wrap: break-word;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 26px;
  width: 100%;
}

.feature {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  word-wrap: break-word;
}

.feature i {
  margin-top: 2px;
  flex-shrink: 0;
}

.card-body button {
  width: 100%;
  border-radius: 12px;
  padding: 14px;
  background: var(--accent);
  color: #08120a;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  margin-top: auto;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.card-body button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 215, 96, 0.35);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }
  
  .feature {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  #cards {
    flex-direction: row;
    gap: 24px;
    margin-bottom: 64px;
  }

  .gallery-column-3 {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
  }

  .card-image {
    height: 190px;
  }
}

/* =====================================================
   SECTIONS
===================================================== */


.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  text-align: center;
}

.section-intro {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  
  margin:0;
  text-align:left;
}

/* =====================================================
   TABLE (COMPARISON)
===================================================== */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 48px;
}

table.firstpage {
  min-width: 600px;
  width: 100%;
  max-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(26, 29, 37, 0.95);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  margin: 0 auto;
}

table.firstpage th {
  background: rgba(15, 17, 23, 0.98);
  color: var(--accent);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

table.firstpage th:first-child {
  border-radius: 16px 0 0 0;
}

table.firstpage th:last-child {
  border-radius: 0 16px 0 0;
}

table.firstpage td {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.95rem;
  color: #fff;
}

table.firstpage td:first-child {
  text-align: left;
  font-weight: 500;
}

table.firstpage th:not(:first-child),
table.firstpage td:not(:first-child) {
  text-align: center;
}

table.firstpage tbody tr:hover {
  background: rgba(30, 215, 96, 0.08);
}

.fp-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-item i,
.fp-item img {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.fp-icon {
  width: 18px;
  height: 18px;
}

.firstpage i.fa-check {
  color:#1ed760; 
}

.firstpage i.fa-times {
  color:#ff6b6b; 
}

@media (min-width: 768px) {
  .table-scroll {
    margin-bottom: 64px;
  }
}

/* =====================================================
   PRICING
===================================================== */
.pricing-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 48px;
  width: 100%;
  box-sizing: border-box;
}

.plan {
  background: #111;
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.plan.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 215, 96, 0.2), 0 16px 36px rgba(0, 0, 0, 0.6);
}

.badge-pricing {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.plan h2 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  margin: 6px 0;
}

.old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #999;
}

.price {
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
}

.per-year {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 20px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li::before{
  content:none !important;
  display:none !important;
}


.features li{
  list-style:none;
  display:flex;
  gap:12px;
  line-height:1.5;
	margin-top:0;
}

.features .fa-check{
  color:#1ed760;  
}

.features .fa-times{
  color:#ff6b6b;  
}

.button-wrap {
  margin-top: auto;
}

.button-wrap a,
.button-wrap span {
  display: block;
  padding: 14px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 28px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.button-wrap a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 215, 96, 0.35);
}

.button-wrap span.already {
  background: #333;
  color: #999;
}

@media (min-width: 768px) {
  .pricing-container {
    flex-direction: row;
    gap: 24px;
    margin-bottom: 64px;
  }

  .plan {
    flex: 1;
    padding: 28px 24px;
  }

  .features li {
    font-size: 1rem;
  }
}

.features li{
  display:flex;
  gap:8px;
  line-height:1.6;
}

.features li i{
  width:18px;
  text-align:center;
  margin-top:3px;
}

.plan.popular{
  padding:32px 28px;
}

.plan{
  padding:28px 24px;
}

@media(min-width:768px){

  .plan.popular{
     transform:scale(1.04);
  }

}


/* =====================================================
   UTILITIES
===================================================== */
.u-bg-white {
  background: #fff;
}

.u-center {
  text-align: center;
}

.u-radius {
  border-radius: 12px;
}

.u-shadow-hover:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.u-pad {
  padding: 24px;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS SUMMARY
   - Mobile: < 640px
   - Tablet: 640px - 767px
   - Desktop: >= 768px
===================================================== */

/* =====================================================
   TOPLOGO ¨
   ===================================================== */

.toplogo{
  margin-top:42px;

  display:flex;
  flex-direction:column;
  align-items:center;   /* <-- CENTRERAR ALLT */
}


.toplogo img {
  display: block;
  width:220px;
  height: auto;
  margin: 0 auto 10px;
}

.toplogo span {
  font-size: 28px;
    font-weight: 700;
  letter-spacing: 6px;
}





/* =====================================================
   CRITICAL OVERFLOW FIXES
===================================================== */

/* Prevent any element from causing horizontal scroll */
* {
  max-width: 100%;
}

/* Specific overflow prevention for common culprits */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Ensure text doesn't overflow */
p, h1, h2, h3, h4, h5, h6, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Force all direct children of container to respect bounds */
.container > * {
  max-width: 100%;
  box-sizing: border-box;
}



.pricing-main{
  max-width:1100px;
  margin:0 auto;
  padding:72px 16px 96px;
}


.pricing-main h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}


.pricing-main .siteicon {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom:24px;
}

/* Font Awesome-ikon */
.pricing-main .siteicon i{
  font-size: 2.2rem;
  color: #1ed760;
  transform: translateY(-20px); 
  margin-right:6px;
}

.pricing-main .siteicon .badge {
  transform: translateY(-20px); 
  margin-right:6px;
}

/* Bild-ikon – samma höjd, mindre "visuell" högermarginal */
.pricing-main .siteicon img {
  height: 2.2rem;
  width: auto;
  display: block;
  transform: translateY(-20px);    /* din vertikala fix */
  margin-right: -10px;              /* ← dra texten lite närmare */
  filter:
    brightness(1.35)
    saturate(1.25);
}

.pricing-main p.normal {
  max-width: 800px;
  color: #b8bcc6;
  margin-bottom: 24px;
}



/* ================= HERO DEVICES ================= */

.hero-image{
  display:flex;
  justify-content:center;
  align-items:center;
}

.devices{
  position:relative;
  width:100%;
  max-width:640px;

  display:flex;
  justify-content:flex-end;
}


.devices::before{
  content:"";

  position:absolute;
  inset:-80px -120px;
  background:radial-gradient(
    circle at 60% 50%,
    rgba(30,215,96,.22),
    rgba(30,215,96,.06) 35%,
    transparent 70%
  );

  filter:blur(60px);
  z-index:0;
}

.laptop,
.phone{
  position:relative;
  z-index:2;

}



/* ===== LAPTOP ===== */

.laptop::before{

 content:"";
  position:absolute;
  inset:0;
  border-radius:20px;

  background:linear-gradient(
    120deg,
    rgba(255,255,255,.08),
    transparent 40%
  );

  pointer-events:none;
}


.laptop{
  position:relative;
  width:100%;
  max-width:720px;

  border-radius:20px;
  padding:10px;                 /* ← RAM! */

  background:linear-gradient(
    145deg,
    #2b2b2b,
    #0f1115
  );

  box-shadow:
    0 60px 140px rgba(0,0,0,.85),
    0 10px 40px rgba(0,0,0,.6);

  transform-origin:right center;
    transform:perspective(1600px) rotateY(-6deg);
}


.laptop::after{
  content:"";

  position:absolute;
  left:-2%;
  right:-2%;
  bottom:-16px;

  height:14px;

  border-radius:0 0 18px 18px;

  background:linear-gradient(
    to bottom,
    #2a2a2a,
    #0d0d0d
  );

  /* viktiga realism-skuggor */
  box-shadow:
    0 6px 10px rgba(0,0,0,.6),
    0 18px 35px rgba(0,0,0,.55);
}


.laptop img{
  width:100%;
  display:block;
  border-radius:12px;
}


/* ===== PHONE ===== */

.phone{
  position:absolute;

  right:-40px;
  bottom:-30px;

  width:220px;

  background:#000;
  padding:6px;
  border-radius:18px;

  overflow:hidden;   /* ← MAGIN */
  z-index:3;
}


@media (min-width:768px){

  .phone{
    transform:perspective(1400px) rotateY(-12deg) rotateZ(4deg);
  }

}


.phone img{
  width:100%;
  border-radius:10px;
}

/* liten notch */
.phone::before{
  content:"";
  position:absolute;
  top:6px;
  left:50%;
  transform:translateX(-50%);
  
  width:40%;
  height:16px;
  background:#000;
  border-radius:20px;
}

.phone{
  z-index:5;
}

.laptop{
  position:relative;
  z-index:1;
}




@media (max-width: 768px) {
.toplogo {
  margin-top: 50px;
  align-items:center;
  justify-content:center;
}

.toplogo img {
  display: block;
  width:120px;
  height: auto;
  margin: 0 auto 10px;
  text-align: center;
}

  .toplogo span {
    font-size: 16px;
    letter-spacing: 4px;
  }

  
  /* Force viewport width constraint */
  html, body {
    overflow-x: hidden;
  }
  
  /* Force full width on mobile for key containers */
  .hero,
  .hp-calendar-wrapper,
  #cards,
  .pricing-container,
  .table-scroll {
    width: 100%;
  }
  
  /* HP Calendar specific mobile constraint */
  .hp-calendar-wrapper {
    width: calc(100vw - (var(--mobile-side-padding) * 2));
    max-width: calc(100vw - (var(--mobile-side-padding) * 2));
    margin-left: auto;
    margin-right: auto;
	margin-bottom:0;
  }
  
  .hp-calendar {
    width: 100%;
    max-width: 100%;
  }

  
  .container,
  .hp-calendar-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Prevent transform from causing overflow */
  .card:hover {
    transform: translateY(-3px); /* Reduced movement */
  }
  
  .button-primary:hover,
  .button-wrap a:hover,
  .card-body button:hover {
    transform: translateY(-1px); /* Minimal movement */
  }
  
  /* Ensure text doesn't cause overflow */
  .hp-calendar-text strong,
  .hp-calendar-text span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }



.pricing-main h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}


.pricing-main .siteicon i{
  font-size: 1.8rem;
  color: #1ed760;
  transform: translateY(-12px); 
  margin-right:6px;
}

.pricing-main .siteicon .badge {
  transform: translateY(-20px); 
  margin-right:6px;
}

/* Bild-ikon – samma höjd, mindre "visuell" högermarginal */
.pricing-main .siteicon img {
  height: 1.8rem;
  width: auto;
  display: block;
  transform: translateY(-12px);    /* din vertikala fix */
  margin-right: -12px;              /* ← dra texten lite närmare */
  filter:
    brightness(1.55)
    saturate(1.35);
}

.pricing-main p.normal {
  max-width: 800px;
  color: #b8bcc6;
  margin-bottom: 24px;
}

.hero .container{
  grid-template-columns: 1fr;
  gap:40px;
}


.hero-content{
  order:1;
}

.hero-image{
  order:2;
}



/* Gör hero lite luftig */
.hero{
  padding:20px 0 60px;
    height:auto;
  overflow:visible;
}

/* Rubrik */
.hero h1{
  font-size:2.2rem;
  line-height:1.1;
}

/* Brödtext */
.hero-lead{
  font-size:1rem;
}

/* CTA */
.hero .button{
  width:100%;
  max-width:320px;
}

.laptop{
  display:none;
}

.devices{
  transform:none;
}


.devices::before{
  display:none;
}

.hero-image{
  order:-1;
}


.phone{
  position:relative;
  right:auto;
  bottom:auto;

  margin:40px auto 0;

  width:220px;   /* lite mindre än nu */
}

.hero{
  overflow:hidden;
  position:relative;
  isolation:isolate;
}

.hero .container{
  grid-template-columns:1fr;
  gap:32px;
}

.hero-image{
  margin-bottom:24px;
}

.devices{
  transform:none;
  position:relative;
  height:260px; /* ger plats för tiltade telefoner */
  z-index:10;
}


.phone{
  margin:0 auto;
  position:absolute;
  width:170px;
  margin-top:-40px;
  transform:rotate(-4deg);
}

/* Bakre telefon */
.phone-back{
  left:40%;
  transform:translateX(-50%) rotate(6deg);
  z-index:1;
  opacity:.9;
}

/* Främre telefon */
.phone-front{
  left:55%;
  transform:translateX(-50%) rotate(-6deg);
  z-index:2;
  box-shadow:
    0 40px 80px rgba(0,0,0,.6);
}

.phone-light
{background:#0c0c0e;}
.phone-dark
{background:#000;}

}