/* ============================================
   FONT FACES & CSS VARIABLES
   ============================================ */
@font-face {
  font-family: 'Erode-Semibold';
  src: url('./fonts/Erode-Semibold.woff2') format('woff2'),
       url('./fonts/Erode-Semibold.woff') format('woff'),
       url('./fonts/Erode-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Recia-Regular';
  src: url('./fonts/Recia-Regular.woff2') format('woff2'),
       url('./fonts/Recia-Regular.woff') format('woff'),
       url('./fonts/Recia-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

:root {
  /* ============================================
     SPACING SYSTEM - Base unit: 4px
     ============================================ */
  --space-unit: 4px;
  --space-1: calc(var(--space-unit) * 1);    /* 4px */
  --space-2: calc(var(--space-unit) * 2);    /* 8px */
  --space-3: calc(var(--space-unit) * 3);    /* 12px */
  --space-4: calc(var(--space-unit) * 4);    /* 16px */
  --space-5: calc(var(--space-unit) * 5);    /* 20px */
  --space-6: calc(var(--space-unit) * 6);    /* 24px */
  --space-8: calc(var(--space-unit) * 8);    /* 32px */
  --space-10: calc(var(--space-unit) * 10);  /* 40px */
  --space-12: calc(var(--space-unit) * 12);  /* 48px */
  --space-16: calc(var(--space-unit) * 16);  /* 64px */
  --space-20: calc(var(--space-unit) * 20);  /* 80px */

  /* ============================================
     FÄRGER - Primära
     ============================================ */
  --color-background: #DCDAD6;
  --color-card: #e9e8e5;
  --color-heading: black;
  --color-text: #353432;
  --color-cta-primary: #4A9D6B;
  --color-cta-hover: #2d5039;
  --color-success: #7EB995;
  --color-price-badge: #D4B78E;

  /* Sekundära färger */
  --color-accent-purple: #9D89B3;
  --color-accent-terra: #C97D60;

  /* ============================================
     FÄRGNYANSER - För djup och hierarki
     ============================================ */

  /* Background nyanser */
  --color-background-dark: #c9c7c3;
  --color-background-light: #e9e8e5;

  /* Text nyanser */
  --color-text-light: #5a5a58;
  --color-text-lighter: #595957;

  /* Purple accent nyanser */
  --color-accent-purple-text: #6b5a7f;
  --color-accent-terra-text: #944827;

  /* ============================================
     TYPOGRAFI
     ============================================ */
  --font-base: clamp(16px, 3vw, 22px);
  --font-h1: clamp(34px, 10vw, 48px);
  --font-h2: clamp(27px, 7vw, 40px);
  --font-h3: clamp(18px, 5vw, 28px);
  --font-cta: clamp(18px, 5vw, 22px);
  --font-small: clamp(14px, 3vw, 16px);

  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-round: 50%;

  /* ============================================
     SHADOWS
     ============================================ */
  --shadow-sm: 0 2px 4px var(--color-text-10);
  --shadow-md: 0.2rem 0.2rem 5px var(--color-accent-purple);
  --shadow-lg: 0.3rem 0.3rem 0 var(--color-accent-purple);
  --shadow-cta: 0.2rem 0.2rem 0 var(--color-cta-hover);
  --shadow-success: 0.2rem 0.2rem 0 var(--color-success-dark);
  --shadow-modal: 0em -0.3em 0.5em #999494;
  --shadow-active: inset .25rem 0.25rem 5px var(--color-text);
  --shadow-hover: 0.25rem 0.25rem 0.25rem var(--color-background-dark);
  --shadow-inset: inset .15rem 0.15rem 5px var(--color-text-lighter);

  /* ============================================
     TRANSITIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES (Mobile First - 0-767px)
   ============================================ */

/* Reset & Base Typography */

* {
    font-family: "Recia-Regular";
    font-size: var(--font-base);
    line-height: 1.3;
    color: var(--color-text);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0rem var(--space-1);
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: left;
    background-color: var(--color-accent-purple);
    overflow-x: hidden;
    box-shadow: var(--shadow-md);
}

/* Typography */
h1 {
    font-family: 'Erode-Semibold';
    font-size: var(--font-h1);
    line-height: 1.1;
    letter-spacing: -0.02rem;
    color: var(--color-heading);
}

h2 {
  font-size: var(--font-h2);
  font-weight: 300;
  letter-spacing: -0.01rem;
  color: var(--color-accent-purple-text);
}

h3 {
  font-size: var(--font-h3);
  font-weight: 500;
  color: var(--color-heading);
  letter-spacing: -0.005rem;
}

/* Section Layout */
section {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  justify-content: center;
}

.section-wrapper {
    padding:  clamp(10dvh, 15svh, 20svh) clamp(var(--space-2), 3.5vw, var(--space-20)) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

/* ============================================
   HERO SECTION - Mobile
   ============================================ */

.hero-section {
  min-height: clamp(50vh, fit-content, 100svh);
  justify-content: start;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.title {
    justify-content: stretch;
}

/* Mobil - standard layout */
.title h1 {
    display: block;
}

.headline-main,
.headline-sub,
.headline-line {
    display: block;
    font-size: var(--font-h1);
    color: var(--color-heading);
    line-height: 90%;
}

.pipe-separator {
    display: inline; /* Visa pipen på mobil */
    font-size: var(--font-h1);
}

.card {
    padding: var(--space-4) var(--space-2);
    background-color: var(--color-card);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: var(--transition-base);
    max-width: 500px;
    justify-self: center;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.fat {
    font-weight: 600;
}

.hero-img-box {
    margin-left: 0.2em;   /*Compensation for border (box-shadow)*/
    margin-top: clamp(var(--space-2), 3.5vw, var(--space-20));
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: -0.2em -0.2em 0 var(--color-accent-purple);
    display: flex;
    justify-content: center;
    justify-self: center;
}

.hero-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* CTA Elements */
.cta-container {
    margin: var(--space-4) 0 0;
    width: 100%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.cta-text {
  color: var(--color-accent-purple);
  font-size: var(--font-cta);
}

.cta-button {
    padding: var(--space-4) clamp(var(--space-2), 8vw, var(--space-10));
    background-color: var(--color-cta-primary);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    width: clamp(275px, 80vw, 402px);
    box-shadow: var(--shadow-cta);
    color: var(--color-background-light);
    transition: var(--transition-fast);
    height: fit-content;
    font-size: var(--font-cta);
}

.home-cta-button:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-active);
}

.home-cta-button:active {
    transform: translateY(0);
    box-shadow: 0.1rem 0.1rem 0 var(--color-cta-hover);
}

.warning-cta-text {
  color: var(--color-accent-terra-text);
  font-size: var(--font-base);
}

.risk-removal {
    font-size: var(--font-small);
    margin-top: var(--space-4);
}

.social-proof {
    position: relative;
    align-self: center;
    bottom: var(--space-1);
    gap: var(--space-1);
    width: 100%;
    background-color: var(--color-background-dark);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-1);
    margin-bottom: var(--space-8);
}

.social-proof p {
    text-align: center;
    color: var(--color-text);
    font-size: var(--font-small);
    text-align: center;
    border-left: 2px solid var(--color-accent-purple);
}

/* ============================================
   SOLUTION SECTION - Mobile
   ============================================ */
.solution {
  padding-bottom: var(--space-20);
}

.solution-intro {
  margin-bottom: var(--space-20);
  justify-content: center;
  align-content: center;
}

.steps-header {
  text-align: center;
  color: var(--color-accent-purple);
}

#solution .card {
    padding: var(--space-6) var(--space-8);
}

.step-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--space-4);
    align-self: center;
}

.step {
    text-align: left;
    gap: var(--space-4);
    width: 100%;
}

.step-content {
    display: flex;
    gap: var(--space-2);
    width: 100%;
}

.step-number {
  font-weight: 700;
  font-size: var(--font-h3);
  color: var(--color-accent-purple);
}

.step-text {
  font-weight: 500;
  font-size: var(--font-base);
}

.step-text span {
  font-weight: 400;
  font-size: var(--font-small);
  font-style: italic;
  color: var(--color-text-light);
}

/* pH Section */
.ph {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
    max-width: 1000px;
}

/* ============================================
   pH SCALE VISUALIZATION
   ============================================ */

.ph-scale-wrapper {
    display: grid;
    grid-template-rows: repeat(3);
    grid-template-columns: repeat(5);
    gap: var(--space-2);
}

.ph-scale-labels span {
    font-size: var(--font-small);
}

.ph-label-right {
    grid-row: 1;
    grid-column: 6;
    width: fit-content;
    justify-self: right;
}

.ph-label-left {
    grid-row: 1;
    grid-column: 1;
    width: fit-content;
    justify-self: left;
}

.ph-scale-container {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
}

.ph-scale-bar {
    grid-row: 2;
    grid-column: 1/7;
    width: 100%;
    height: 100%;
    min-height: 1.5vh;
    max-height: 1.5vh;
    border-radius: var(--radius-md);
    background: linear-gradient(
        to right,
        #f39c12 0%,      /* Orange/Gul - 5.0 */
        #2ecc71 50%,     /* Grön - 6.0 */
        #3498db 100%     /* Blå - 6.5 */
    );
}

.ph-marker-basil {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-row: 1/3;
    grid-column: 2;
    justify-self: center;
}

.ph-marker-oregano {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-row: 2/4;
    grid-column: 5/7;
    width: fit-content;
    margin-left: var(--space-8);
}

.ph-marker-dot {
    grid-column: 1;
    justify-self: center;
    width: 1.5vh;
    height: 1.5vh;
    background-color: var(--color-heading);
    border-radius: var(--radius-round);
    border: 1px solid var(--color-background-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ph-marker-label {
    grid-column: 2;
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--color-heading);
    text-align: center;
    line-height: 1.2;
    background-color: var(--color-background-light);
    padding: var(--space-1) var(--space-2);
    margin-bottom: var(--space-1);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    height: fit-content;
    border: 1px solid var(--color-text);
}

.ph-marker-oregano .ph-marker-label {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
    margin-top: var(--space-1);
}

.ph-marker-oregano.ph-marker-dot {
    grid-column: 1;
    grid-row: 1;
}

.ph-intro-text {
    color: var(--color-text);
    line-height: 1.5;
    text-align: left;
    margin: 0 var(--space-4);
}

.two-columns {
    display: contents;
}

/* Replace the existing .comparison styles in style.css */

.comparison {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-self: center;
    text-align: left;
    max-width: 500px;
    border: 2px solid var(--color-background-dark);
    background-color: var(--color-background-light);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-1);
    gap: var(--space-1);
}

.comparison h2 {
    grid-column: 1/4;
    grid-row: 1;
    justify-self: center;
    margin-bottom: var(--space-4);
}

.column {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
}

/* First column - Aspect labels */
.column:nth-child(2) {
    font-weight: 500;
    color: var(--color-text);
}

/* Second column - Kranvatten (neutral) */
.column:nth-child(3) {
    background-color: var(--color-background);
    border: 1px solid var(--color-background-dark);
}

/* Third column - Systemet (positive/green) */
.column:nth-child(4) {
    background-color: rgba(126, 185, 149, 0.15); /* Subtle green tint */
    border: 2px solid var(--color-success);
}

.column span {
    display: flex;
    align-items: center;
    min-height: 2em;
    padding: var(--space-1) 0;
    line-height: 1.3;
    white-space: nowrap;
}

/* Table headers */
.table-header {
    font-weight: 600;
    font-size: var(--font-h3);
    color: var(--color-heading);
    border-bottom: 2px solid var(--color-background-dark);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-1);
}

/* Special styling for Systemet header */
.column:nth-child(4) .table-header,
.column:nth-child(4) h3 {
    color: var(--color-cta-primary);
}

/* Add subtle separators between rows */
.column span:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.long-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: left;
    margin: 0 var(--space-4);
}

/* ============================================
   FEATURES SECTION - Mobile
   ============================================ */
.features-section {
    background-color: var(--color-background);
}

.features-section .section-wrapper {
    padding-bottom: var(--space-20);
}

#features .card {
    padding: var(--space-4) var(--space-4);
}

.competitors {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

#features span {
    white-space: nowrap;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-column {
    display: contents; /* Makes children behave as if column doesn't exist on mobile */
}

.feature-card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    cursor: pointer;
    overflow: hidden;
    height: fit-content;
    width: 100%;
    max-width: 450px;
    justify-self: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question.feature-question {
    background-color: transparent;
    border: none;
    padding: 0;
}

.faq-question.feature-question h3 {
    color: var(--color-text);
}

.faq-question.feature-question:hover {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.feature-card.active .feature-content {
    background-color: var(--color-background);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    max-height: 500px;
}

.feature-card.active .faq-question.feature-question {
    margin-bottom: var(--space-4);
}

.category-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding-right: 1px;
    background-color: var(--color-text);
    color: var(--color-background);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) ease-out, margin-top var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-card.active .category-icon {
    transform: rotate(45deg);
}

.herbutler {
    margin-top: var(--space-4);
}

.feature-description {
    line-height: 1.5;
    text-align: left;
}

.feature-description span {
    white-space: nowrap;
    font-size: inherit;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.benefit-item {
    color: var(--color-text-light);
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.4;
    text-align: left;
    padding-left: var(--space-2);
}

/* ============================================
   FAQ SECTION - Mobile
   ============================================ */
.faq-section .section-wrapper {
  padding-bottom: var(--space-20);
}

.faq-card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-width: 670px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
}

/* FAQ Category Header */
.faq-category-header {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

/* Dölj kategorierna som default */
.faq-category {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Visa kategori när faq-card är aktiv */
.faq-card.active .faq-category {
    max-height: 5000px; /* Tillräckligt högt för att visa allt innehåll */
}

/* Rotera ikonen när kategori är öppen */
.faq-card.active .category-icon {
    transform: rotate(45deg);
}

.faq-item {
    color: var(--color-background-dark);
    margin: var(--space-2);
}

.faq-question {
    width: 100%;
    padding: var(--space-2) var(--space-5);
    border: none;
    border-bottom: 2px solid #9D89B3;
    border-radius: var(--radius-lg);
    background-color: var(--color-background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    transition: all var(--transition-fast);
    gap: var(--space-3);
}

/* Hover state - lila border */
.faq-question:hover {
    border-radius: var(--radius-lg);
    background-color: var(--color-background-dark);
    box-shadow: var(--shadow-hover);
    border-right: 0;
}

/* Active state - mörkare bakgrund och shadow till höger */
.faq-item.active .faq-question {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--color-background-dark);
}

.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    font-weight: 300;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Svar - dolt som default */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) ease-out, 
                padding var(--transition-base) ease-out;
}

/* Svar när det visas - lila border i botten och shadow till höger och nedåt */
.faq-answer.show {
  max-height: 500px;
  padding: clamp(var(--space-2), 3vw, var(--space-4)) clamp(var(--space-3), 3.5vw, var(--space-5));
  background-color: var(--color-background);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-bottom: 2px solid var(--color-accent-purple);
  border-top: 2px solid var(--color-background-dark);
  box-shadow: var(--shadow-hover);
}

.faq-answer p {
  color: var(--color-text-light);
  font-weight: 400;
}

.included {
  display: flex;
  text-align: left;
  align-self: flex-start;
  font-size: var(--font-base);
}

.sign-up-modal {
  position: fixed;
  bottom: -100%;
  left: var(--space-1);
  background-color: var(--color-background);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: var(--space-1) solid var(--color-accent-purple);
  max-height: 80vh;
  min-height: 50vh;
  height: auto;
  width: calc(100vw - var(--space-2));
  z-index: 1000;
  transition: bottom var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-modal);
  padding: 0;
  overflow: hidden;
}

.sign-up-modal.active {
  bottom: 0;
}

.sign-up-modal form.hidden {
    display: none;
}

.modal-content-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto; /* Scrollbar här */
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  
  /* Smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth på iOS */
}

/* Snyggare scrollbar */
.modal-content-wrapper::-webkit-scrollbar {
  width: var(--space-2);
  margin-top: 10px;
}

.modal-content-wrapper::-webkit-scrollbar-track {
  background: var(--color-background-dark);
  border-radius: var(--radius-md);
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-accent-purple);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-background-light);
}

.modal-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--color-heading);
}

.sign-up-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.body-modal {
  background-color: var(--color-background-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 90vw;
}

.body-modal p {
  padding: var(--space-2) var(--space-4);
}

.sign-up-modal h2 {
    font-weight: bold;
    color: var(--color-text);
    margin: var(--space-8) 0 var(--space-2);
    text-align: center;
}

.bullet-benefits {
  width: 90vw;
  text-align: left;
  padding: var(--space-2) var(--space-1);
  line-height: 1.5rem;
}

.CTA {
  font-size: 16px;
  width: 100%;
  text-align: left;
}

.sign-up-modal-footer {
  text-align: center;
  line-height: 1.1rem;
  font-size: var(--font-small);
  margin-top: var(--space-6);
}

.close-modal {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background-color: var(--color-text);
    color: var(--color-background);
    font-size: 24px;
    font-weight: bold;
    border-radius: var(--radius-round);
    border: none;
    cursor: pointer;
    width: 30px;
    aspect-ratio: 1;
    padding: 0;
    display: grid;
    place-items: center;
    transition: var(--transition-fast);
}

.close-modal:hover {
    background-color: var(--color-heading);
    transform: rotate(90deg);
}

.close-modal svg {
    fill: var(--color-accent-purple);
    height: 1.5em;
    width: 1.05em;
}

.email-input-wrapper img {
    fill: var(--color-background);
    height: 1.5em;
    width: 1.5em;
}

.email-input-wrapper {
    display: flex;
    background-color: white;
    border: solid 3px var(--color-accent-purple);
    border-radius: var(--radius-md);
    box-shadow: inset 5px 5px 5px #DCDAD6;
    width: 90vw;
    height: fit-content;
    margin-top: var(--space-4);
    transition: var(--transition-fast);
}

.email-input-wrapper:focus-within {
    border-color: var(--color-cta-hover);
}

.email-input-wrapper input:focus {
    outline: none;
}

.email-input-wrapper input {
    background-color: transparent;
    font-size: 18px;
    font-weight: 300;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 1.5em;
    margin: var(--space-2);
}

.submit-modal-button {
    background-color: var(--color-cta-primary);
    color: var(--color-card);
    box-shadow: var(--shadow-cta);
    font-size: 24px;
    font-weight: bold;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    height: 50px;
    width: 100%;
    margin: 0 0 var(--space-1);
    display: grid;
    place-items: center;
    transition: var(--transition-fast);
}

.submit-modal-button:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-active);
}

.submit-modal-button:active {
    transform: translateY(0);
}

.email-input-wrapper img {
  padding: var(--space-1);
  object-fit: contain;
  display: block;
  width: 1.4em;
}

.consent {
  padding: var(--space-2) var(--space-12) var(--space-4) var(--space-1);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 90vw;
}

.consent p {
  font-size: 16px;
}

.consent input[type="checkbox"] {
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: var(--space-8);
}

.thank-you-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding-bottom: var(--space-16);
}

.thank-you-content.active {
  display: flex;
}

.qualification-intro {
  margin-top: var(--space-4);
}

.qualification-intro h2 {
  margin: var(--space-8) 0 var(--space-1);
}

.qualification-benefit {
    font-size: var(--font-small);
}

.qualification-choice {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-4) var(--space-4) var(--space-6);
}

.qualification-yes {
    background-color: var(--color-cta-primary);
    color: var(--color-background-light);
    box-shadow: var(--shadow-cta);
    border-radius: var(--radius-lg);
    border-color: var(--color-heading);
    padding: var(--space-1) var(--space-4);
    max-height: 4rem;
}

.qualification-yes:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
}

.qualification-no {
    background-color: transparent;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    padding: var(--space-1) var(--space-4);
    max-height: 4rem;
}

.qualification-no:hover {
    background-color: var(--color-background-dark);
}

.qualification-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.question-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: left;
}

.question-group label {
    font-weight: 600;
}

.question-label {
    display: block;
    margin-bottom: var(--space-2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.radio-option {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background-color: white;
    border: 2px solid var(--color-accent-purple);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-option:hover {
    background-color: var(--color-background-light);
    border-color: var(--color-heading);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-3);
    cursor: pointer;
    accent-color: var(--color-cta-primary);
}

.radio-option span {
    flex: 1;
    font-size: var(--font-base);
    line-height: 1.3;
}

.radio-option:has(input:checked) {
    background-color: var(--color-success-10);
    border-color: var(--color-cta-primary);
    border-width: 3px;
}

.submit-qualification {
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-cta-primary);
    color: var(--color-background-light);
    border: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-cta);
    transition: var(--transition-fast);
    margin-top: var(--space-2);
}

.submit-qualification:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
}

.qualification-final {
    margin-top: var(--space-6);
}

.small-text {
    font-size: var(--font-small);
    color: var(--color-text-light);
    margin-top: var(--space-2);
}

/* ============================================
   NAVIGATION - Mobile
   ============================================ */
.hamburger-menu {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: #9D89B3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 1001;
    padding: 0;
    box-shadow: var(--shadow-hover);
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:active {
    transform: scale(0.95);
}

/* Meny */
.menu {
    position: fixed;
    top: 80px;
    right: 1rem;
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all var(--transition-base);
    overflow: hidden;
    min-width: 160px;
}

.menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.menu-item {
    padding: var(--space-4) var(--space-5);
    text-decoration: none;
    color: var(--color-text);
    background-color: transparent;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--color-background);
    font-weight: 500;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: var(--color-background);
    color: var(--color-heading);
}

.menu-item:active {
    background-color: var(--color-background-dark);
}

/* Hamburger X-animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.final {
  background: #DCDAD6;
  background: linear-gradient(180deg,rgba(220, 218, 214, 1) 60%, var(--color-accent-purple) 100%);
  margin: 0 var(--space-3);
  width: 100%;
}

/* ============================================
   FINAL CTA - Mobile
   ============================================ */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-4);
}

.final-cta span {
    white-space: nowrap;
    font-size: inherit;
    color: inherit;
}

.final-cta-container {
  padding: var(--space-8) var(--space-4) var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================
   SPECIAL MOBILE ADJUSTMENTS
   ============================================ */
@media screen and (max-width: 450px) {
  #solution .card {
    padding: var(--space-4) var(--space-6);
  }
}

/* ============================================
   TABLET (768px - 1023px)
   ============================================ */

@media screen and (min-width: 768px) {
    .section-wrapper {
        padding: clamp(10dvh, 15svh, 20svh) clamp(var(--space-8), 5vw, var(--space-20)) 0;
    }
    
    /* Hero Section - Tablet */
    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap:  var(--space-8);
    }
    
    /* Vänster kolumn: Titel */
    .title {
        grid-column: 1;
        grid-row: 1;
        align-self: flex-end;
        justify-self: flex-end;
    }

    .title h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .headline-main {
        white-space: nowrap; /* Håller "ALDRIG MER" på en rad */
        font-size: 40px;
        line-height: 90%;
    }
    
    .headline-line {
        display: block;
        line-height: 90%;
        white-space: nowrap;
        font-size: 36px;
    }

    .pipe-separator {
        font-size: 36px;
    }
    
    /* Vänster kolumn: Bild */
    .hero-img-box {
        grid-column: 1;
        grid-row: 2;
        justify-self: flex-end;
        align-self: flex-start;
        margin-top: 0;
        max-height: 250px;
        width: 100%;
        max-width: 300px;
    }

    .hero-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Höger kolumn: Card */
    .hero-content .card {
        grid-column: 2;
        grid-row: 1/3;
        align-self: flex-start;
        justify-self: center;
        min-width: 415px;
        max-width: 470px;
        max-height: 280px;
    }

    .card h3 {
        font-size: clamp(25px, 2.8vw, 28px);
    }

    .card p {
        font-size: clamp(14px, 2.5vw, 24px);;
    }

    .fat {
        font-size: 25px;
    }
    
    /* Höger kolumn: CTA */
    .cta-container {
        grid-column: 2;
        grid-row: 2;
        align-self: flex-end;
        margin-top: 13vw;
    }

    .cta-button {
        padding: var(--space-4) clamp(var(--space-2), 1.1vw, var(--space-20));
        width: 350px;
    }

    .warning-cta-text {
        font-size: clamp(16px, 1.5vw, 18px);
    }

    #solution .card {
        padding: var(--space-4) var(--space-2);
        max-width: 700px;
    }

    .step-container {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
        align-items: stretch;
    }
    
    .step {
        display: flex;
        justify-content: center;
    }
    
    .step-content {
        width: 100%;
        max-width: none;
    }

    .two-columns {
        display: grid;
        grid-template-rows: 2;
        gap: var(--space-4);
    }

    .comparison {
        padding:  var(--space-4) var(--space-2);
    }

    .column {
       padding: var(--space-2); 
    }

    .long-text {
        grid-column: 2;
        margin: var(--space-4) 0;
        align-self: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .feature-column {
        display: flex;
        flex-direction: column;
        gap: var(--space-6);

    }

    .feature-column:first-child {
        justify-self: end;
    }

    .feature-card {
        padding: var(--space-4);
        max-width: 450px;
    }

    .feature-card h3 {
        white-space: nowrap;
    }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media screen and (min-width: 1024px) {
    /* Section Layout */
    .section-wrapper {
        padding: clamp(2.5dvh, 5svh, 10svh) clamp(var(--space-8), 5vw, var(--space-20)) 0;
    }

    /* Hero Section - Desktop */
    .title {
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: flex-end;
        justify-self: center;
    }

    .title h1 {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--space-4);
    }
        
    .headline-main {
        white-space: nowrap; /* Håller "ALDRIG MER" på en rad */
        font-size: 52px;
    }
    
    .headline-sub {
        display: flex;
        flex-direction: column;
    }
    
    .headline-line {
        display: block;
        line-height: 90%;
        font-size: 48px;
    }

    .pipe-separator {
        display: none;
    }

    .hero-content {
        grid-template-columns: 0.9fr 1fr;
        gap: var(--space-20);
    }

    /* Höger kolumn: Bild */
    .hero-img-box {
        grid-column: 1;
        grid-row: 2/4;
        height: 380px;
        max-height: fit-content;
        max-width: 450px;
    }
    
    .card {
        max-width: 1000px;
    }

    /* Höger kolumn: Card */
    .hero-content .card {
        grid-column: 2;
        grid-row: 2;
        justify-self: left;
        max-width: 470px;
        margin-bottom: 0;
    }

    .cta-container {
        grid-column: 2;
        grid-row: 3;
        justify-self: left;
        width: fit-content;
        margin-left: 60px;
        margin-top: 0;
        padding: 0;
    }

    .features-grid {
        gap: var(--space-8);
    }
    
    /* Ta bort min-height här också */
    .feature-card {
        min-height: auto;
    }
}

@media screen and (max-height: 1024px) {
    .hamburger-menu {
        width: 40px;
        height: 40px;
    }

    .hamburger-menu span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .section-wrapper {
        padding-top: clamp(10dvh, 12svh, 15svh);
    }

    .social-proof {
        margin-bottom: var(--space-3);
    }

    .hero-content {
        gap: var(--space-4);
    }

    #home .card {
        margin-bottom: 0;
    }
}

/* ============================================
   COMPACT HEIGHT DEVICES
   ============================================ */
@media screen and (max-height: 700px) {
  /* Reduce vertical spacing for compact screens */
  .hamburger-menu {
    width: 40px;
    height: 40px;
  }

  .hamburger-menu span {
    width: 24px;
    height: 3px;
  }

  .section-wrapper {
    padding-top: clamp(10dvh, 12svh, 15svh);
  }

  .social-proof {
    margin-bottom: var(--space-3);
  }

  .hero-content {
    gap: var(--space-4);
  }

  #home .card {
    margin-bottom: 0;
  }

  .cta-container {
    margin-top: 0;
  }
}

/* ============================================
   EDGE CASE: Tablet in landscape mode
   ============================================ */
@media screen and (min-width: 768px) and (max-height: 600px) {
  #home .card {
    margin-bottom: 200px;
  }

  .cta-container {
    align-self: flex-end;
  }

  .hero-content {
    gap: var(--space-8);
  }
}