/* Schibsted Grotesk (SIL Open Font License 1.1, Schibsted), selbst gehostet, lateinischer Zeichensatz */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #fbfbfd;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0066cc;
  --hair: #d2d2d7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Schibsted Grotesk", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}
.button:focus-visible { border-radius: 980px; }

/* Only for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 18px; height: 18px; fill: currentColor; }
.nav-link { color: var(--text); font-size: 14px; opacity: 0.8; }
.nav-link:hover { opacity: 1; text-decoration: none; }

/* Hero */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 22px 100px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.lead {
  margin: 28px auto 0;
  max-width: 560px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

/* Apps */
.apps {
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  gap: 20px;
}
.app {
  background: var(--surface);
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
}
.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.35);
}
.app h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app p {
  margin-top: 10px;
  font-size: 17px;
  color: var(--muted);
}

/* Second headline (Mac apps) */
.section-head {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 22px 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.apps-single { grid-template-columns: minmax(0, 353px); justify-content: center; }
.apps-pair { grid-template-columns: repeat(2, minmax(0, 353px)); justify-content: center; }
.app-link { display: inline-block; margin-top: 14px; font-size: 17px; }
/* Mac icons bring their own shape and shadow */
.app-icon.mac {
  width: 140px;
  height: 140px;
  margin: -14px auto 10px;
  border-radius: 0;
  box-shadow: none;
}

/* Contact */
.contact {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 22px 160px;
  text-align: center;
}
.contact h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--text);
  color: #fff;
  font-size: 17px;
}
.button:hover { text-decoration: none; background: #000; }

/* Footer */
.footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--hair);
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

/* Legal pages */
.legal {
  max-width: 692px;
  margin: 0 auto;
  padding: 100px 22px 140px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.legal h2 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
.legal p { font-size: 17px; color: var(--text); }
.legal ul { font-size: 17px; margin: 8px 0 0 1.2em; }
.legal li + li { margin-top: 4px; }
.legal ul + p { margin-top: 8px; }
.legal .lang-switch { font-size: 14px; margin-bottom: 12px; }
.legal .meta { color: var(--muted); }
.legal .legal-links { margin-top: 16px; }
.legal .lang-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--hair);
}
.legal code { font-size: 15px; word-break: break-all; }

/* 404 */
.notfound { text-align: center; padding-top: 140px; }
.notfound h1 { margin-bottom: 16px; }
.notfound .button { color: #fff; }

@media (max-width: 900px) {
  .apps { grid-template-columns: 1fr; max-width: 520px; }
  .apps-single { grid-template-columns: 1fr; }
  .apps-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 96px 22px 72px; }
  .apps { grid-template-columns: 1fr; gap: 14px; }
  .app { padding: 40px 24px; }
  .app-icon { width: 96px; height: 96px; margin-bottom: 20px; }
  .app-icon.mac { width: 120px; height: 120px; margin: -12px auto 8px; }
  .section-head { padding: 110px 22px 48px; }
  .contact { padding: 110px 22px 120px; }
}
