/* Samme tokens som appen (app/globals.css, design v4 «Lys og klar»). Holdes i synk for hånd. */
:root {
  color-scheme: light;
  --background: #f2f5fc;
  --foreground: #0f1629;
  --muted-foreground: #5f6b85;
  --primary: #2f6bff;
  --primary-foreground: #ffffff;
  --border: rgb(15 22 41 / 0.08);
  --ok: #1f5fd8;
  --ok-soft: #e7eeff;
  --warn: #b8700c;
  --warn-soft: #fdf1dc;
  --radius: 0.875rem;
  --radius-button: 0.875rem;
  --radius-card: calc(var(--radius) * 1.8);
  --shadow-card: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 8px 32px -12px rgb(31 38 135 / 0.14);
  --shadow-lift: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 18px 48px -16px rgb(31 38 135 / 0.24);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--foreground);
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at -5% -10%, rgb(47 107 255 / 0.34), transparent 60%),
    radial-gradient(900px 600px at 105% 0%, rgb(124 92 255 / 0.28), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgb(34 211 238 / 0.24), transparent 60%),
    radial-gradient(700px 500px at 35% 55%, rgb(255 255 255 / 0.7), transparent 70%),
    var(--background);
  background-attachment: fixed;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2 { letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.top, main, .bottom { width: 100%; max-width: 72rem; margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}
.wordmark { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding-inline: 1.125rem;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgb(47 107 255 / 0.6);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgb(47 107 255 / 0.7); }
.btn:active { transform: translateY(1px); }

main { flex: 1; display: flex; flex-direction: column; gap: 2rem; padding-block: 2.5rem 3rem; }

.hero { max-width: 40rem; }
.label { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.hero h1 { margin-top: 0.5rem; font-size: clamp(2.125rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.05; }
.lead { margin-top: 1rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.5; color: var(--muted-foreground); }

.card {
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.42));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-card);
}

.demo { padding: 1.5rem; }
.headline { margin-top: 0.25rem; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gradient-text {
  white-space: nowrap;
  background: linear-gradient(90deg, #0f1629 0%, #2f6bff 70%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tiles { display: grid; gap: 0.75rem; margin-top: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.55);
}
.tile-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); }
.tile-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile-note { font-size: 0.8125rem; color: var(--muted-foreground); }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 1.5rem; min-width: 0; transition: transform 160ms ease, box-shadow 160ms ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--ok-soft);
  color: var(--ok);
}
.icon svg { width: 1.125rem; height: 1.125rem; }
.feature h2 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.feature p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--muted-foreground); }

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (max-width: 720px) {
  .tiles, .features { grid-template-columns: 1fr; }
  main { gap: 1.5rem; padding-block: 1.5rem 2rem; }
  .demo, .feature { padding: 1.25rem; }
}
