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

/* the panel's own colours, so the page and the product look like one thing */
:root {
  --paper: #f2f3f5;
  --card: #ffffff;
  --ink: #17191c;
  --muted: #5d6470;
  --line: #e2e4e9;
  --accent: #4352e3;
  --focus: #2f5bea;
  --blue: #3567e6;
  --green: #169b62;
  --orange: #d9822b;
  --lift: 0 1px 2px rgba(22, 27, 36, .06), 0 14px 34px -14px rgba(22, 27, 36, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1012;
    --card: #1a1b1e;
    --ink: #ececef;
    --muted: #9a9ea6;
    --line: #2a2b30;
    --accent: #8a9cff;
    --focus: #8aa6ff;
    --blue: #5b86f2;
    --green: #2fb57a;
    --orange: #e79a4d;
    --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
/* :where keeps the specificity of a plain a, so a link's own corners stay */
a:where(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* top line */
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
}
.top a:not(.brand) {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.top a:not(.brand):hover {
  color: var(--ink);
}
.top .gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -6px -4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.top .gh:hover {
  background: var(--line);
}
.gh svg {
  flex: none;
}

/* buttons */
.install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s;
}
.install:hover {
  transform: translateY(-1px);
}
.install svg {
  width: 20px;
  height: 20px;
}

/* first screen */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px 64px;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 70px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.cta .note {
  color: var(--muted);
  font-size: 15px;
}

/* the deck: one line per signed-in account, dealt on top of each other */
.deck {
  position: relative;
  display: grid;
  gap: 0;
  padding: 8px 40px 8px 4px;
}
.acc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--lift);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  animation: deal .55s cubic-bezier(.2, .8, .2, 1) both;
}
.acc + .acc {
  margin-top: -14px;
}
.acc:nth-child(1) {
  transform: translateX(0) rotate(-2.2deg);
  animation-delay: .05s;
}
.acc:nth-child(2) {
  transform: translateX(18px) rotate(.8deg);
  animation-delay: .17s;
}
.acc:nth-child(3) {
  transform: translateX(36px) rotate(-1deg);
  animation-delay: .29s;
}
.acc .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.acc .addr {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc .n {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 13px;
  background: var(--c);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
@keyframes deal {
  from {
    opacity: 0;
    translate: 0 -40px;
  }
}

/* screenshot */
.shot {
  margin-block: 0;
  padding-bottom: 24px;
}
.shot img {
  width: 100%;
  border-radius: 18px;
}

/* sections */
.block {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px 56px;
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 44px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}
.features p {
  margin: 0;
  color: var(--muted);
}

/* the mail services: plain names, no logos */
.works {
  min-width: 0;
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.services li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  white-space: nowrap;
}
.works p {
  max-width: 38em;
  margin: 0 0 16px;
  color: var(--muted);
}
.works p:last-child {
  margin-bottom: 0;
}

/* screens: two to a row, the store's pictures */
.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-width: 0;
}
.screens img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
}
.screens img:first-child {
  grid-column: 1 / -1;
}

/* keys */
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.keys li {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 10px;
  width: 82px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
kbd {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  color: var(--ink);
  font: 600 19px/1 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.after {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* privacy */
.quiet p {
  max-width: 36em;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.5;
}
.quiet a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* foot */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot p {
  margin: 0 auto 0 0;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* the privacy page */
.doc {
  max-width: 680px;
  padding-block: 48px 72px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
}
.doc .date {
  margin: 12px 0 36px;
  color: var(--muted);
}
.doc h2 {
  margin: 40px 0 12px;
  font-size: 24px;
}
.doc p,
.doc li {
  color: var(--ink);
}
.doc li + li {
  margin-top: 10px;
}
.doc code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--card);
  font-size: .9em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 40px;
  }
  .deck {
    max-width: 460px;
  }
  .block {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 56px;
  }
  .after {
    grid-column: 1;
  }
}
@media (max-width: 600px) {
  .lede,
  .quiet p {
    font-size: 18px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .screens {
    grid-template-columns: 1fr;
  }
  .acc {
    font-size: 15px;
    padding: 15px 16px;
  }
  .deck {
    padding-right: 24px;
  }
  .acc:nth-child(2) {
    transform: translateX(12px) rotate(.8deg);
  }
  .acc:nth-child(3) {
    transform: translateX(24px) rotate(-1deg);
  }
  .keys {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 8px;
  }
  .keys li {
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .acc {
    animation: none;
  }
  .install {
    transition: none;
  }
}
