/* Ugebord – same tokens as the app (Design/Brand.swift, "Roligt ugeoverblik"). */
:root {
  --bg: #F2F1EC;
  --surface: #FDFCF7;
  --raised: #FFFFFF;
  --text: #1D1E1A;
  --muted: #6D6C64;
  --detail: #5F5E57;
  --border: #E3E1D9;
  --control: #E9E8E1;
  --tile: #E3E8D6;
  --action: #3F4B2C;
  --action-label: #FFFFFF;
  --accent-text: #46552D;
  --accent-fill: #56663A;
  --wash: rgba(86, 102, 58, 0.12);
  --frame: #1D1E1A;
  --frame-edge: #3A3B35;
  --shadow: 0 18px 40px -18px rgba(29, 30, 26, 0.28), 0 4px 12px -6px rgba(29, 30, 26, 0.12);
  --shadow-soft: 0 10px 28px -16px rgba(29, 30, 26, 0.22);

  --s-xs: 8px; --s-s: 12px; --s-m: 16px; --s-l: 24px; --s-xl: 32px; --s-xxl: 48px;
  --radius: 18px;
  --page: 20px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121310;
    --surface: #1C1D19;
    --raised: #25261F;
    --text: #F1F0EA;
    --muted: #A3A298;
    --detail: #A3A298;
    --border: #2E2F29;
    --control: #2A2B25;
    --tile: #2A3121;
    --action: #B3C291;
    --action-label: #15170F;
    --accent-text: #B3C291;
    --accent-fill: #B3C291;
    --wash: rgba(179, 194, 145, 0.12);
    --frame: #0B0B09;
    --frame-edge: #3A3B33;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 10px 28px -16px rgba(0, 0, 0, 0.6);
  }
}

*, *::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: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", system-ui, sans-serif; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--page); }
.muted { color: var(--muted); }

/* Header */
.site-header { padding: var(--s-m) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--border); }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--control); }
.nav a[aria-current="page"] { background: var(--raised); box-shadow: 0 0 0 1px var(--border); }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--action); color: var(--action-label); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--wash); color: var(--accent-text); font-size: 15px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); }

/* Hero */
.hero { padding: var(--s-l) 0 var(--s-xxl); }
.hero .wrap { display: grid; gap: var(--s-xxl); align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 22.5%; box-shadow: var(--shadow-soft), 0 0 0 1px var(--border); margin-bottom: var(--s-l); }
.hero h1 { font-size: clamp(44px, 12vw, 76px); font-weight: 800; }
.hero .lead { font-size: clamp(20px, 4.6vw, 25px); line-height: 1.35; margin-top: var(--s-s); max-width: 30ch; letter-spacing: -0.01em; }
.hero .sub { color: var(--muted); margin-top: var(--s-m); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-s) var(--s-m); margin-top: var(--s-l); }
.hero-cta .note { font-size: 15px; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-width: 0; }
.hero-visual .phone { width: min(300px, 72vw); }
.hero-visual .phone.back { position: absolute; width: min(230px, 52vw); left: 50%; bottom: 8%; transform: translateX(-118%) rotate(-5deg); opacity: 0.98; display: none; }

/* Device frames (drawn in CSS) */
.phone {
  position: relative;
  padding: 3.4%;
  border-radius: 15% / 7%;
  background: var(--frame);
  box-shadow: var(--shadow), inset 0 0 0 1.5px var(--frame-edge);
}
.phone img { width: 100%; border-radius: 12% / 5.6%; background: var(--bg); }
.phone.cover { border-radius: 13% / 8%; padding: 4%; }
.phone.cover img { border-radius: 10% / 6%; }
.foldable {
  position: relative;
  padding: 1.6%;
  border-radius: 4.5% / 6.4%;
  background: var(--frame);
  box-shadow: var(--shadow), inset 0 0 0 1.5px var(--frame-edge);
}
.foldable img { width: 100%; border-radius: 3.2% / 4.6%; background: #121310; }

/* Sections */
section { padding: var(--s-xxl) 0; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-text); margin-bottom: var(--s-xs); }
.section-head { max-width: 640px; margin-bottom: var(--s-xl); }
.section-head h2 { font-size: clamp(30px, 6.4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: var(--s-s); font-size: 18px; }

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

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-m); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--s-m); align-items: start; }
.steps li::before {
  content: counter(step);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tile); color: var(--accent-text);
  font-weight: 700; font-size: 17px;
}
.steps h3 { font-size: 20px; font-weight: 700; margin-top: 5px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* Duo */
.duo-grid { display: grid; gap: var(--s-xl); align-items: end; }
.duo-wide figure, .duo-cover figure { margin: 0; }
.duo-cover .phone { width: min(260px, 70vw); margin: 0 auto; }
figcaption { margin-top: var(--s-m); font-size: 15px; color: var(--muted); text-align: center; }
figcaption strong { color: var(--text); font-weight: 600; display: block; font-size: 16px; }

/* Features */
.features { display: grid; gap: var(--s-m); }
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--s-m); align-items: start; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tile); color: var(--accent-text);
  display: grid; place-items: center;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-top: 2px; }
.feature p { color: var(--muted); margin-top: 4px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--border); color: var(--detail); }

/* Gallery */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(230px, 62vw);
  gap: var(--s-l);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--page) 28px;
  margin: 0 calc(var(--page) * -1);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .device { font-size: 13px; font-weight: 600; color: var(--accent-text); display: block; margin-top: 2px; }

/* Beta */
.beta { text-align: center; padding: var(--s-xl) var(--s-l); }
.beta h2 { font-size: clamp(26px, 5.6vw, 36px); font-weight: 800; }
.beta p { color: var(--muted); margin: var(--s-s) auto 0; max-width: 44ch; }
.beta .hero-cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: var(--s-xl) 0 var(--s-xxl); margin-top: var(--s-xl); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: var(--s-m); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-l); }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; }

/* Text pages (privatliv, support) */
.doc { max-width: 720px; padding-top: var(--s-l); padding-bottom: var(--s-xl); }
.doc h1 { font-size: clamp(34px, 8vw, 46px); font-weight: 800; }
.doc h2 { font-size: 22px; font-weight: 700; margin: var(--s-xl) 0 var(--s-xs); }
.doc p, .doc li { margin-top: var(--s-xs); }
.doc ul { padding-left: 22px; margin: 0; }
.doc li + li { margin-top: 10px; }
.doc .card { margin-top: var(--s-m); padding: var(--s-m) 20px; }
.doc .lede { color: var(--muted); margin-top: 6px; }
.faq { display: grid; gap: var(--s-s); margin-top: var(--s-m); }
.faq .card { margin: 0; }
.faq h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.faq p { margin: 0; color: var(--muted); }

@media (max-width: 379px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}

/* Wider screens */
@media (min-width: 560px) {
  :root { --page: 28px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-l); }
  .steps li { grid-template-columns: 1fr; gap: var(--s-s); }
  .steps li.card { padding: var(--s-l); }
  .hero-visual { padding-left: 18%; }
  .hero-visual .phone.back { display: block; }
}
@media (min-width: 960px) {
  :root { --page: 40px; }
  .hero { padding-top: var(--s-xl); }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .hero-visual { padding-left: 0; justify-content: flex-end; }
  .hero-visual .phone { width: 300px; }
  .hero-visual .phone.back { width: 236px; left: auto; right: 210px; transform: rotate(-5deg); }
  .duo-grid { grid-template-columns: 2.6fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); gap: var(--s-l); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 8px 0 0; gap: var(--s-xxl) var(--s-l); }
  .gallery figure { width: 100%; max-width: 270px; margin: 0 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .2s ease-out, filter .2s ease-out; }
}
