/* ==========================================================================
   landing.css — kun til tekstblok.html (forsiden / landingspage)
   Bruger samme farvesprog som selve editoren (assets/style/style.css),
   men holdt i sin egen fil, da layoutet er helt anderledes end appen.
   ========================================================================== */

:root {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --border: #dfe2ea;
  --text: #1c2030;
  --muted: #6b7286;
  --accent: #2f5bea;
  --accent-soft: #e6ecff;
  --accent-text: #ffffff;

  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161d;
    --panel: #1b1e28;
    --border: #2a2f3d;
    --text: #e6e8ef;
    --muted: #8b92a7;
    --accent: #6f8dff;
    --accent-soft: #252c47;
    --accent-text: #0e1220;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  line-height: 1.6;
}

a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Fælles knapper (matcher editorens .btn) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}
.btn:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.lg { padding: 13px 24px; font-size: 16px; }

/* ---------- Topbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.logo__bracket { color: var(--accent); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .85rem;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero__title em { color: var(--accent); font-style: normal; }

.hero__lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 auto 2.25rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}

/* ---------- Sektioner ---------- */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section__eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .8rem;
  text-align: center;
  margin-bottom: .6rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .75rem;
}

.section__lede {
  color: var(--muted);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.feature-card__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: .9rem;
}
.feature-card__icon .material-symbols-outlined { font-size: 20px; }

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.feature-card p {
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- "Hvorfor" sektion ---------- */
.why {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.why__inner p { margin-bottom: 1rem; color: var(--text); }
.why__inner p:last-child { margin-bottom: 0; }
.why__inner strong { color: var(--accent); }

/* ---------- Slut-CTA ---------- */
.cta {
  max-width: 700px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5.5rem;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .6rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}
.site-footer nav a:hover { color: var(--accent); }

/* ---------- Responsivt ---------- */
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
}