@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FBFAFF;
  --ink: #1D1533;
  --muted: #6E6684;
  --berry: #E0245E;
  --peach: #FFDCC2;
  --aqua: #C6EFEA;
  --lilac: #DFD9FF;
  --butter: #FFF0B8;
  --display: "Bricolage", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--berry); }
a:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 750;
  font-variation-settings: "opsz" 96;
}

/* Top bar */
.top {
  max-width: 1180px; margin: 0 auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -0.02em;
}
.brand img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(29, 21, 51, .08), 0 4px 12px -4px rgba(29, 21, 51, .25); }

.side { display: flex; align-items: center; gap: 18px; }
.lang { color: var(--muted); font-size: 15px; font-weight: 500; text-underline-offset: 3px; }
.lang:hover { color: var(--ink); }

/* Apple's badge */
.badge { display: inline-block; border-radius: 12px; transition: transform .15s ease; }
.badge img { height: 60px; width: auto; }
.badge:hover { transform: translateY(-1px); }

/* The button that gets the app */
.get {
  display: inline-block;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px;
  padding: 15px 24px; border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease;
}
.get:hover { background: var(--berry); transform: translateY(-1px); }
.get:active { transform: translateY(0); }
.get.small { font-size: 15px; padding: 9px 16px; }

/* Hero */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 40px 28px 96px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
}
h1 {
  font-size: clamp(52px, 7.6vw, 104px);
  line-height: .92;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-variation-settings: "opsz" 96;
}
:lang(de) h1 { font-size: clamp(46px, 6vw, 82px); }
.lede { font-size: 21px; color: var(--muted); max-width: 30em; margin: 28px 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fine { color: var(--muted); font-size: 15px; }

/* The board of saved things */
.board {
  position: relative;
  aspect-ratio: 1 / 1.22;
  container-type: inline-size;
}
.card {
  position: absolute; width: 40%;
  background: #fff;
  border-radius: 6cqw;
  padding: 2.6cqw 2.6cqw 3.4cqw;
  box-shadow: 0 1px 1px rgba(29, 21, 51, .06), 0 14px 34px -10px rgba(29, 21, 51, .22);
  animation: land .7s cubic-bezier(.2, .9, .25, 1.15) both;
}
.card h3 { font-size: 4.3cqw; font-weight: 650; letter-spacing: -0.01em; margin: 1.6cqw 1cqw 0; line-height: 1.15; }
.card .shop { display: block; font-size: 3cqw; color: var(--muted); margin: 2.4cqw 1cqw 0; }
.card .price { margin: .6cqw 1cqw 0; font-size: 4.4cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.pic { position: relative; aspect-ratio: 1 / 1.04; border-radius: 4.2cqw; display: grid; place-items: center; }
.pic svg { width: 66%; }
.aqua { background: var(--aqua); }
.lilac { background: var(--lilac); }
.butter { background: var(--butter); }
.peach { background: var(--peach); }

.c-lamp  { left: 2%;  top: 3%;  width: 34%; --r: -7deg; animation-delay: .1s; }
.c-shirt { right: 3%; top: 0;   width: 32%; --r: 6deg;  animation-delay: .25s; }
.c-mug   { left: 7%;  bottom: 1%; width: 31%; --r: 4deg;  animation-delay: .4s; }
.c-shoe  { left: 43%; top: 45%; width: 40%; --r: -3deg; animation-delay: .55s; z-index: 2; }
.card { transform: rotate(var(--r)); }

.board.waiting .card { opacity: 0; animation: none; }

@keyframes land {
  from { opacity: 0; transform: translateY(-14cqw) rotate(calc(var(--r) * 3)) scale(1.04); }
  to   { opacity: 1; transform: rotate(var(--r)); }
}

/* The price drop */
.hero-card .now { transition: color .3s ease; }
.hero-card .was {
  color: var(--muted); font-weight: 500; font-size: .8em; margin-left: .3em;
  opacity: 0; transition: opacity .3s ease .1s;
}
.tag {
  position: absolute; top: 3cqw; right: 3cqw;
  background: var(--berry); color: #fff;
  font: 700 3.6cqw/1 var(--display); letter-spacing: -0.01em;
  padding: 1.6cqw 2.4cqw; border-radius: 999px;
  transform: scale(0) rotate(-12deg); transform-origin: 80% 20%;
}
.hero-card.dropping .now, .hero-card.dropped .now { color: var(--berry); }
.hero-card.dropped .was { opacity: 1; }
.hero-card.dropped .tag { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pop { to { transform: scale(1) rotate(-6deg); } }

/* Three steps */
.steps { max-width: 1180px; margin: 0 auto; padding: 24px 28px 110px; }
.steps h2 { max-width: 12em; }
.steps ol {
  list-style: none; counter-reset: step;
  margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.steps li { counter-increment: step; }
.steps li p { margin: 22px 0 0; max-width: 21em; color: var(--muted); }
.steps li p strong { color: var(--ink); font-weight: 650; }
.steps li p::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 10px; border-radius: 50%;
  background: var(--berry); color: #fff;
  font: 700 16px/1 var(--display);
  vertical-align: 2px;
}
.steps img, .drop img {
  border-radius: 34px;
  border: 7px solid var(--ink);
  box-shadow: 0 30px 60px -28px rgba(29, 21, 51, .45);
  max-width: 300px;
  width: 100%;
}
.steps li:nth-child(2) img { transform: translateY(28px); }

/* Price drop */
.drop {
  max-width: 1180px; margin: 0 auto; padding: 40px 28px 120px;
  display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center;
}
.drop img { max-width: 320px; }
.drop p { font-size: 20px; color: var(--muted); max-width: 30em; margin: 22px 0 0; }

/* Private: your library on your iPhone and in your iCloud */
.private {
  background: var(--ink); color: #fff;
  padding: 120px 28px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center;
  overflow: hidden;
}
.p-text { justify-self: end; max-width: 680px; width: 100%; }
.private h2 {
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: .9; letter-spacing: -0.05em; font-weight: 800;
}
.private .p-text p { margin: 32px 0 0; font-size: 20px; color: #C9C2DC; max-width: 30em; }

.vault { position: relative; width: 420px; height: 470px; justify-self: start; margin-bottom: 40px; }
.sync { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sync path { fill: none; stroke: #8C7FB8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sync path:first-child { stroke-dasharray: 2 10; }
.cloud { position: absolute; right: 0; top: 0; width: 200px; text-align: center; }
.cloud svg { width: 150px; display: block; margin: 0 auto; }
.cloud svg path { fill: #fff; }
.cloud span, .phone-label { display: block; font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, sans-serif; color: #C9C2DC; }
.cloud span { margin-top: 4px; }
.phone {
  position: absolute; left: 0; bottom: 0;
  width: 236px; height: 312px;
  border: 7px solid #fff; border-radius: 40px;
  background: var(--paper);
  padding: 34px 14px 0;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.island { position: absolute; top: 10px; left: 50%; width: 60px; height: 16px; margin-left: -30px; border-radius: 10px; background: var(--ink); }
.phone-title { margin: 4px 4px 12px; font: 800 22px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles .pic { border-radius: 14px; }
.phone-label { position: absolute; left: 0; right: 0; bottom: -50px; text-align: center; transform: rotate(4deg); }

/* Last call */
.last { max-width: 1180px; margin: 0 auto; padding: 110px 28px 40px; }
.last h2 { margin-bottom: 30px; }
.try { font-weight: 600; text-underline-offset: 4px; }

footer {
  max-width: 1180px; margin: 0 auto; padding: 48px 28px 56px;
  color: var(--muted); font-size: 15px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: inherit; }
footer p { margin: 14px 0 0; }

/* Narrow screens */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 28px; padding-bottom: 72px; }
  .board { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps ol { grid-template-columns: 1fr; gap: 56px; }
  .steps li { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
  .steps li p { margin: 0; }
  .steps li:nth-child(2) img { transform: none; }
  .steps img { border-width: 5px; border-radius: 22px; }
  .drop { grid-template-columns: 1fr; gap: 36px; }
  .drop img { max-width: 260px; }
  .private { padding: 88px 28px; grid-template-columns: 1fr; gap: 48px; }
  .p-text { justify-self: start; }
  .private { padding-bottom: 64px; }
  .vault { justify-self: center; width: 320px; height: 400px; }
  .cloud { width: 160px; }
  .cloud svg { width: 120px; }
  .phone { width: 200px; height: 270px; }
}
@media (max-width: 420px) {
  .top { padding: 18px 20px; }
  .hero, .steps, .drop, .last, footer { padding-left: 20px; padding-right: 20px; }
  .steps li { grid-template-columns: 116px 1fr; }
  .lede { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .hero-card.dropped .tag { animation: none; transform: scale(1) rotate(-6deg); }
  .get, .hero-card .now, .hero-card .was { transition: none; }
}
