/* LadeTid — ladetid.lrdevops.dk */

:root {
  --bg: #0b2836;
  --surface: #12394c;
  --surface-2: #17475d;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eaf2f6;
  --muted: #9db6c3;
  --accent: #f5d431;
  --accent-ink: #2a2200;
  --radius: 14px;
  --wrap: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 40, 54, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, #0b2836 0%, #12525c 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-inline: auto;
  max-width: 300px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffe45c; color: var(--accent-ink); }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 + .sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

h3 { font-size: 1.1rem; margin: 0 0 8px; }

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card p { color: var(--muted); margin: 0; }

.card .ico { font-size: 1.6rem; display: block; margin-bottom: 10px; }

/* ---------- guide steps ---------- */

.step {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.step + .step { border-top: 1px solid var(--line); }

/* Alternate sides: the column template must flip too, or the screenshot
   ends up in the wide column and the text in the narrow one. */
.step:nth-child(even) { grid-template-columns: 1fr 300px; }
.step:nth-child(even) .step-shot { order: 2; }

.step-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-num {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0 0 12px; }
.step ul { color: var(--muted); margin: 0; padding-left: 20px; }
.step li { margin-bottom: 6px; }

.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq details[open] { background: var(--surface-2); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p { color: var(--muted); margin: 12px 0 0; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- prose (privacy) ---------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font-size: 1.35rem; }
.prose h2:first-of-type { margin-top: 24px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th { color: var(--text); }
.prose td { color: var(--muted); }

.table-scroll { overflow-x: auto; }

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
  display: inline-block;
}

.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p { margin: 0; }

/* ---------- page head ---------- */

.page-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { order: -1; }
  .hero-shot img { max-width: 240px; }
  .step,
  .step:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .step:nth-child(even) .step-shot { order: 0; }
  .step-shot { max-width: 280px; }
  section { padding: 48px 0; }
}
