/* Crowns. Appens egne farver: royal lilla, guld og creme. */
:root {
  --purple: #3d2c8d; --purple-2: #2c1f6b; --gold: #f5c542; --cream: #fbf4e8;
  --bg: #fbf4e8; --surface: #fffbf5; --text: #1c1b1f; --muted: #5f5a66; --border: #e6dccb;
  --accent: #3d2c8d; --shadow: 0 1px 2px rgba(45,30,110,.06), 0 10px 28px rgba(45,30,110,.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131c; --surface: #1f1c28; --text: #ece8f2; --muted: #a9a3b4; --border: #2e2a3a;
    --accent: #b9a8ff; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #15131c; --surface: #1f1c28; --text: #ece8f2; --muted: #a9a3b4; --border: #2e2a3a;
  --accent: #b9a8ff; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 0%, #5240b0 0%, var(--purple) 50%, var(--purple-2) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 90%); -webkit-mask-image: linear-gradient(#000, transparent 90%); }
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; padding-top: 18px; }
.top .back { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.top .back b { color: #8fdcbc; font-weight: 800; }
.top .back:hover { color: #fff; }
.top .lang { margin-left: auto; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; padding: 0 8px; text-decoration: none; font-size: .95rem; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 40px 0 96px; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-id img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.app-id h1 { margin: 0; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.app-id .sub { color: var(--gold); font-weight: 700; margin-top: 6px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.88); margin: 0 0 24px; max-width: 520px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); }
.play svg { width: 26px; height: 26px; }
.play small { display: block; font-size: .7rem; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.play strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.play.soon { opacity: .9; cursor: default; }
.price-note { font-size: .9rem; color: rgba(255,255,255,.8); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; color: var(--bg); z-index: 1; }

/* Animeret spilleplade */
.board-wrap { justify-self: center; width: min(340px, 100%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.board .crown { transform-box: fill-box; transform-origin: center; animation: crown 8s ease-in-out infinite; opacity: 0; }
@keyframes crown { 0%, 4% { opacity: 0; transform: scale(0); } 9% { opacity: 1; transform: scale(1.3); } 12%, 82% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.6); } }
.board .done { animation: done 8s ease-in-out infinite; opacity: 0; }
@keyframes done { 0%, 62% { opacity: 0; } 68%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }

/* Indhold */
main.wrap { padding-top: 8px; padding-bottom: 72px; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; margin: 56px 0 18px; display: flex; align-items: center; gap: 12px; }
h2 .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shots img { display: block; width: 210px; height: auto; border-radius: 22px; border: 6px solid #1c1b1f; box-shadow: var(--shadow); background: #fff; }
.shots figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }

.rules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.rule svg { width: 56px; height: 56px; display: block; margin-bottom: 10px; }
.rule h3 { margin: 0 0 4px; font-size: 1.05rem; }
.rule p { margin: 0; color: var(--muted); font-size: .95rem; }

.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.features .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--purple); color: var(--gold); }

.pricing { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { border-radius: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan.pro { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; border: 0; }
.plan h3 { margin: 0 0 6px; font-size: 1.2rem; }
.plan .price { font-size: 1.8rem; font-weight: 800; margin: 4px 0 10px; }
.plan.pro .price { color: var(--gold); }
.plan ul { margin: 0; padding-left: 20px; }
.plan p { margin: 0; }

.info { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: transform .2s, border-color .2s; }
.info a:hover { transform: translateY(-2px); border-color: var(--accent); }
.info .icon { color: var(--accent); }
.info small { display: block; color: var(--muted); font-size: .8rem; }

.foot { background: #1c1730; color: rgba(255,255,255,.8); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-bottom: 26px; }
.foot a { color: #fff; text-decoration: none; }
.foot a b { color: #8fdcbc; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Privatlivspolitik */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
.doc h1 { color: var(--accent); margin: 0 0 4px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; display: block; }
.doc p { margin: 0 0 12px; }
.doc .meta { color: var(--muted); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 88px; }
  .board-wrap { width: min(230px, 70%); }
  .rule { padding: 14px; }
  .rule p { font-size: .9rem; }
  .app-id h1 { font-size: 2.2rem; }
  .shots img { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .board .crown { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
