/* ZQuiz web — delt stil. Matcher appens G9-uttrykk:
   kremhvit canvas (#FAF9F7), brand-lilla (#6A5ACD), myke kort, ingen streker. */

:root {
  --canvas: #FAF9F7;
  --card: #FFFFFF;
  --slate: #6A5ACD;   /* brand.slate — samme som appen */
  --slate-800: #43356b;
  --slate-50: #f1eefb;
  --sky: #00BFFF;
  --ink: #1D1840;
  --muted: #6b6480;
  --line: #ece9f2;
  --radius: 20px;
  --shadow: 0 1px 3px rgba(29,24,64,0.06), 0 12px 32px rgba(29,24,64,0.06);
  --grad: linear-gradient(135deg, #6A5ACD 0%, #00BFFF 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
header.top {
  padding: 20px 0;
  position: sticky; top: 0;
  background: rgba(250,249,247,0.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  z-index: 10;
}
header.top .row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; }

/* Fallback: gammel .z-firkant beholdes hvis logo mangler et sted */
.brand .z {
  height: 34px; width: 34px; border-radius: 11px;
  background: var(--slate); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}

/* Språkvelger */
.langs { display: flex; gap: 4px; }
.langs a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 5px 10px; border-radius: 999px;
}
.langs a.active { color: var(--slate); background: var(--slate-50); font-weight: 600; }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero-logo { margin-bottom: 22px; }
.hero-logo img { display: inline-block; filter: drop-shadow(0 8px 24px rgba(106,90,205,0.22)); }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 auto 32px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (max-width: 600px) { .hero h1 { font-size: 34px; } .hero { padding: 44px 0 28px; } .hero-logo img { width: 68px; height: 68px; } }

/* App-badges */
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(29,24,64,0.18); }
.badge svg { flex-shrink: 0; }
.badge small { display: block; font-size: 10px; font-weight: 400; opacity: 0.85; line-height: 1; }
.badge .big { font-size: 16px; line-height: 1.15; }

/* Hero-skjermbilde */
.hero-shot {
  margin: 8px auto 0; max-width: 340px;
  border-radius: 30px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(29,24,64,0.16);
  border: 1px solid var(--line);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* Feature-kort */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 56px 0 40px; }
.feat {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(29,24,64,0.12); }
.feat .ic {
  height: 44px; width: 44px; border-radius: 14px;
  background: var(--slate-50); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--muted); }

/* Seksjonstittel */
.section-title {
  text-align: center; font-size: 30px; letter-spacing: -0.01em;
  margin: 32px 0 8px;
}

/* Showcase — vekslende tekst + skjermbilde */
.showcase { padding: 32px 0; }
.show-row {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
  align-items: center; padding: 40px 0;
}
.show-row.reverse { grid-template-columns: 300px 1fr; }
.show-row.reverse .show-text { order: 2; }
.show-row.reverse .show-shot { order: 1; }
.show-text h3 { font-size: 24px; margin-bottom: 12px; letter-spacing: -0.01em; }
.show-text p { font-size: 16px; color: var(--muted); max-width: 420px; }
.show-shot {
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(29,24,64,0.16);
  border: 1px solid var(--line);
}
.show-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .show-row, .show-row.reverse { grid-template-columns: 1fr; gap: 20px; }
  .show-row.reverse .show-text { order: 1; }
  .show-row.reverse .show-shot { order: 2; }
  .show-shot { max-width: 300px; margin: 0 auto; }
  .show-text { text-align: center; }
  .show-text p { margin: 0 auto; }
}

/* Tinted seksjon */
.tinted { background: var(--slate-50); border-radius: 28px; padding: 44px 32px; text-align: center; margin: 40px 0; }
.tinted h2 { font-size: 26px; margin-bottom: 12px; }
.tinted p { color: var(--muted); max-width: 460px; margin: 0 auto; }

/* Avsluttende CTA */
.cta-final { text-align: center; padding: 40px 0 72px; }
.cta-final h2 { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 10px; }
.cta-final p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }

/* Juridisk innhold */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { color: #38324e; font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--slate); }
.legal .box {
  background: var(--card); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); margin: 20px 0;
}

/* Footer */
footer.foot { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.foot .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.foot a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.foot a:hover { color: var(--slate); }
