/* Piggo landing – nat-himmel-tema der matcher appens "lommepenge-dark" */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito.woff2') format('woff2');
}

:root {
  --navy: #101c30;
  --navy-2: #16264200;
  --ink: #eaf1fb;
  --muted: #a8bedc;
  --blue: #4c8ce0;
  --blue-deep: #2f66b5;
  --gold: #f0b64a;
  --gold-deep: #d99a2b;
  --coral: #e77e6a;
  --card: rgba(255, 255, 255, 0.055);
  --card-solid: #1a2a47;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--navy);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 8%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 32%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 55%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(2px 2px at 65% 85%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(900px 500px at 85% -5%, rgba(240,182,74,.10), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(76,140,224,.12), transparent 60%),
    linear-gradient(160deg, #101c30 0%, #142238 45%, #1a2c4a 100%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: 'Baloo 2', 'Nunito', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; margin-bottom: .75rem; }
h3 { font-size: 1.15rem; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 28, 48, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-family: 'Baloo 2', sans-serif; font-size: 1.35rem; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.nav .spacer { flex: 1; }
/* SVG-flag (Windows-Chrome viser ikke flag-emoji) + "EN"-mærke i samme mål.
   EN i stedet for GB-flag: dækker både britiske og amerikanske læsere.
   Alle vises i fuld styrke; det AKTIVE sprog markeres med en guldring. */
.langs { display: flex; align-items: center; gap: .65rem; }
.langs a {
  display: inline-flex; border-radius: 4px;
  transition: transform .12s;
}
.langs a:hover { text-decoration: none; transform: translateY(-1px); }
.langs img { display: block; width: 24px; height: 17px; border-radius: 3px; }
/* Det aktive sprog: guldring TAET om flaget – ingen ring om de andre.
   Engelsk = UK/US-kombiflag (flag-en.svg), daekker baade britiske og amerikanske laesere. */
.langs a[aria-current] img { box-shadow: 0 0 0 2px var(--gold); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; transition: transform .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2a1e05; box-shadow: 0 6px 18px rgba(240, 182, 74, .3);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(240, 182, 74, .4); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .beta {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .95rem;
  border-radius: 999px; background: rgba(240, 182, 74, .14); color: var(--gold);
  border: 1px solid rgba(240, 182, 74, .4); font-weight: 700; font-size: .88rem;
  letter-spacing: .03em;
}
.hero p.lead { margin: 1.1rem 0 1.8rem; font-size: 1.18rem; color: var(--muted); }
.hero .cta-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Telefonrammer ---------- */
.phone {
  border: 9px solid #0a1526; border-radius: 42px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.07);
  background: #0a1526; width: min(300px, 78vw); margin: 0 auto;
}
.phone img { border-radius: 30px; }
.screens { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.screens figure { text-align: center; }
.screens figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; }

/* ---------- Sektioner ---------- */
section { padding: 3.5rem 0; }
section.alt { background: rgba(10, 21, 38, .45); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 1rem; }

/* ---------- Feature-kort ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
}
.card .emoji { font-size: 1.7rem; display: block; margin-bottom: .55rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Trin ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 2rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; margin-bottom: .8rem;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2a1e05; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Tryghed ---------- */
.trust-list { list-style: none; margin-top: 1.4rem; display: grid; gap: .8rem; max-width: 660px; margin-left: auto; margin-right: auto; }
.trust-list li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.trust-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800; }
.trust-list li strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 2rem auto 0; display: grid; gap: .8rem; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.25rem;
}
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::after { content: '+'; color: var(--gold); font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin-top: .7rem; color: var(--muted); }

/* ---------- Slut-CTA ---------- */
.final-cta { text-align: center; padding: 4.5rem 0; }
.final-cta .btn { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ---------- Artikelsider (installation, privatliv, vilkår) ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.article h1 { margin-bottom: .6rem; }
.article .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.article h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.article p, .article li { color: var(--muted); }
.article ul, .article ol { padding-left: 1.4rem; margin: .7rem 0 1rem; }
.article strong { color: var(--ink); }
.article .back { display: inline-block; margin-top: 2.5rem; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero { padding: 2.8rem 0 2.4rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .nav { padding: .6rem 1rem; }
  .nav .btn-ghost { display: none; }
  .nav .btn-gold { padding: .45rem .8rem; font-size: .85rem; white-space: nowrap; }
  section { padding: 2.6rem 0; }
}
