/* ======================================================
   Sjekkliste_Y – styles.css (clean / Apple-like)
   Mobile-first, no framework, auto light/dark
   ====================================================== */

/* 1) Design tokens */
:root {
  color-scheme: light dark;

  /* Light (default) */
  --bg: #ffffff;
  --text: #0b0b0f;
  --muted: #6b6f76;

  --line: rgba(0, 0, 0, 0.10);
  --card: rgba(0, 0, 0, 0.03);

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --accent: #007aff;
  --accent-pressed: #0062cc;

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;

  --pad: 18px;

  --fs-hero: clamp(34px, 4.5vw, 48px);
  --fs-h2: 20px;
  --fs-body: 16px;
  --lh: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --text: #f5f6f7;
    --muted: #a7abb2;

    --line: rgba(255, 255, 255, 0.12);
    --card: rgba(255, 255, 255, 0.06);

    --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);

    --accent: #0a84ff;
    --accent-pressed: #006fe6;
  }
}

/* 2) Base / reset */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 14px; color: var(--muted); }

h1, h2, h3 { margin: 0 0 10px; color: var(--text); letter-spacing: -0.01em; }

h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 16px; }

ul { margin: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, transparent);
  outline-offset: 3px;
  border-radius: 10px;
}
/* Global site navigation */
.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);

  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card) 80%, transparent);

  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--muted) 40%, var(--line));
}

.nav-link:active {
  transform: translateY(0);
}

/* 3) Layout helpers */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 48px;
}

.section { margin-top: 22px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--bg) 85%, var(--card));
  padding: var(--pad);
}

/* 4) Topbar / language pills */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 18px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  user-select: none;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--muted) 35%, var(--line));
}

.pill.active {
  color: var(--text);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}

/* 5) Hero */
.hero {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(900px 280px at 20% 0%,
      color-mix(in oklab, var(--accent) 18%, transparent),
      transparent 60%),
    radial-gradient(900px 280px at 80% 0%,
      color-mix(in oklab, var(--accent) 10%, transparent),
      transparent 60%),
    color-mix(in oklab, var(--card) 92%, transparent);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
.hero-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 6px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: 0 0 auto;

  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 85%, var(--card));
box-shadow:
  0 10px 22px rgba(0,0,0,0.12),
  inset 0 0 0 1px rgba(255,255,255,0.08);


  /* Sørger for at PNG med transparens ser bra ut */
  object-fit: cover;
}

/* Litt større på desktop */
@media (min-width: 860px) {
  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
}
/* App icon – dark mode variant */
@media (prefers-color-scheme: dark) {
  .app-icon {
    content: url("assets/icon/app-icon-b.png");
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 80%, var(--card));
  padding: 7px 10px;
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
}

/* 6) Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(0px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: color-mix(in oklab, var(--accent) 70%, black);
  box-shadow: 0 10px 22px color-mix(in oklab, var(--accent) 22%, transparent);
}
/* App Store CTA – disabled state (before launch) */
.appstore-disabled {
  opacity: 0.6;
  pointer-events: none;
  box-shadow: none;
}

.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { background: var(--accent-pressed); }

.btn-secondary {
  background: color-mix(in oklab, var(--bg) 80%, var(--card));
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--muted) 35%, var(--line));
}

/* 7) Feature list */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.feature {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--card) 75%, transparent);
  border: 1px solid color-mix(in oklab, var(--line) 90%, transparent);
}

.check {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line));
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

/* 8) Optional media box (tips / screenshots placeholder) */
.media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* Screenshots – one at a time (swipe), no JS */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  padding: 0 2px 6px;
}

.screen {
  margin: 0;
  scroll-snap-align: start;

  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 85%, var(--card));
  box-shadow: var(--shadow);
  padding: 10px;
}

.screen-img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: calc(var(--r-lg) - 6px);
  border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}

.screens-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 860px) {
  .screens {
    grid-auto-columns: 48%;
  }
  .screens-hint { display: none; }
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* 9) FAQ (details/summary) */
.faq {
  max-width: 700px;
  margin-top: 3rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  background: color-mix(in oklab, var(--bg) 85%, var(--card));
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.faq details:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--muted) 35%, var(--line));
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary { margin-bottom: 0.5rem; }

.faq p { margin: 0; color: var(--muted); }

.faq summary::after {
  content: "＋";
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.faq details[open] summary::after { content: "−"; }

.faq summary:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--text) 10%, transparent);
  outline-offset: 4px;
  border-radius: 10px;
}

.faq details[open] {
  background: color-mix(in oklab, var(--bg) 78%, var(--card));
}

/* 10) Footer */
footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

footer nav a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  transition: transform 120ms ease, border-color 120ms ease;
}

footer nav a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--muted) 35%, var(--line));
}

/* 11) Desktop refinement */
@media (min-width: 860px) {
  .wrap { padding: 28px 22px 60px; }
  .hero { padding: 26px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .shot { height: 100%; display: grid; align-content: center; }
}
/* Mobile fixed nav (reliable) */
@media (max-width: 859px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;

    padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
    margin: 0;

    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    background: color-mix(in oklab, var(--bg) 75%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--line);
  }

  /* Flytt innholdet ned slik at nav ikke dekker hero */
  .wrap {
    padding-top: calc(env(safe-area-inset-top) + 72px);
  }

  .nav-link {
    padding: 7px 12px;
  }

  /* Topbar kan få mindre luft når nav er fixed */
  .topbar {
    padding-top: 0;
  }
}

/* === Sjekkliste_Y layout og screenshots (gjelder ALLE skjermer) === */

/* Layout constraints for selve app-siden */
.page-sjekklistey {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* HERO */
.hero-sjekklistey .hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.hero-sjekklistey h1 {
  margin: 0 0 10px;
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0 0 18px;
  max-width: 46ch;
  opacity: 0.9;
}

/* CTA group spacing */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0 8px;
}

/* HERO media card (img nå, video senere) */
.hero-media-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

/* Hindrer “full size” hero-bilde */
.hero-media-image {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}

/* Hvis du senere bruker <video class="hero-video"> */
.hero-video {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Seksjons-spacing (overstyrer evt. tidligere) */
.section {
  margin-top: 28px;
}

.section-inner {
  padding: 0 6px;
}

.section-lead {
  max-width: 70ch;
  opacity: 0.9;
}

/* Screenshots grid */
.screenshot-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.screenshot-card {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.screenshot-img {
  display: block;
  width: 100%;
  height: 320px;          /* stopper full-height */
  object-fit: contain;    /* hele screenshotet vises */
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
}

.screenshot-card figcaption {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.35;
}

/* Basis for screenshots og hero */
.screenshot-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.screenshot-img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
}

/* Reveal-kortet m/video – BASIS (gjelder alle skjermer) */
.reveal-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 85%, var(--card));
  box-shadow: var(--shadow);
  max-width: 420px;     /* kontroller størrelsen på desktop */
  margin-left: auto;    /* høyrejustert i hero */
}

.reveal-video {
  display: block;
  width: 100%;
  height: auto;
}

.reveal-caption {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  margin-left: auto;
}

.reveal-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  max-width: 420px;
  margin-left: auto;
}

/* Responsiv tilpasning for hero + grid */
@media (max-width: 980px) {
  .hero-sjekklistey .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media-image,
  .hero-video {
    max-width: 640px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Flytt reveal-elementene inn, sentrer/venstre på mobil/tablet */
  .reveal-card,
  .reveal-caption,
  .reveal-badges {
    max-width: 560px;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-img {
    height: 360px;
 /* === Overstyring: App Store-badge størrelse === */
.appstore-badge-img {
  height: 28px;   /* mindre badge på desktop */
  width: auto;
  display: block;
}

@media (max-width: 560px) {
  .appstore-badge-img {
    height: 24px; /* litt mindre på små skjermer */
  }
   /* === Overstyring: Reveal-video kompakt og beskåret === */
.reveal-card {
  max-width: 360px;      /* mindre bredde enn 420px */
  aspect-ratio: 9 / 16;  /* lås høyde – typisk “story”-format */
}

.reveal-video {
  width: 100%;
  height: 100%;          /* fyll hele kortet */
  object-fit: cover;     /* zoom litt inn */
  object-position: center top; /* behold toppen, cropp bunnen (der badgen er) */
}

}
