/* Skils website. Minimal: a white page, large quiet type, generous space,
 * and thin rules only where a list needs them. No sheets, no shadows, no
 * gradients. The app's own tokens: SF system type, the Skils blue, its ink and
 * grey ramp. System fonts only, so nothing loads from a third party. */
:root {
  --bg: #FFFFFF;
  --ink: #16141A;
  --body: #3B3941;
  --muted: #6E6D74;
  --faint: #8E8D94;
  --line: #ECECF0;
  --soft: #F6F6F8;
  --tint: #F4F7FF;
  --blue: #2F6BFF;
  --blue-text: #2A5FE6;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #D3D2D8;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.icon { flex: none; }

.skip {
  position: absolute;
  left: 24px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus { top: 16px; }

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

.site-header { padding: 24px 0 0; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  color: var(--blue-text);
  font: 900 22px/1 var(--display);
  letter-spacing: -0.04em;
}
.brand-label { color: var(--faint); font: 500 15px/1 var(--text); }

.site-nav {
  order: 3;
  display: flex;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); font-weight: 500; }

.lang { display: flex; gap: 12px; margin-left: auto; }
.lang a {
  color: var(--faint);
  font: 600 13px/1 var(--text);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang a:hover, .lang a[aria-current] { color: var(--ink); }

@media (min-width: 860px) {
  .site-header { padding-top: 32px; }
  .site-nav { order: 0; width: auto; margin-left: auto; gap: 32px; overflow: visible; }
  .lang { margin-left: 0; padding-left: 28px; border-left: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ home */

.home-head { max-width: 820px; padding: 80px 0 88px; }

.display {
  margin: 0 0 28px;
  color: var(--ink);
  font: 700 clamp(42px, 7vw, 76px)/1.02 var(--display);
  letter-spacing: -0.045em;
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.home-section { padding: 0 0 96px; }

.kicker {
  margin: 0 0 22px;
  color: var(--faint);
  font: 600 12.5px/1 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.index a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.index-title {
  color: var(--ink);
  font: 600 21px/1.3 var(--display);
  letter-spacing: -0.015em;
}
.index-text { grid-column: 1; color: var(--muted); font-size: 16px; line-height: 1.5; }
.index .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--faint);
  transition: transform 0.2s ease, color 0.2s ease;
}
.index a:hover .icon { color: var(--ink); transform: translateX(4px); }

@media (min-width: 760px) {
  .index a { grid-template-columns: 320px 1fr auto; padding: 30px 0; }
  .index-text { grid-column: 2; }
  .index .icon { grid-column: 3; grid-row: 1; }
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .icon { display: block; margin-bottom: 18px; color: var(--blue); }
.features strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font: 600 17.5px/1.35 var(--display);
  letter-spacing: -0.01em;
}
.features p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.home-contact { padding-top: 40px; border-top: 1px solid var(--line); }
.home-contact p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ documents */

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 64px;
}

.doc-head { margin-bottom: 56px; }
.doc-head .eyebrow { display: none; }  /* the header nav already says where you are */
.doc-head .lead { margin-top: 20px; }

.title {
  margin: 0 0 18px;
  color: var(--ink);
  font: 700 clamp(38px, 5.6vw, 58px)/1.04 var(--display);
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.meta { margin: 0; color: var(--faint); font-size: 15px; line-height: 1.6; }

@media (min-width: 1080px) {
  .doc-layout {
    grid-template-columns: 200px minmax(0, 720px);
    grid-template-areas: ". head" "toc body";
    column-gap: 88px;
    padding-top: 96px;
  }
  .doc-layout > .doc-head { grid-area: head; }
  .doc-layout > .toc-desktop { grid-area: toc; }
  .doc-layout > .prose, .doc-layout > .doc-body { grid-area: body; }
}

.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.toc .num {
  flex: none;
  width: 18px;
  padding-top: 1px;
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.toc-title {
  margin: 0 0 14px;
  color: var(--faint);
  font: 600 12px/1 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-desktop { display: none; }
.toc-mobile {
  margin: 0 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { color: var(--faint); transition: transform 0.2s ease; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile ol { padding: 0 0 14px; }

@media (min-width: 1080px) {
  .toc-mobile { display: none; }
  .toc-desktop { display: block; position: sticky; top: 40px; align-self: start; padding-top: 4px; }
}

/* The text itself: no container, just rhythm. */
.prose > section { padding: 0 0 72px; }
.prose > section:last-child { padding-bottom: 0; }

.prose h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font: 650 27px/1.25 var(--display);
  letter-spacing: -0.025em;
}
.prose h2 .num {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font: 600 13px/1 var(--text);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.prose h3 {
  margin: 44px 0 12px;
  color: var(--ink);
  font: 600 19px/1.35 var(--display);
  letter-spacing: -0.015em;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; }
.prose li { margin: 0 0 10px; padding-left: 6px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose > section > :last-child, .prose .data > :last-child { margin-bottom: 0; }

/* The key points: the one soft block on the page. */
.prose > section.summary {
  margin: 0 0 80px;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--tint);
}
.summary h2 {
  margin-bottom: 22px;
  color: var(--blue-text);
  font: 600 12.5px/1 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checks { margin: 0 !important; padding: 0 !important; list-style: none; }
.checks li {
  display: flex;
  gap: 14px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ink);
  line-height: 1.55;
}
.checks li:last-child { margin-bottom: 0; }
.checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--blue); }
@media (min-width: 760px) { .prose > section.summary { padding: 36px 40px; } }

.data { margin-top: 44px; }
.data h3 { margin-top: 0; }

/* What · Why · Legal basis · How long */
.facts { margin: 20px 0 0; }
.facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  color: var(--faint);
  font: 600 12px/1.9 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.facts dd { margin: 0; font-size: 16px; }
@media (min-width: 640px) { .facts div { grid-template-columns: 136px 1fr; gap: 24px; } }

.note {
  margin: 22px 0 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--soft);
  font-size: 16px;
}

.address { font-style: normal; }

/* Imprint: label and value */
.pairs { margin: 0; }
.pairs div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.pairs div:last-child { border-bottom: 1px solid var(--line); }
.pairs dt { color: var(--muted); font-size: 15px; }
.pairs dd { margin: 0; color: var(--ink); }
@media (min-width: 640px) { .pairs div { grid-template-columns: 200px 1fr; gap: 24px; } }

/* Licences */
.table-wrap { margin: 0 0 18px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  padding-top: 0;
  color: var(--faint);
  font: 600 12px/1.4 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td:first-child { color: var(--ink); font-weight: 500; }

.licence {
  margin: 16px 0 18px;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--soft);
  color: var(--body);
  font: 400 13px/1.65 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------------ support */

.panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin: 0 0 40px;
}
.panel h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font: 650 24px/1.25 var(--display);
  letter-spacing: -0.02em;
}
.panel p { max-width: 520px; margin: 0; color: var(--muted); }

.faq-title {
  margin: 0;
  padding: 40px 0 14px;
  color: var(--faint);
  font: 600 12.5px/1 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--ink);
  font: 500 18px/1.4 var(--display);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--faint); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 32px 26px 0; }
.faq .answer p { margin: 0 0 14px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq strong { color: var(--ink); font-weight: 600; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 16px/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { background: #2E2B34; }
.button .icon { width: 18px; height: 18px; }

mark.todo {
  padding: 1px 5px;
  border-radius: 6px;
  background: #FFF1B8;
  color: #6B4E00;
  font-weight: 600;
}

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

.site-footer { margin-top: 128px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.footer-note {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}
.footer-note .brand-mark { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip, .toc { display: none; }
  .doc-layout { display: block; padding-top: 0; }
  .prose > section.summary { background: none; border: 1px solid var(--line); }
}
