/* Kørebog marketing site — shared styles.
   Small, calm, native-feeling. No frameworks, no build step. */

:root {
  --ink: #1a2130;
  --ink-soft: #4b5563;
  --paper: #faf8f4;
  --paper-raised: #ffffff;
  --border: #e6e1d6;
  --accent: #1f6f54;
  --accent-ink: #ffffff;
  --accent-soft: #e7f1ec;
  --danger: #9a3412;
  --radius: 14px;
  --max: 720px;
  --max-wide: 860px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a, .lang-switch span {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
}

.lang-switch a:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent); }

.lang-switch [aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--paper-raised); border-color: var(--ink); }

.btn-store {
  gap: 10px;
}
.btn-store .apple-mark { font-size: 1.2rem; line-height: 1; }
.btn-store .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn-store .store-text small { font-size: 0.68rem; font-weight: 500; opacity: 0.85; }
.btn-store .store-text strong { font-size: 0.98rem; }

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Sections */
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--border); }

.section-heading {
  margin-bottom: 28px;
}
.section-heading p { color: var(--ink-soft); max-width: 60ch; }

/* Steps */
.steps {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding: 20px;
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.95rem; }

/* Why list */
.why-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .why-list { grid-template-columns: 1fr 1fr; }
}

.why-list li {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.why-list strong {
  display: block;
  margin-bottom: 4px;
}

.why-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Privacy band */
.privacy-band {
  background: var(--accent-soft);
}

.privacy-points {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.privacy-points .mark {
  flex: none;
  color: var(--accent);
  font-weight: 700;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 56px 0;
}
.final-cta .hero-ctas { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
  padding: 0;
  list-style: none;
}

.footer-links a { color: var(--ink); font-weight: 600; }

.footer-meta { font-size: 0.85rem; }

/* Content pages (support/privacy) */
.page-header {
  padding: 40px 0 8px;
}

.doc h2 {
  margin-top: 2.2em;
}
.doc h2:first-of-type { margin-top: 1.4em; }

.doc h3 {
  margin-top: 1.6em;
}

.doc ul, .doc ol {
  padding-left: 1.3em;
}

.doc li { margin-bottom: 0.5em; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:first-of-type { border-top: none; padding-top: 0; }

.faq-item h3 { margin-bottom: 8px; }
.faq-item p, .faq-item ul { color: var(--ink-soft); }

.callout {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p:last-child { margin-bottom: 0; }

.meta-line {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 2em;
}

.back-home {
  display: inline-block;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 420px) {
  .container-wide, .container { padding: 0 16px; }
  .header-right { gap: 8px; }
  .header-right .btn { display: none; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .lang-switch { font-size: 0.8rem; }
  .lang-switch a, .lang-switch span { padding: 4px 6px; }
}
