/* Kjørebok ENK — landing page. System fonts only, no external resources, light and dark. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #5f5f64;
  --accent: #0066cc;
  --accent-text: #ffffff;
  --rule: #d2d2d7;
  --draft-bg: #fff4ce;
  --draft-text: #4a3b00;
  --radius: 18px;
  --gutter: 20px;
  --max: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #2997ff;
    --accent-text: #000000;
    --rule: #424245;
    --draft-bg: #3a3000;
    --draft-text: #ffe58a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
  padding: 8px 12px;
  background: var(--card);
  z-index: 10;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 600;
  color: var(--text);
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */

.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.hero .lead {
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
}

.store-badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.store-badge.placeholder {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--rule);
  font-weight: 400;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
}

.section:not(.alt) .features li {
  background: var(--bg-alt);
}

.features h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.features p {
  margin: 0;
  color: var(--text-secondary);
}

/* Screenshots: a row that scrolls sideways on small screens, without script. */

.shots {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  margin: 0;
  list-style: none;
  justify-content: flex-start;
}

.shots li {
  flex: 0 0 auto;
  width: min(240px, 62vw);
  scroll-snap-align: center;
  text-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--rule);
  display: block;
}

.shots figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

@media (min-width: 1060px) {
  .shots {
    justify-content: center;
  }
}

/* Prices */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.price {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.price h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.price .amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 8px;
}

.price p {
  margin: 0;
  color: var(--text-secondary);
}

.note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 700px;
  margin: 24px auto 0;
}

.center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Legal pages */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 24px;
}

.legal h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}

.legal blockquote {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--draft-bg);
  color: var(--draft-text);
}

.legal blockquote p {
  margin: 0;
}

.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

.legal li {
  margin-bottom: 6px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 24px 0 40px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.site-footer p {
  margin: 4px 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
