/* Rebu – rebus-app landingsside
   Design matcher rebusløsningen: off-white, marineblå tekst, blått/hvitt, Space Grotesk. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #111e2e;
  --ink-soft: #4b5a70;
  --brand: #f3763a;
  --brand-dark: #c85416;
  --brand-light: #f88e59;
  --brand-tint: #fdeee4;
  --line: #e4e9f2;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px -18px rgba(17, 30, 46, 0.28);
  --shadow-soft: 0 6px 24px -14px rgba(17, 30, 46, 0.25);
  --maxw: 1120px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 6px 14px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-switch a.active { background: var(--brand); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.header-actions .btn { padding: 9px 18px; }

/* App Store / Google Play badges */
.store-badges { display: flex; gap: 8px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #111e2e;
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid #111e2e;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-badge:hover { background: #0a1420; transform: translateY(-1px); }
.store-ico { width: 22px; height: 22px; flex: none; display: block; }
.badge-text { display: flex; flex-direction: column; line-height: 1.05; }
.badge-text small { font-size: 0.62rem; letter-spacing: 0.02em; opacity: 0.82; }
.badge-text strong { font-size: 0.94rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 48px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.eyebrow {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #101828;
}
.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(circle at 50% 40%, rgba(243,118,58,0.26), transparent 70%);
  filter: blur(10px);
}
.hero-media img {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(17,30,46,0.14));
}

/* ---------- Section shells ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #101828;
}
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.feature h3 {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.feature .num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.feature-phone {
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  place-items: center;
}
.feature-phone img { width: 100%; border-radius: 8px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.step-media { background: var(--brand-tint); padding: 22px; }
.step-media img { border-radius: 10px; box-shadow: var(--shadow-soft); }
.step-body { padding: 24px 26px 28px; }
.step-body .num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-body h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.step-body p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin: 0 auto; }
details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 20px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #2b1a10, #c85416);
  color: #fff;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.025em; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin: 0 0 28px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #eaf1ff; }

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 24px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin: 0 0 8px; color: #101828; }
.legal .updated { color: var(--ink-soft); margin: 0 0 36px; font-size: 0.95rem; }
.legal h2 { font-size: 1.28rem; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal p { color: var(--ink-soft); margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-soft); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.95rem; }
.footer-meta { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .lead { max-width: none; margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  /* Midtstill alt på mobil */
  .hero-copy { text-align: center; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 680px) {
  .badge-text { display: none; }
  .store-badge { padding: 9px; }
}
@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .store-badges { gap: 6px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 24px; }
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature-phone { max-width: 160px; margin-left: auto; margin-right: auto; }
  .header-actions .btn-cta-header { display: none; }
  .cta-band { padding: 40px 24px; }
  /* Midtstill alt på mobil */
  .step-body { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}


/* ---------- Animert landskap i hero (Lottie) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-anim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-anim svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253, 246, 234, 0.88) 0%, rgba(253, 246, 234, 0.45) 52%, rgba(253, 246, 234, 0.05) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
