/* Fargene er de samme som i appene (ios/Ordlaget/Theme.swift). Ordlaget er alltid mørkt. */
:root {
  --bg: #17121f;
  --bg2: #241b31;
  --surface: #2f2440;
  --text: #fff8ef;
  --muted: #c9bcd8;
  --line: #3b2e50;
  --accent: #ffb347;
  --accent2: #ff6b6b;
  --ai: #7fd1ff;
  --ink: #1a1222;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Språk: innholdet finnes på begge språk, og html[lang] avgjør hva som vises. */
html[lang="nb"] [lang="en"], html[lang="en"] [lang="nb"] { display: none !important; }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; padding-bottom: 18px;
}
header.top .home { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 18px; }
header.top .home img { width: 32px; height: 32px; border-radius: 8px; }
header.top .home:hover { text-decoration: none; color: var(--accent); }
.lang-toggle {
  font: inherit; font-size: 14px; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
}
.lang-toggle:hover { color: var(--text); }

.hero { text-align: center; padding-top: 40px; padding-bottom: 56px; }
.hero img { width: 160px; height: 160px; border-radius: 36px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 72px); line-height: 1.05; margin: 18px 0 10px; letter-spacing: -0.02em;
  font-weight: 900; color: var(--accent);
}
.hero p.lede { font-size: clamp(19px, 3vw, 23px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: 16px;
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.hero .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }

section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 800; }
section > .wrap > p.intro { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: 15px; margin-bottom: 10px;
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 18px; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 32px; }
.feature .emoji { font-size: 28px; line-height: 1; display: block; margin-bottom: 8px; }

/* Gratis og Pluss side om side. */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tier { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tier.pluss { border-color: var(--accent); }
.tier h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.tier.pluss h3 { color: var(--accent); }
.tier .sub { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.tier ul { margin: 0; padding-left: 20px; }
.tier li { margin: 4px 0; }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 680px; }

dl.faq dt { font-weight: 700; margin-top: 22px; }
dl.faq dd { margin: 4px 0 0; color: var(--muted); }

.prose { max-width: 700px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.02em; margin: 24px 0 4px; line-height: 1.1; font-weight: 900; }
.prose .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.prose .summary {
  background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 20px; font-size: 18px; margin-bottom: 28px;
}
.prose h2 { font-size: 21px; margin: 34px 0 6px; font-weight: 800; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.table-scroll { overflow-x: auto; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 24px; padding-bottom: 40px; }
  .hero img { width: 120px; height: 120px; border-radius: 28px; }
  .prose table { font-size: 14px; }
}
