:root {
  color-scheme: light;
  --ink: #262626;
  --muted: #666666;
  --line: #e3e3e3;
  --paper: #ffffff;
  --soft: #f8f8f7;
  --blue: #175b9d;
  --green: #2f8c4b;
  --orange: #b96a2d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.logo-link {
  display: block;
  width: 150px;
  flex: 0 0 auto;
}

.logo-link img {
  width: 100%;
  height: auto;
}

.primary-nav {
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 31px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a,
.site-footer a,
.app-sidebar a,
.text-link {
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active,
.site-footer a:hover,
.app-sidebar a:hover,
.text-link:hover {
  color: var(--blue);
}

.page-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 0;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  column-gap: 66px;
  align-items: start;
}

.app-sidebar {
  padding-top: 5px;
}

.app-sidebar h2 {
  margin-bottom: 14px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.app-sidebar nav {
  display: grid;
  gap: 12px;
}

.app-sidebar a {
  max-width: 170px;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.22;
  text-transform: uppercase;
}

.app-sidebar a.current {
  color: #1f1f1f;
}

.content-column {
  min-width: 0;
}

.product-hero {
  text-align: center;
}

.app-icon {
  width: 208px;
  height: auto;
  margin: 0 auto 18px;
}

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.kicker {
  margin-bottom: 0;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
}

.main-device {
  width: min(470px, 100%);
  height: auto;
  margin: 74px auto 0;
}

.intro {
  max-width: 720px;
  margin: 34px auto 0;
  padding: 0 0 72px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.intro p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intro p:first-child {
  color: var(--ink);
  font-size: 20px;
}

.store-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.app-store-link {
  display: inline-block;
  width: 135px;
}

.text-link {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screens,
.watch,
.videos {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
}

.screens {
  text-align: center;
}

.screens h2 {
  margin-bottom: 31px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.screen-grid {
  max-width: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 20px 44px;
  align-items: start;
  justify-items: center;
}

.screen-grid img {
  width: auto;
  height: 158px;
  max-width: 100%;
  object-fit: contain;
}

.watch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.watch > div:first-child {
  max-width: 460px;
}

.watch p,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: 16px;
}

.watch-grid img {
  width: auto;
  height: 268px;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f3f3f3;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.video-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfbfb;
}

.video-grid h3 {
  min-height: 52px;
  margin: 0;
  padding: 15px 15px 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111111;
  object-fit: contain;
}

.quick-clips {
  padding-top: 0;
}

.site-footer {
  padding: 42px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .primary-nav {
    padding-top: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .page-shell {
    padding-top: 54px;
    grid-template-columns: 152px minmax(0, 1fr);
    column-gap: 42px;
  }

  .app-sidebar a {
    font-size: 12px;
  }

  .watch {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header,
  .page-shell {
    width: min(100% - 32px, 1100px);
  }

  .page-shell {
    padding-top: 34px;
    display: block;
  }

  .app-sidebar {
    padding: 0 0 30px;
    margin-bottom: 42px;
    border-bottom: 1px solid var(--line);
  }

  .app-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .app-sidebar a {
    max-width: none;
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .app-icon {
    width: 168px;
  }

  h1 {
    font-size: 32px;
  }

  .kicker {
    font-size: 12px;
  }

  .main-device {
    margin-top: 48px;
  }

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

  .watch-grid img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .screen-grid {
    max-width: 440px;
    grid-template-columns: repeat(3, minmax(84px, 1fr));
    gap: 20px 28px;
  }

  .intro,
  .screens,
  .watch,
  .videos {
    padding-bottom: 54px;
  }

  .screens,
  .watch,
  .videos {
    padding-top: 54px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .site-header {
    padding-top: 24px;
  }

  .logo-link {
    width: 150px;
  }

  .primary-nav {
    gap: 12px 16px;
    font-size: 11px;
  }

  .app-sidebar nav {
    grid-template-columns: 1fr;
  }

  .screen-grid {
    max-width: 300px;
    grid-template-columns: repeat(2, minmax(86px, 1fr));
    gap: 20px 24px;
  }

  .watch-grid {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
  }

  .video-grid.compact {
    grid-template-columns: 1fr;
  }
}
