/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  --bg:        #fafafa;
  --surface:   #ffffff;
  --text:      #0a0a0a;
  --text-dim:  #525252;
  --text-mute: #6b6b6b;
  --border:    #e5e5e5;
  --accent:    #0a0a0a;
  --accent-fg: #fafafa;
  --focus:     #1F4E5C;
  --radius:    6px;
  --maxw:      680px;
  --serif:     "Söhne", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:      ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0a0a;
    --surface:   #171717;
    --text:      #fafafa;
    --text-dim:  #a3a3a3;
    --text-mute: #8f8f8f;
    --border:    #262626;
    --accent:    #fafafa;
    --accent-fg: #0a0a0a;
    --focus:     #5eead4;
  }
}

/* ---------- Base ---------- */
body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex: 1;
}

a { color: var(--text); text-underline-offset: 0.2em; }
a:hover { color: var(--text-dim); }
a:focus-visible, summary:focus-visible, iframe:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  font-size: 0.875rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--accent-fg); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.04em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.875rem;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ---------- Content ---------- */
main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

section { display: flex; flex-direction: column; gap: 0.75rem; }
section > p, section > ul, section > ol { margin: 0; }
p, li { color: var(--text-dim); font-size: 0.9375rem; }
li + li { margin-top: 0.375rem; }
strong { color: var(--text); font-weight: 600; }

.lede {
  font-size: 1rem;
  color: var(--text-dim);
  margin: 0;
  max-width: 56ch;
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card p { margin: 0; }

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

.pricing {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-mute);
}


/* ---------- Facts ---------- */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.625rem 1.5rem;
  font-size: 0.875rem;
  padding: 1.25rem 0;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.facts dt {
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.125rem;
}
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.125rem; }
  .facts dd + dt { margin-top: 0.625rem; }
}

address { font-style: normal; }

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.button:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.button.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.button.primary:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 1.75;
}

/* ---------- Video ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
figure { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
figcaption { font-size: 0.8125rem; color: var(--text-mute); }

/* ---------- Legal documents ---------- */
.doc { gap: 2.25rem; }
.doc section h2 { scroll-margin-top: 1rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-mute);
  margin: 0;
}
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; }
.toc li { font-size: 0.875rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-mute);
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-footer li { font-size: 0.75rem; margin: 0; }
.site-footer a { color: var(--text-mute); }
.site-footer a:hover { color: var(--text); }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

::selection {
  background: var(--text);
  color: var(--bg);
}
