/* mobilestyles.css */
/* Kun overrides til mobil/tablet – ingen “base styles” her */

/* =========================================================
   GENERELT RESPONSIVE OVERRIDES
   ========================================================= */

@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .result-card {
    position: static;
    width: 100%;
  }
}

@media (max-width: 968px) {
  /* Layout */
  body { overflow-x: hidden; }
  .container { width: 92%; }

  /* Header/nav: undgå overlap på mobil */
  header {
    position: relative;
    padding: 16px 0;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-actions {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Hero: 2 kolonner -> 1 */
  .hero {
    min-height: auto;
    padding: 88px 0 56px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons a {
    display: block;
    max-width: 340px;
    width: 100%;
    margin: 12px auto;
  }

  .trust { margin-top: 42px; }

  /* Sections spacing */
  .features,
  .how-it-works,
  .testimonials,
  .faq,
  .pricing-cta {
    padding: 80px 0;
  }

  /* Pricing table */
  table { font-size: 14px; }
  th, td { padding: 12px 8px; }
}

@media (max-width: 768px) {
  /* Login: skjul tekst på mobil */
  .login-link span { display: none; }

  /* Result card mere kompakt */
  .result-card { padding: 26px; border-radius: 18px; }
  #totalPrice { font-size: 42px; }
}

@media (max-width: 640px) {
  /* Hero underline lidt mindre på mobil */
  .scribble-underline {
    left: -35%;
    width: 170%;
    bottom: -16px;
    height: 40px;
  }

  .section-header h2 { font-size: 30px; }
  .subtitle { font-size: 16px; }

  .logos img { margin: 10px 12px; }

  /* Pricing cards */
  .product-card { padding: 18px; border-radius: 14px; gap: 14px; }
  .product-icon { width: 48px; height: 48px; font-size: 14px; }
  .pricing-calculator h1 { font-size: 30px; margin-bottom: 30px; }
}

/* =========================================================
   HEADER + MOBILMENU (TOPBAR + DROP PANEL UNDER HEADER)
   ========================================================= */

/* Desktop / generelt */
.site-header {
  padding: 18px 0;
  position: absolute;
  width: 100%;
  z-index: 9999;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

/* Brand */
.site-header .logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
}
.site-header .logo a {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.site-header .logo span { color: var(--primary); }

/* Desktop nav */
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header .nav-links a {
  color: white;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header .nav-links a:hover {
  color: var(--primary);
  opacity: 0.95;
}

/* =========================================================
   UIVERSE-STYLE MENU BUTTON (OPEN/CLOSE) – FIXED X PROPORTIONS
   ========================================================= */

.menu-btn {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  margin-left: auto;
}

/* Glass baggrund (beholder looket fra knappen) */
.menu-btn__bg {
  mix-blend-mode: luminosity;
    background: transparent; /* hvis du ikke vil have glasbaggrund */


  height: 65px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Ikon */
.menu__icon {
  width: 32px;
  height: 32px;
  padding: 4px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.menu__icon span {
  width: 100%;
  height: 0.125rem;
  border-radius: 0.125rem;

  /* Nu hvor headeren er hvid, gør vi dem mørke som standard */
  background-color: #111;

  box-shadow: 0 .5px 2px 0 hsla(0, 0%, 0%, .2);
  transition: transform .4s, background-color .4s, opacity .4s;
  transform-origin: center;
}

/* hover (valgfrit) */
.menu-btn:hover .menu__icon span {
  background-color: rgb(0, 122, 255);
}

/* OPEN STATE: burger -> X */
.site-header.nav-open .menu__icon span:nth-child(1) {
  background-color: rgb(255, 59, 48);
  transform: translateY(11px) rotate(-45deg);
}

.site-header.nav-open .menu__icon span:nth-child(2) {
  transform: translateX(-50%);
  opacity: 0;
}

.site-header.nav-open .menu__icon span:nth-child(3) {
  background-color: rgb(255, 59, 48);
  transform: translateY(-11px) rotate(45deg);
}

/* =========================================================
   DROP PANEL + OVERLAY
   ========================================================= */

/* base hidden (desktop) */
.mobile-drawer,
.mobile-overlay {
  display: none;
}

/* Mobil */
@media (max-width: 968px) {
  :root {
    --mobile-header-h: 86px; /* justér 72–96px hvis du vil */
    --mobile-gutter: 4vw;    /* matcher ca. container width:92% */
  }

  html, body { overflow-x: hidden; }

  /* Header bliver topbar på mobil (HELT HVID, ingen blur) */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    padding: 14px 0;
    z-index: 9999;

    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  /* Header-indhold matcher container-indryk */
  .site-header .nav {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  /* Hold header-rækken på én linje */
  .site-header .nav {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Logo farve på hvid header */
  .site-header .logo {
    color: #111;
  }
  .site-header .logo a {
    color: #111;
    text-decoration: none;
  }
  .site-header .logo span {
    color: var(--primary);
  }

  /* Skjul desktop links */
  .site-header .nav-links {
    display: none !important;
  }

  /* Vis menu-knap */
  .menu-btn {
    display: inline-flex !important;
  }

  /* Giv siden plads til topbaren */
  body {
    padding-top: var(--mobile-header-h);
  }

  /* Overlay */
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.10);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9998;
  }

  /* Drop panel (HELT HVID, ingen blur) */
  .mobile-drawer {
    display: block;
    position: fixed;
    top: var(--mobile-header-h);
    left: 0;
    right: 0;

    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);

    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;

    z-index: 9999;
  }

  /* Links */
  .mobile-drawer__nav {
    padding: 10px 18px 18px;
  }

  .mobile-drawer__link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);

    color: #111;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-drawer__link:last-child {
    border-bottom: none;
  }

  /* Open state */
  .site-header.nav-open .mobile-drawer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .site-header.nav-open .mobile-overlay {
    opacity: 1;
    pointer-events: all;
  }

  /* Align Sofia launcher til container */
  #sofia-launcher,
  .sofia-launcher,
  #sofia-chat-launcher,
  .sofia-chat-launcher {
    right: var(--mobile-gutter) !important;
  }
}

/* Desktop */
@media (min-width: 969px) {
  .menu-btn { display: none !important; }
  .mobile-drawer,
  .mobile-overlay { display: none !important; }
  .site-header .nav-links { display: flex; }
}

@media (max-width: 968px) {
  /* Tving topbaren HELT hvid - også når menu er åben */
  .site-header,
  .site-header.nav-open {
    background: #fff !important;
  }

  /* Nogle themes sætter baggrund på selve nav/container-rækken */
  .site-header .nav,
  .site-header.nav-open .nav,
  .site-header .container.nav,
  .site-header.nav-open .container.nav {
    background: #fff !important;
  }

  /* Hvis der ligger en pseudo overlay på headeren */
  .site-header::before,
  .site-header::after {
    content: none !important;
  }
}

@media (max-width: 968px) {
  /* Sørg for hero starter pænt under din fixed header */
  .hero.hero-bg {
    padding-top: calc(var(--mobile-header-h, 86px) + 28px) !important;
    padding-bottom: 56px !important;
  }

  /* Begræns linjelængde så det ser “app-agtigt” ud */
  .hero-text {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 38px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    margin-bottom: 14px !important;
  }

  .hero-text p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    opacity: 0.95;
    max-width: 42ch;      /* læsevenligt */
    margin: 0 auto 18px;
  }

  /* Knapper: samme bredde, bedre spacing */
  .hero-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }

  .hero-buttons a {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    font-weight: 600;
  }

  /* Scribble underline: mere centreret og mindre “vild” */
  .hero-underline {
    display: inline-block;
    position: relative;
  }

  .scribble-underline {
    left: 50% !important;
    transform: translateX(-50%);
    width: 145% !important;
    bottom: -14px !important;
    height: 34px !important;
    opacity: 0.95;
  }

  /* Hero background: gør den en smule roligere */
  .hero-bg-image {
    opacity: 0.55;   /* sænk hvis det er for kraftigt */
  }
}

@media (max-width: 420px) {
  .hero-text h1 {
    font-size: 34px !important;
  }
  .hero-text p {
    font-size: 15px !important;
  }
}


 @media (max-width: 968px) {
  /* Skjul hele pris-tabellen på mobil */
  .pricing-table {
    display: none !important;
  }
}

/* =========================================================
   DEMO SIDE (demo.html) – mobil optimering
   ========================================================= */
@media (max-width: 968px) {
  /* demo-hero skal respektere fixed header */
  .demo-hero {
    min-height: calc(100dvh - var(--mobile-header-h, 86px));
    align-items: flex-start;
  }

  .demo-hero .container {
    padding-top: calc(var(--mobile-header-h, 86px) + 18px) !important;
    padding-bottom: 42px !important;
  }

  /* gør kortet mere mobil-venligt */
  .demo-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 20px !important;
    border-radius: 16px;
  }

  .demo-header {
    margin-bottom: 16px;
  }

  .demo-header h1 {
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
  }

  .demo-header p {
    font-size: 15px !important;
    line-height: 1.6;
    max-width: 42ch;
  }

  /* formular layout */
  .demo-form {
    gap: 12px !important;
  }

  .row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .field label {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .field input,
  .field textarea {
    padding: 14px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .field textarea {
    min-height: 110px;
  }

  /* CTA knap */
  .demo-form .btn-primary {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
  }

  .demo-note {
    font-size: 13px;
    line-height: 1.45;
    margin-top: 8px;
  }

  /* baggrund: mindre “busy” på mobil */
  .demo-hero .hero-bg-image::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* små mobiler */
@media (max-width: 420px) {
  .demo-header h1 { font-size: 30px !important; }
  .demo-card { padding: 18px !important; }
}
