@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #566173;
  --line: #dde2ea;
  --cobalt: #2f5bea;
  --cobalt-deep: #1e3fb8;
  --mint: #d9f2e6;
  --butter: #fff0c2;
  --lilac: #e6defc;
  --sky: #d8e6ff;
  --radius-icon: 22%;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--cobalt-deep); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1120px, 100% - 64px); } }

/* Header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav a:hover { color: var(--cobalt); }

/* Hero */
.hero { padding: 56px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 11ch;
}
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.button {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--cobalt-deep); color: #fff; }

/* The phone: the one bold element */
.phone {
  justify-self: center;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 30px 60px -28px rgba(15, 27, 45, 0.55);
}
.screen {
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(170deg, #f8faff 0%, #e9eefb 100%);
  padding: 64px 22px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 22px 18px;
  position: relative;
}
.screen::before {
  content: ""; position: absolute; top: 14px; left: 50%; translate: -50% 0;
  width: 88px; height: 26px; border-radius: 999px; background: var(--ink);
}
.tile { aspect-ratio: 1; border-radius: var(--radius-icon); }
.dock {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 12px; border-radius: 28px; background: rgba(255,255,255,0.7);
}
.tile.mint { background: var(--mint); }
.tile.butter { background: var(--butter); }
.tile.lilac { background: var(--lilac); }
.tile.sky { background: var(--sky); }
.tile.cobalt { background: var(--cobalt); }
.tile.outline { border: 1.5px dashed #c9d1df; background: rgba(255,255,255,0.5); }
.tile.mark { background: var(--cobalt) url(/favicon.svg) center / 100% no-repeat; }

@media (prefers-reduced-motion: no-preference) {
  .screen .tile { transform: scale(0.85); animation: pop 0.5s cubic-bezier(.2,.8,.2,1) forwards; }
  .screen .tile:nth-child(1) { animation-delay: .15s; }
  .screen .tile:nth-child(2) { animation-delay: .25s; }
  .screen .tile:nth-child(3) { animation-delay: .35s; }
  .screen .tile:nth-child(4) { animation-delay: .45s; }
  .screen .tile:nth-child(5) { animation-delay: .55s; }
  .screen .tile:nth-child(6) { animation-delay: .65s; }
  .screen .tile:nth-child(7) { animation-delay: .75s; }
  .screen .tile:nth-child(8) { animation-delay: .85s; }
  .screen .tile:nth-child(9) { animation-delay: .95s; }
  @keyframes pop { to { opacity: 1; transform: none; } }
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 16px; }
.lead { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 1.125rem; }

/* Apps */
.status {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center;
  padding: 24px; max-width: 640px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg);
}
.status .tile { width: 72px; }
.status h3 { margin: 0; font-size: 1.15rem; font-weight: 650; }
.status p { margin: 4px 0 0; color: var(--muted); }

/* What we do */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; }
.points dt { font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.points dd { margin: 0; color: var(--muted); }

/* Company facts */
.facts { display: grid; grid-template-columns: 220px 1fr; margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 550; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer a { color: var(--muted); white-space: nowrap; display: inline-block; padding: 10px 0; }
.site-footer span { padding: 10px 0; }

/* Legal pages */
.doc { padding: 40px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: 68ch; }

@media (max-width: 860px) {
  .phone { width: min(260px, 70vw); }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 24px 0 64px; }
  .points { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 4px; }
  .nav { gap: 18px; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .nav a:nth-child(1) { display: none; }
  .status { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; }
  .status .tile { width: 56px; }
}
