/* ============================================
   RESET OG GRUNNLEGGENDE STYLING
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farger basert på logo og app */
    --dark-blue: #000923; /* Mørkeblå bakgrunn - eksakt farge som ønsket */
    --teal: #00BFA5; /* Turkis farge fra app (primary) */
    --white: #ffffff;
    
    /* Typografi-system - hvit-basert */
    --text-primary: rgba(255, 255, 255, 0.94); /* Standard brødtekst */
    --text-secondary: rgba(255, 255, 255, 0.72); /* Sekundærtekst */
    --text-muted: rgba(255, 255, 255, 0.60); /* Diskré tekst */
    --accent: var(--teal); /* Aksent-farge for overskrifter, lenker hover */
    
    /* Legacy support (beholdes for intro/animasjon) */
    --text-light: #e0e0e0;
    --text-gray: #8C95A6;
    
    /* Animasjonsvarigheter */
    --animation-duration: 2.5s;
    --fade-duration: 1s; /* Tydeligere fade - kortere varighet */
}

html, body {
    background: var(--dark-blue);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Forhindrer horisontal scrolling */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
}

/* ============================================
   LOGO ANIMASJON
   ============================================ */

.logo-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--fade-duration) ease-out;
    padding-top: 15vh; /* Flytt lengre ned på skjermen */
}

.logo-animation.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fade-duration) ease-out; /* Tydeligere fade */
}

.logo-container {
    position: relative;
    width: 468.75px; /* 25% større: 375px * 1.25 = 468.75px */
    height: 468.75px; /* 25% større: 375px * 1.25 = 468.75px */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px; /* Bare en liten avstand - en linje over teksten */
    margin-top: 0; /* Ingen margin på toppen */
    overflow: visible; /* La logoene og lys-effekten være synlige når de møtes */
    background: transparent; /* Ingen bakgrunn */
    border: none; /* Ingen border */
}

/* Lyspuls er fjernet */


/* Hver halvdel har hele logoen, men viser bare sin del */
.logo-half {
    position: absolute;
    width: 234.375px; /* Halvparten av logoen: 468.75px / 2 = 234.375px */
    height: 468.75px; /* Full høyde av logoen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Viktig: Skjuler delen av bildet som skal være skjult */
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* Ingen bakgrunn */
    border: none; /* Ingen border */
    outline: none; /* Ingen outline */
}

.logo-brain {
    /* Høyre halvdel (hjernen) - står samlet i midten */
    left: 50%;
    transform: translateX(0) translateY(-50%); /* Står i midten - ingen animasjon */
}

.logo-apple {
    /* Venstre halvdel (eplet) - står samlet i midten */
    right: 50%;
    transform: translateX(0) translateY(-50%); /* Står i midten - ingen animasjon */
}

.logo-half img {
    width: 468.75px; /* Hele logoen - 468.75px */
    height: 468.75px;
    object-fit: contain;
    display: block;
    position: absolute;
    background: transparent; /* Ingen bakgrunn på bildet */
    border: none; /* Ingen border */
    outline: none; /* Ingen outline */
    /* Transparent bilde - drop-shadow vil følge bildets form (alpha-kanalen) */
    /* Filter (drop-shadow) legges på bildet, ikke containeren, så det ikke klippes av clip-path */
}

/* Posisjoner bildene slik at riktig halvdel vises */
.logo-brain img {
    left: -234.375px; /* Flytt bildet til venstre slik at høyre halvdel (hjernen) er synlig */
}

.logo-apple img {
    left: 0; /* Venstre halvdel (eplet) er allerede på riktig plass */
}




/* Logo-animasjoner er fjernet - logoene står samlet i midten uten bevegelse */



/* Typewriter-tekst container */
.logo-text-container {
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Ingen margin på toppen - logoen er rett over */
}

.typewriter-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--teal); /* Samme teal-farge som på resten av nettsiden */
    letter-spacing: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--teal);
    animation: blinkCursor 0.8s step-end infinite;
    /* Blokkbokstaver - samme stil som resten av nettsiden */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    /* Ingen text-transform - behold riktig kapitalisering: MakroMind */
    /* Skygge for bedre lesbarhet */
    text-shadow: 0 2px 8px rgba(0, 191, 165, 0.3), 0 4px 16px rgba(0, 191, 165, 0.2);
    margin-bottom: 0;
}

.typewriter-text.complete {
    border-right: none;
}

/* Byline tekst - "by Reppefanten AS" i løkkeskrift */
.byline-text {
    font-size: 2rem; /* Halvparten av MakroMind-størrelsen */
    font-weight: 400;
    font-family: 'Dancing Script', 'Kalam', cursive; /* Løkkeskrift/håndskrift */
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.byline-text.show {
    opacity: 1;
}

@keyframes blinkCursor {
    0%, 50% {
        border-color: var(--teal);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ============================================
   HOVEDINNHOLD (SKJULES FØRST)
   ============================================ */

.main-content {
    opacity: 1;
    transition: opacity 1s ease-in; /* Tydeligere fade - kortere varighet */
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   HEADER OG NAVIGASJON
   ============================================ */

.header {
    background-color: rgba(0, 9, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 191, 165, 0.2);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* ============================================
   HERO SEKSJON
   ============================================ */

/* Hero - 100% isolert med clip-path for diagonal bunn */
.hero {
    position: relative;
    padding: 8rem 2rem 12rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Klipp bakgrunn, men innhold kan være synlig via clip-path */
    background-color: var(--dark-blue);
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    
    /* Diagonal bunnkant via clip-path - ren løsning uten overlap */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 200px), 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 200px), 0 100%);
}

/* Gradient - strengt klippet til hero-området */
.hero-gradient-bg {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
        135deg,
        rgba(0, 191, 165, 0.6) 0%,
        rgba(156, 39, 176, 0.6) 25%,
        rgba(0, 191, 165, 0.7) 50%,
        rgba(156, 39, 176, 0.5) 75%,
        rgba(0, 191, 165, 0.4) 100%
    );
    background-size: 200% 200%;
    animation: auroraMove 25s ease-in-out infinite;
    transform: rotate(-35deg);
    z-index: 0; /* Under alt innhold */
    pointer-events: none;
    will-change: transform, background-position;
    
    /* Gradienten arver hero sin clip-path automatisk, men vi sikrer at den ikke stikker ut */
    /* Hero sin overflow: hidden og clip-path håndterer dette */
}

/* Animasjon for nordlys-effekten */
@keyframes auroraMove {
    0% {
        background-position: 0% 0%;
        transform: rotate(-35deg);
    }
    50% {
        background-position: 100% 100%;
        transform: rotate(-33deg);
    }
    100% {
        background-position: 0% 0%;
        transform: rotate(-35deg);
    }
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2; /* Over gradient */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    overflow: visible; /* Tillat at bildet er synlig utenfor grid */
}

.hero-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2; /* Over diagonal bunnkant og gradient */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

/* Hero CTA (Call To Action) */
.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-coming-soon {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    pointer-events: none;
}

.cta-download {
    background-color: var(--teal);
    color: var(--dark-blue);
    border: 2px solid var(--teal);
}

.cta-download:hover {
    background-color: rgba(0, 191, 165, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.3);
}

/* Mobil-mockup for app-bildet */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3; /* Over diagonal bunnkant, innhold og gradient */
}

/* ============================================
   iPhone 17 Mockup (Premium Design)
   ============================================ */

/* ============================================
   Device Mockup (iPhone 17)
   ============================================ */

.iphone-mockup {
    position: relative;
    width: clamp(211px, 22.68vw, 292px); /* 10% mindre: 234*0.9=211, 25.2vw*0.9=22.68vw, 324*0.9=292 */
    aspect-ratio: 9 / 19.5;
    border-radius: 48px;
    background: #000;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    z-index: 3; /* Over diagonal bunnkant og gradient */
}

.iphone-screen {
    position: absolute;
    inset: 6px;
    border-radius: 42px;
    overflow: hidden;
    background: #000;
}

/* SELVE APP-BILDET */
.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* STATUS BAR OVERLAY FJERNET - ingen mørk vignette øverst */
/* DYNAMIC ISLAND FJERNET - for å unngå at den dekker app-innhold */


.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    grid-column: 1 / -1; /* Spenner over begge kolonner */
}

.feature-card {
    background: rgba(0, 191, 165, 0.1);
    border: 1px solid rgba(0, 191, 165, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   INFO SEKSJON
   ============================================ */

/* 
   LAYOUT-SKJELETT (rekkefølge på seksjoner):
   
   1. Hero (H1 + sub + CTA + telefonmockup + animert nordlys-bakgrunn)
      - Hero har animert gradient (nordlys) og diagonal bunnkant
      - Alle bakgrunns-shapes/animasjoner begrenses til hero (overflow: hidden)
   
   2. Om MakroMind (info-section)
      - Hovedintro om appen
      - "En app som hjelper – også når du er usikker" (h3)
      - Highlight-quote (estimater)
      - "Bygget for progresjon – ikke perfeksjon" (h3)
   
   3. Mikro-story ("Fra utvikleren" / .developer-message)
      - Personlig beskjed fra utvikleren
      - Plasseres etter progresjon-seksjonen, før funksjonslisten
      - Bygger tillit og menneskelighet
   
   4. Funksjonsliste ("I appen kan du også:" h3 + .feature-list)
   
   5. Norsk fokus (p med strong)
   
   6. Viktig informasjon / Disclaimer (.disclaimer-box)
      - Nøytral, profesjonell stil
   
   7. CTA/Last ned (download-section)
   
   8. Footer
*/

/* Info-seksjon - starter rent rett etter hero */
.info-section {
    padding: 6rem 2rem 4rem 2rem;
    background: var(--dark-blue);
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Ingen margin-top - starter rett etter hero */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.info-section h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.info-section h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-section p {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.info-section strong {
    color: inherit;
    font-weight: 600;
}

.info-section em {
    color: inherit;
    font-style: italic;
}

/* Fra utvikleren - premium mikro-story blokk */
.developer-message {
    max-width: 750px;
    margin: 3.5rem auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.developer-message p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: normal;
}

.developer-message p:last-of-type:not(.developer-signature) {
    margin-bottom: 1.2rem;
}

.developer-signature {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Highlight quote */
.highlight-quote {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    line-height: 1.7;
}

/* Feature list */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.75;
}

.feature-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

/* Informasjon box - nøytral, profesjonell stil */
.disclaimer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.disclaimer-box h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   DOWNLOAD SEKSJON
   ============================================ */

.download-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--dark-blue);
}

.download-section h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.download-status {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 2rem;
}

/* App Store button (når appen er lansert) */
.app-store-button {
    display: inline-block;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.app-store-button:hover {
    transform: scale(1.05);
}

.app-store-button img {
    height: 60px;
    width: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: rgba(0, 9, 35, 0.95);
    padding: 2rem;
    border-top: 1px solid rgba(0, 191, 165, 0.2);
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-company {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1; /* Bilde først på mobil */
    }
    
    .iphone-mockup {
        width: clamp(194px, 75vw, 268px); /* 10% mindre: 216*0.9=194, 298*0.9=268 */
        border-radius: 44px;
    }
    
    .iphone-screen {
        inset: 5px;
        border-radius: 36px;
    }
    
}

/* ============================================
   MOBIL-OPTIMALISERING (kun for mobil)
   ============================================ */

/* Breakpoint for tablets og store mobiler */
@media (max-width: 1024px) {
    /* Hero: Mildere clip-path for å unngå klipping */
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%);
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%);
    }
}

/* Breakpoint for mobiltelefoner */
@media (max-width: 600px) {
    /* Logo-animasjon: Reduser padding-top og sikre safe-area */
    .logo-animation {
        padding-top: max(10vh, env(safe-area-inset-top, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    /* Logo-container: Mindre størrelse for små skjermer */
    .logo-container {
        width: 220px;
        height: 220px;
    }
    
    /* Logo-halvdeler: Juster størrelse */
    .logo-half {
        width: 110px; /* Halvparten av 220px */
        height: 220px;
    }
    
    /* Logo-bilder: Overstyr positionering for mobil */
    .logo-half img {
        width: 220px; /* Samme som container */
        height: 220px;
    }
    
    /* Høyre halvdel (hjernen): Overstyr desktop-verdi med mobil-verdi */
    .logo-brain img {
        left: -110px; /* Halvparten av 220px - overstyrer desktop -234.375px */
    }
    
    /* Venstre halvdel (eplet): Bekreft at den er på riktig plass */
    .logo-apple img {
        left: 0; /* Allerede riktig, men eksplisitt for klarhet */
    }
    
    /* Hero: Mildere clip-path og bedre padding for mobil */
    .hero {
        padding: 2rem 1.5rem 4rem 1.5rem;
        min-height: auto;
        text-align: center;
        /* Mildere clip-path - mindre diagonal kutt for å unngå klipping */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
        /* Safe-area støtte */
        padding-top: max(2rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(4rem, env(safe-area-inset-bottom, 0px));
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: left;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        text-align: left;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .iphone-mockup {
        width: clamp(194px, 75vw, 268px); /* 10% mindre: 216*0.9=194, 298*0.9=268 */
        border-radius: 40px;
    }
    
    .iphone-screen {
        inset: 4px;
        border-radius: 34px;
    }
    
    .typewriter-text {
        font-size: 1.8rem; /* Litt mindre på små skjermer */
    }
    
    .byline-text {
        font-size: 0.9rem;
    }
    
    /* Content-page (personvernserklæring, bruksvilkår, support) - mobil-optimalisering */
    .content-page {
        padding: 2rem 1.5rem max(4rem, calc(3rem + env(safe-area-inset-bottom, 0px))) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* ============================================
       SAFARI iOS BOTTOM BAR FIX - FOOTER
       ============================================ */
    
    /* Footer: ekstra padding for Safari bottom bar */
    .footer {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    /* Footer container: max-width og padding */
    .footer .container {
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 1.25rem !important;
    }
    
    /* Footer links: wrap på mobil */
    .footer-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.9rem 1.4rem !important;
        width: 100% !important;
        padding-bottom: 0.75rem;
        box-sizing: border-box;
    }
    
    /* Footer links tekst: kan bryte */
    .footer-links a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    
    /* Footer tekst (juridisk linje): kan bryte linjer */
    .footer-company,
    .footer-content p {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        text-align: center !important;
    }
    
    /* Footer content: sentrer på mobil */
    .footer-content {
        padding-bottom: 0.75rem;
        box-sizing: border-box;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Contact box (support.html) - e-post wrapping på mobil */
    .contact-box {
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.5rem !important;
    }
    
    .contact-box a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
    
    .contact-box p {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
    .content-page h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .content-page h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
        margin-top: 2rem !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .content-page h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
        margin-top: 1.5rem !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .content-page p {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .content-page ul {
        padding-left: 1.5rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .content-page li {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
}

/* Legacy breakpoint (768px) - behold for kompatibilitet */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem 4rem 1.5rem;
        min-height: auto;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: left;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        text-align: left;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .iphone-mockup {
        width: clamp(194px, 75vw, 268px); /* 10% mindre: 216*0.9=194, 298*0.9=268 */
    }
    
    /* Logo-størrelse for mellomstore skjermer (768px) */
    .logo-container {
        width: 250px;
        height: 250px;
    }
    
    .logo-half {
        width: 125px;
        height: 250px;
    }
    
    .logo-half img {
        width: 250px;
        height: 250px;
    }
    
    /* Overstyr logo-positionering også på 768px breakpoint */
    .logo-brain img {
        left: -125px; /* Overstyrer desktop-verdi for denne størrelsen */
    }
    
    .logo-apple img {
        left: 0;
    }
    
    .logo-glow {
        width: 437.5px; /* 25% større responsivt: 350px * 1.25 = 437.5px */
        height: 437.5px;
    }
    
    .typewriter-text {
        font-size: 2rem;
    }
    
    .byline-text {
        font-size: 1rem; /* Halvparten av typewriter-tekst på mobil */
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 9, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 99;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .header {
        padding: 1rem 1.5rem;
    }
    
    .nav-title {
        font-size: 1.3rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-content {
        align-items: center;
    }
    
    /* Mobil-tilpasning for mikro-story */
    .developer-message {
        padding: 20px 22px;
        margin: 2.5rem auto;
        max-width: calc(100% - 2rem);
    }
    
    .developer-message p {
        font-size: 0.95rem;
    }
    
    .developer-signature {
        font-size: 0.85rem;
    }
}

/* ============================================
   REDUSERT BEVEGELSE (TILGJENGELIGHET)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-animation {
        display: none;
    }
    
    .main-content.hidden {
        opacity: 1;
        pointer-events: auto;
    }
}
