/* Effective Planner landing page. Light and dark follow the system setting. */

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-alt: #f4f3ef;
  --ink: #1c1c1e;
  --ink-2: #5c5c61;
  --eyebrow: #8a5a00;
  --warn: #b45309;
  --brand: #ffc21a;
  --on-brand: #1c1c1e;
  --on-brand-2: #3d2e00;
  --hero: #ffc21a;
  --hero-top: #ffc21a;
  --hero-ink: #1c1c1e;
  --hero-ink-2: #3d2e00;
  --ring-1: #ffe7b7;
  --ring-2: #faf6ec;
  --cta-bg: #1c1c1e;
  --cta-ink: #ffc21a;
  --frame: #101012;
  --screen: #f2f2f7;
  --screen-border: #e0ded6;
  /* Privacy, the notice and the footer: warm light greys here, near-black in dark. */
  --inverse: #ecebe5;
  --inverse-card: #ffffff;
  --inverse-ink: #1c1c1e;
  --inverse-ink-2: #5c5c61;
  --inverse-accent: #8a5a00;
  --band: #ecebe5;
  --band-ink: #1c1c1e;
  --focus: #1c1c1e;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121214;
    --surface-alt: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a9a9b0;
    --eyebrow: #ffc21a;
    --warn: #f59e0b;
    --hero: #1c1c1e;
    --hero-top: #1c1c1e;
    --hero-ink: #f5f5f7;
    --hero-ink-2: #d1d1d6;
    --ring-1: #262628;
    --ring-2: #333336;
    --cta-bg: #ffc21a;
    --cta-ink: #1c1c1e;
    --frame: #3a3a3c;
    --screen: #000000;
    --screen-border: #3a3a3c;
    --inverse: #000000;
    --inverse-card: #1c1c1e;
    --inverse-ink: #ffffff;
    --inverse-ink-2: #c7c7cc;
    --inverse-accent: #ffc21a;
    --band: #1c1c1e;
    --band-ink: #ffffff;
    --focus: #ffc21a;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--inverse);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

img,
picture,
svg {
  display: block;
}

img {
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* A section that a header link scrolled to takes focus, without a ring around the whole section. */
[tabindex="-1"]:focus {
  outline: none;
}

/* Off screen until a keyboard user tabs to it. */
.skip {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Layout */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 112px 0;
  background: var(--surface);
}

.section--alt {
  background: var(--surface-alt);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 64px;
}

/* Type */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.title {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
}

.head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.head--center {
  max-width: 760px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.head--wide {
  max-width: 820px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
}

/* Apple's badge, at its own proportions. */
.store-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge img {
  width: auto;
  height: 56px;
}

/* Until the app is out: a quiet pill where the App Store badge and Download go, as tall as the badge.
   Not a link, so it doesn't look pressable. */
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.soon--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--hero-ink);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  border-radius: 22.5%;
  box-shadow: 0 1px 4px rgba(28, 28, 30, 0.3);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 600;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  flex: 1 1 480px;
  min-width: 0;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__copy .eyebrow,
.hero__copy .lede,
.note {
  color: var(--hero-ink-2);
}

.hero h1 {
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__copy .lede {
  max-width: 540px;
  font-size: 22px;
  line-height: 1.45;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.note {
  font-size: 15px;
  line-height: 1.45;
}

.hero__device {
  position: relative;
  flex: 0 1 340px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero__device::before,
.hero__device::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero__device::before {
  width: 880px;
  height: 880px;
  background: var(--ring-1);
}

.hero__device::after {
  width: 540px;
  height: 540px;
  background: var(--ring-2);
}

.hero__device .phone {
  z-index: 1;
  max-width: 340px;
  padding: 9px;
  box-shadow: 0 36px 70px -24px rgba(61, 46, 0, 0.55);
}

/* Cards */

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface-alt);
}

.section--alt .card {
  background: var(--surface);
}

.card h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.card--large {
  gap: 10px;
  padding: 28px;
}

.card--large h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card--large p {
  font-size: 17px;
}

/* A line icon above a card's title, drawn for this page. */
.card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--eyebrow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__icon .fill {
  fill: var(--eyebrow);
  stroke: none;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* From goal to today */

.chain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chain__step {
  gap: 10px;
}

.chain__step strong {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chain__step--today {
  background: var(--brand);
  color: var(--on-brand);
}

.chain__step--today .eyebrow {
  color: var(--on-brand-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 28px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.step__text {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Built on proven practices: the close of How it works, under a hairline. */

.practices {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
  padding-top: 96px;
  border-top: 1px solid var(--screen-border);
}

.practices__close {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

/* Real free time */

.facts {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fact strong {
  display: block;
  margin-bottom: 8px;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fact--warn strong {
  color: var(--warn);
}

.fact p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.crop {
  flex: 0 1 400px;
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--screen-border);
  border-radius: 32px;
  background: var(--screen);
  box-shadow: 0 30px 60px -32px rgba(28, 28, 30, 0.45);
}

/* You decide */

.split__copy {
  flex: 1 1 440px;
  min-width: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pair {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.pair .phone {
  flex: 1 1 0;
  min-width: 0;
  max-width: 250px;
  padding: 7px;
}

.pair .phone:first-child {
  margin-top: 40px;
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 40px;
  border-radius: 32px;
  background: var(--band);
}

.band p {
  flex: 1 1 320px;
  min-width: 0;
  color: var(--band-ink);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Progress */

.split__device {
  flex: 0 1 280px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 18px;
  font-weight: 700;
}

.pills li:first-child {
  background: var(--brand);
  color: var(--on-brand);
}

.small {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Devices */

/* The Mac at the back, the iPad in front of it at the bottom left, the iPhone at the bottom right, and the watch
   between them. */
.devices {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 10%;
}

.devices .mac {
  margin-left: 14%;
}

.devices .tablet {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45%;
  padding: 1.2%;
  border-radius: 3.2% / 4.3%;
}

.devices .tablet img {
  border-radius: 2% / 2.7%;
}

.devices .phone {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 16%;
  padding: 0.6%;
  background: #3a3a3c;
}

.devices .watch {
  position: absolute;
  left: 50%;
  bottom: 1%;
  width: 10%;
}

.widgets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 72px;
  padding: 40px;
  border-radius: 32px;
  background: var(--surface);
}

.widgets__copy {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widgets h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.widgets__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.widgets__list li {
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--surface-alt);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.widgets__list strong {
  color: var(--ink);
}

/* Apple Watch: three faces in a row, then the app beside its words. */
.watch-faces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.watch-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0;
  text-align: center;
}

.watch-face .watch,
.watch-app .watch {
  width: 100%;
  max-width: 230px;
  padding: 10px;
}

.watch-face figcaption {
  max-width: 300px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.watch-face strong {
  color: var(--ink);
}

.watch-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 72px;
  padding: 40px;
  border-radius: 32px;
  background: var(--surface-alt);
}

.watch-app__shots {
  display: flex;
  gap: 24px;
  flex: 0 1 484px;
  justify-content: center;
}

.watch-app__copy {
  flex: 1 1 320px;
  max-width: 480px;
}

.watch-app h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .watch-faces {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-app {
    padding: 28px 20px;
  }

  .watch-app__shots {
    gap: 14px;
  }
}

/* The widgets themselves, below the phone and the words: the large Today beside Week and Habits. */
.widget-gallery {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 24px 32px;
}

.widget-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.widget-shot--large {
  grid-row: span 2;
}

.widget-shot img {
  width: 100%;
  height: auto;
  border-radius: 7.3% / 15.8%;
  box-shadow:
    0 0 0 1px var(--screen-border),
    0 20px 40px -24px rgba(28, 28, 30, 0.45);
}

.widget-shot--large img {
  border-radius: 7% / 7%;
}

.widget-shot figcaption {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.widget-shot strong {
  color: var(--ink);
}

@media (max-width: 700px) {
  .widget-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .widget-shot--large {
    grid-row: auto;
  }
}

/* A block of its own on a section's surface: words beside a screenshot, or above a wide one. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px 56px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background: var(--surface);
}

.section--alt .feature {
  background: var(--surface);
}

.feature--wide {
  grid-template-columns: minmax(0, 1fr);
}

.feature__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.feature h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.feature__copy > p:not(.lede) {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.feature__shot {
  margin: 0;
}

.feature__shot img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--screen-border),
    0 20px 40px -24px rgba(28, 28, 30, 0.45);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
    border-radius: 28px;
  }
}

/* Habits: its own block, the words beside the day's habits, then the month's grid across the whole width. */
.habits-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px 56px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background: var(--surface);
}

.habits-feature h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.habits-shot--month {
  grid-column: 1 / -1;
}

.habits-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.habits-shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--screen-border);
}

/* The month's crop runs to the app's edges: a margin of the app's own background around it. */
.habits-shot--month img {
  box-sizing: border-box;
  padding: 2% 2.4%;
  background: #fff;
}

.habits-shot figcaption {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.habits-shot strong {
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .habits-shot--month img {
    background: #000;
  }
}

@media (max-width: 860px) {
  .habits-feature {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
    border-radius: 28px;
  }
}

/* Collections beside Siri: each card as tall as its own content. */
.habits-feature + .grid--2 {
  align-items: start;
}

/* A cropped screenshot at the top of a card. */
.card__shot img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 16px;
}

/* Privacy */

.privacy {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.privacy .title {
  color: var(--inverse-accent);
}

.privacy .lede {
  color: var(--inverse-ink-2);
}

.privacy .card {
  background: var(--inverse-card);
}

.privacy .card p {
  color: var(--inverse-ink-2);
}

.privacy__more {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--inverse-ink-2);
}

.privacy__more a {
  text-underline-offset: 4px;
}

.privacy__more a:hover {
  color: var(--inverse-ink);
}

/* Questions */

.questions .card {
  padding: 24px 28px;
}

.questions .card h3 {
  font-size: 19px;
  line-height: 1.3;
}

/* Download */

.download {
  padding: 128px 0;
  background: var(--hero);
  color: var(--hero-ink);
  text-align: center;
}

.download .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.download svg {
  border-radius: 22.5%;
  box-shadow: 0 12px 30px -10px rgba(28, 28, 30, 0.5);
}

.download h2 {
  max-width: 900px;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.download .lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--hero-ink-2);
}

.download .note {
  max-width: 560px;
}

/* Footer */

.footer {
  background: var(--inverse);
  color: var(--inverse-ink-2);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.footer .brand {
  font-size: 16px;
  color: var(--inverse-ink);
}

.footer .brand svg {
  box-shadow: none;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--inverse-ink);
}

.footer :focus-visible,
.privacy :focus-visible,
.band :focus-visible {
  outline-color: var(--inverse-accent);
}

/* Narrower screens */

@media (max-width: 960px) {
  .grid--4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .practices .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }

  .download {
    padding: 88px 0;
  }

  .stack {
    gap: 48px;
  }

  .hero__body {
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero__copy .lede,
  .download .lede {
    font-size: 19px;
  }

  .lede {
    font-size: 18px;
  }

  .grid--2,
  .practices .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .practices {
    margin-top: 16px;
    padding-top: 72px;
  }

  .widgets,
  .band {
    padding: 28px 24px;
    border-radius: 28px;
  }

  .pair {
    gap: 14px;
  }

  .fact strong {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* The page links get a row of their own under the brand and Download. */
  .nav {
    padding-top: 20px;
  }

  .nav__download {
    margin-left: auto;
  }

  .nav__links {
    order: 1;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 0 12px;
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 56px);
  }

  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The four steps swipe sideways rather than stacking four phones, with the next one peeking in. */
  .steps {
    display: flex;
    gap: 20px;
    margin: 0 -20px;
    padding: 0 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  /* In the sideways row each step would wait to come in until it was swiped into view, rising inside a
     row that clips it; here they're simply there. */
  .motion .steps .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button--small {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }

  .store-badge img {
    height: 52px;
  }

  .soon:not(.soon--small) {
    min-height: 52px;
  }

  .crop {
    border-radius: 24px;
  }
}

.footer a.brand {
  text-decoration: none;
}

/* Motion: only on when the head script adds .motion, which it doesn't under Reduce Motion. */

.motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.motion .pills li.reveal {
  transform: translateY(10px) scale(0.96);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* The hero comes in once on load: the copy line by line, the phone rising into its rings. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes rings {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

.motion .hero__copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.motion .hero__copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.motion .hero__copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.motion .hero__copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.motion .hero__device .phone {
  animation: rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.motion .hero__device::before,
.motion .hero__device::after {
  animation: rings 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.motion .hero__device::after {
  animation-delay: 0.1s;
}

@media print {
  .motion .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .store-badge {
    transition: none;
  }
}
