/* Family House Planner — marketing site. Appens standard-tema:
   marineblå→lilla gradient, lilla primær (#7e6fff), turkis sekundær (#42c2a8). */
:root {
  --navy: #052767;
  --purple-deep: #3a0647;
  --primary: #7e6fff;
  --primary-dark: #6354e0;
  --secondary: #42c2a8;
  --ink: #1c1c2b;
  --muted: #5d6b86;
  --line: #e6e6ef;
  --bg-alt: #f5f5fb;
  --hero-grad: linear-gradient(160deg, #052767 0%, #2a0d52 60%, #3a0647 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); line-height: 1.6; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; border: none; white-space: nowrap; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.brand .brand-svg { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 22px; }
.nav a { color: #d7d7ea; font-size: .95rem; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 6px 12px; font-weight: 600; cursor: pointer; font-size: .85rem; }
.lang-toggle:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero { background: var(--hero-grad); color: #fff; padding: 60px 22px 70px; }
.hero-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 2.5rem; letter-spacing: -.5px; }
.hero-text p { font-size: 1.15rem; color: #cdd6ec; margin-top: 16px; max-width: 32ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Billed-rammer. height:auto sammen med width/height-attributter på <img>
   gør at browseren reserverer den rigtige plads FØR billedet er hentet
   (ellers kollapser lazy-billeder til 0 højde, og siden "føles kort"). */
.shot { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(10,12,40,.22); background: #fff; }
.shot-phone { max-width: 300px; margin: 0 auto; }
.cover { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; display: block; border-radius: 16px; }

/* Family */
.family { padding: 46px 22px 12px; }
.family-slider { max-width: 920px; margin: 0 auto; }
.family-caption { text-align: center; color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 22px; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 1.9rem; text-align: center; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; }

/* Grids & cards */
.grid { display: grid; gap: 18px; margin-top: 34px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,20,60,.08); }
.card .ic { font-size: 2rem; }
.card h3 { margin: 10px 0 6px; color: var(--navy); font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps .step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.step-num { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.2rem; }
.step h3 { color: var(--navy); font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* Devices */
.devices { text-align: center; }
.device-icons { font-size: 2.6rem; margin-top: 22px; letter-spacing: 6px; }

/* Spotlights (vekslende billede/slider + tekst) */
.spotlights { display: flex; flex-direction: column; gap: 52px; }
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.spotlight-text h2 { font-size: 1.7rem; color: var(--navy); }
.spotlight-text p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.spotlight.reverse .spotlight-text { order: 2; }

/* Slider (genbruges: familie, kalender, rutiner, skærmbilleder, farvetemaer) */
.slider { position: relative; }
.viewport { overflow: hidden; border-radius: 16px; }
.track { display: flex; transition: transform .45s ease; }
.slide { flex: 0 0 100%; min-width: 0; display: flex; justify-content: center; align-items: center; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); z-index: 2; }
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.dots button.active { background: var(--primary); }
.shots-slider { max-width: 840px; margin: 30px auto 0; }
/* Mobil-skærmbilleder vises kun paa mobil (skjules paa desktop/tablet). */
.shots-slider .slide-mobile { display: none; }
@media (max-width: 560px) { .shots-slider .slide-mobile { display: flex; } }

/* Farvetema-kort (ét ad gangen i slideren) */
.theme-slider { max-width: 340px; margin: 30px auto 0; }
.theme-card { width: 100%; text-align: center; }
.theme-preview { height: 150px; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); }
.theme-dot { display: none; }
.theme-name { display: block; margin-top: 12px; font-weight: 600; color: var(--navy); font-size: 1.1rem; }

/* Klik på et billede → forstør (lightbox) */
.shot, .cover { cursor: zoom-in; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95%; max-height: 92%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 34px auto 0; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; text-align: center; box-shadow: 0 8px 22px rgba(20,20,60,.06); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 14px 34px rgba(126,111,255,.18); }
.price-badge { display: inline-block; align-self: center; background: var(--primary); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.price-name { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.price-amount { font-size: 2.8rem; font-weight: 700; color: var(--navy); margin: 8px 0 0; }
.price-per { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price-note { color: var(--muted); margin-top: 2px; }
.price-annual { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.price-list { list-style: none; padding: 0; margin: 22px auto; text-align: left; display: inline-block; }
.price-list li { padding: 6px 0; color: var(--ink); }
.price-card .btn { margin-top: auto; }
.rent-title { text-align: center; color: var(--navy); font-size: 1.5rem; margin-top: 54px; }
.rent-sub { text-align: center; color: var(--muted); margin: 10px auto 0; max-width: 620px; }
.rent-grid { margin-top: 24px; }

/* About */
.about-body { max-width: 720px; margin: 30px auto 0; }
.about-body p { color: #33384a; font-size: 1.1rem; margin-bottom: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: #cdd6ec; padding: 40px 22px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-logo { height: 46px; width: auto; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a:hover { color: #fff; }
.footer-meta { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: .85rem; color: #9fb0d0; }

/* Responsive */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text p { max-width: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-text h1 { font-size: 2rem; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight.reverse .spotlight-text { order: 0; }
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* I "Tag et kig indenfor" vises kun mobil-skærmbilleder paa mobil,
     de brede desktop-billeder ser ikke flotte ud paa en lille skaerm. */
  .shots-slider .slide-desktop { display: none; }
  .site-header { padding: 8px 14px; gap: 10px; }
  .brand .brand-svg { height: 34px; }
  .header-actions { gap: 8px; }
  .btn { padding: 9px 14px; font-size: .9rem; }
  .lang-toggle { padding: 5px 10px; font-size: .8rem; }
}
