:root {
  --bg: #080808;
  --panel: #111111;
  --panel-raised: #171717;
  --text: #f5f5f5;
  --muted: #a1a1a1;
  --quiet: #727272;
  --line: #292929;
  --line-strong: #414141;
  --accent: #ffffff;
  --content: var(--ref7-content-width, 1160px);
  --nav-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-padding-top: var(--ref7-header-height);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 50% 0%, #202020 0, #0c0c0c 27rem, var(--bg) 52rem);
  color: var(--text);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #0a0a0a;
  }
}

.button__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.guide-main {
  width: 100%;
}

.guide-hero {
  width: min(100% - (2 * var(--ref7-page-gutter)), var(--content));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 136px) 0 72px;
  text-align: center;
}

.eyebrow,
.chapter__eyebrow,
.download-panel__eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.guide-hero__intro {
  max-width: 760px;
  margin: 30px auto 0;
  color: #b5b5b5;
  font-size: clamp(18px, 2.3vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.guide-status {
  max-width: 950px;
  border: 1px solid #353535;
  border-radius: 18px;
  padding: 22px 24px;
  background: rgba(20, 20, 20, 0.82);
  text-align: left;
}

.guide-status--overview {
  max-width: 760px;
  margin: 30px auto 0;
}

.guide-status--chapter {
  margin-top: 36px;
}

.guide-status h2,
.guide-status h3 {
  margin: 0;
  color: #f2f2f2;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.guide-status p {
  margin: 8px 0 0;
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1.6;
}

.guide-status p a {
  color: #f0f0f0;
  text-decoration-color: #686868;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .guide-status p a:hover {
    text-decoration-color: #ffffff;
  }
}

.guide-hero__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.course-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 68px;
  text-align: left;
}

.course-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(20, 20, 20, 0.82);
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.course-card:focus-visible,
.topic-card--link:focus-visible {
  border-color: #5e5e5e;
  background: #181818;
}

@media (hover: hover) and (pointer: fine) {
  .course-card:hover {
    border-color: #d6d6d6;
    background: #323232;
  }

  .topic-card--link:hover {
    border-color: #6a6a6a;
    background: #242424;
  }
}

.course-card__number {
  color: #777777;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.course-card__title {
  margin-top: auto;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.course-card__device {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.chapter-nav {
  position: sticky;
  z-index: 20;
  top: var(--ref7-header-height);
  min-height: var(--nav-height);
  border-block: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.chapter-nav__inner {
  width: min(100% - (2 * var(--ref7-page-gutter)), var(--content));
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapter-nav__inner::-webkit-scrollbar {
  display: none;
}

.chapter-nav__label {
  margin-right: auto;
  padding-right: 18px;
  color: #777777;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chapter-nav a {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .chapter-nav a:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #0a0a0a;
  }
}

.chapter-nav a[aria-current="location"] {
  border-color: #ffffff;
  background: #ffffff;
  color: #0a0a0a;
}

.chapters {
  width: 100%;
  margin: 0 auto;
}

.chapter-group {
  position: relative;
}

.chapter {
  width: min(100% - (2 * var(--ref7-page-gutter)), var(--content));
  margin: 0 auto;
  padding: clamp(72px, 7vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

.anchor-alias {
  height: 0;
  display: block;
  scroll-margin-top: calc(var(--ref7-header-height) + var(--nav-height) + 24px);
}

.chapter__heading {
  max-width: 950px;
}

.chapter__heading h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.chapter__lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: #adadad;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.learning-goal {
  max-width: 780px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 28px;
  border-left: 2px solid #ffffff;
  padding: 2px 0 2px 18px;
}

.learning-goal__label {
  padding-top: 2px;
  color: #777777;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.learning-goal p {
  margin: 0;
  color: #dedede;
  font-size: 16px;
  line-height: 1.5;
}

.chapter-tip {
  max-width: 950px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 36px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-left: 3px solid #facc15;
  border-radius: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(246, 195, 68, 0.08), transparent 62%),
    #171612;
}

.chapter-tip__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
}

.chapter-tip__icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.chapter-tip h3 {
  margin: 1px 0 0;
  color: #facc15;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.chapter-tip p {
  margin: 8px 0 0;
  color: #d9d4c5;
  font-size: 15px;
  line-height: 1.6;
}

.chapter-tip--section {
  margin-top: 36px;
}

.chapter-tip--inline {
  margin-top: 26px;
  padding: 18px;
}

.chapter-tip__situations {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.chapter-tip__situations > div {
  border-top: 1px solid rgba(250, 204, 21, 0.18);
  padding-top: 12px;
}

.chapter-tip__situations dt {
  color: #f5e6a8;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.chapter-tip__situations dd {
  margin: 4px 0 0;
  color: #d9d4c5;
  font-size: 14px;
  line-height: 1.55;
}

.chapter__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-top: 54px;
}

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

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

.topic-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: var(--panel);
}

.topic-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.topic-card--link h3[id] {
  scroll-margin-top: calc(var(--ref7-header-height) + var(--nav-height) + 24px);
}

.topic-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.topic-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.topic-card li {
  position: relative;
  margin-top: 10px;
  padding-left: 16px;
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.48;
}

.topic-card li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #696969;
  content: "";
}

.topic-card li:first-child {
  margin-top: 0;
}

.topic-card--wide {
  grid-column: 1 / -1;
}

.insight-card {
  grid-column: 1 / -1;
  border: 1px solid #4b4b4b;
  border-radius: 20px;
  padding: 24px;
  background: #191919;
}

.insight-card__label {
  color: #8b8b8b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-card p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #e2e2e2;
  font-size: 16px;
  line-height: 1.55;
}

.chapter-visual {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 36%, #2a2a2a 0, #171717 47%, #111111 100%);
  overflow: hidden;
}

.chapter-visual__label {
  color: #8d8d8d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.device-stage {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 10px 26px;
}

.device-outline {
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid #565656;
  background: #0a0a0a;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
}

.device-outline::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f1f1f1;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
  content: "";
}

.device-outline--watch {
  width: 128px;
  height: 154px;
  border-width: 7px;
  border-radius: 38px;
}

.device-outline--watch::before {
  position: absolute;
  z-index: -1;
  inset: -66px 27px;
  border-radius: 24px;
  background: #2c2c2c;
  content: "";
}

.device-outline--phone {
  width: 130px;
  height: 250px;
  border-width: 6px;
  border-radius: 34px;
}

.device-outline--phone::before {
  position: absolute;
  top: 9px;
  width: 44px;
  height: 10px;
  border-radius: 999px;
  background: #333333;
  content: "";
}

.device-outline--document {
  width: 142px;
  height: 186px;
  border-width: 1px;
  border-radius: 12px;
  background:
    linear-gradient(#393939, #393939) 26px 48px / 88px 5px no-repeat,
    linear-gradient(#2c2c2c, #2c2c2c) 26px 67px / 72px 5px no-repeat,
    linear-gradient(#2c2c2c, #2c2c2c) 26px 86px / 84px 5px no-repeat,
    #111111;
}

.visual-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visual-path li {
  border: 1px solid #343434;
  border-radius: 999px;
  padding: 7px 10px;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.2;
}

.chapter-visual__caption {
  margin: 16px 0 0;
  color: #c6c6c6;
  font-size: 14px;
  line-height: 1.5;
}

.guide-section {
  margin-top: clamp(88px, 10vw, 136px);
  border-top: 1px solid var(--line);
  padding-top: clamp(64px, 8vw, 96px);
  scroll-margin-top: calc(var(--ref7-header-height) + var(--nav-height) + 24px);
}

.guide-section__heading {
  max-width: 820px;
}

.guide-section__number,
.guide-subsection__eyebrow,
.instruction-step__number {
  margin: 0 0 14px;
  color: #858585;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-section__heading h3 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.guide-section__heading > p:last-child {
  margin: 22px 0 0;
  color: #b3b3b3;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
}

.instruction-split,
.instruction-step {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.instruction-split {
  margin-top: 48px;
}

.instruction-copy,
.instruction-step__copy,
.guide-subsection {
  color: #b7b7b7;
  font-size: 16px;
  line-height: 1.65;
}

.instruction-copy > p,
.instruction-step__copy > p,
.guide-subsection > p {
  margin: 0;
}

.instruction-copy > p + p,
.instruction-step__copy > p + p,
.guide-subsection > p + p {
  margin-top: 16px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.feature-list > div {
  border-left: 1px solid #484848;
  padding-left: 18px;
}

.feature-list dt {
  color: #eeeeee;
  font-weight: 700;
  line-height: 1.4;
}

.feature-list dd {
  margin: 5px 0 0;
  color: #a7a7a7;
  line-height: 1.58;
}

.feature-list--icons dt {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-feature-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #f3f3f3;
}

.feature-list--compact {
  gap: 10px;
  margin: 20px 0 22px;
}

.feature-list--compact > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 0.58fr);
  gap: 16px;
}

.feature-list--compact dd {
  margin: 0;
}

.watch-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 50% 42%, #262626 0, #151515 50%, #101010 100%);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0);
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.watch-figure img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.watch-figure figcaption {
  margin-top: 14px;
  color: #969696;
  font-size: 13px;
  line-height: 1.45;
}

.guide-subsection {
  margin-top: clamp(74px, 9vw, 112px);
}

.guide-subsection__heading {
  margin-bottom: 22px;
}

.guide-subsection__heading h4,
.instruction-step h4 {
  margin: 0;
  color: #f4f4f4;
  font-size: clamp(25px, 3.2vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.direction-grid > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--panel);
}

.direction-grid strong {
  display: block;
  color: #eeeeee;
  line-height: 1.35;
}

.direction-grid p {
  margin: 8px 0 0;
  color: #9e9e9e;
  font-size: 14px;
  line-height: 1.5;
}

.watch-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) 32px) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 16px;
  background: var(--panel);
}

.watch-flow__item {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.watch-flow__item img {
  width: 100%;
  height: auto;
  display: block;
}

.watch-flow__item figcaption {
  min-height: 2.7em;
  margin-top: 8px;
  color: #a2a2a2;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.watch-flow__arrow {
  display: grid;
  place-items: center;
  align-self: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translateY(-18px);
}

.guide-note {
  margin-top: 24px !important;
  border-left: 2px solid #ffffff;
  padding: 2px 0 2px 18px;
  color: #e1e1e1;
}

.guide-note--states strong {
  display: block;
  color: #f0f0f0;
  font-size: 14px;
  line-height: 1.4;
}

.guide-note--states p {
  margin: 7px 0 0;
}

.guide-note--action {
  border: 1px solid #3a3a3a;
  border-left: 2px solid #ffffff;
  border-radius: 16px;
  padding: 18px;
  background: #181818;
}

.guide-note--action p {
  margin: 0;
}

.guide-note--action .button {
  margin-top: 14px;
}

.instruction-step {
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--panel);
}

.instruction-step + .instruction-step {
  margin-top: 18px;
}

.instruction-step__number {
  margin-bottom: 12px;
}

.instruction-step h4 {
  margin-bottom: 22px;
}

.instruction-step .watch-figure {
  background:
    radial-gradient(circle at 50% 42%, #2b2b2b 0, #181818 52%, #121212 100%);
}

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

.watch-pair .watch-figure {
  border-radius: 20px;
  padding: 14px;
}

.watch-pair .watch-figure img {
  max-width: none;
}

.instruction-step--comparison {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.instruction-step--sequence {
  grid-template-columns: 1fr;
}

.instruction-step--sequence .instruction-step__copy {
  max-width: 1000px;
}

.feature-list--wide > div {
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 0.68fr);
}

.gesture-list {
  display: grid;
  gap: 12px;
}

.gesture-card {
  min-height: 138px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #343434;
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 50%, #292929 0, #181818 46%, #131313 100%);
}

.gesture-card__arrow {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #4d4d4d;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.gesture-card strong,
.gesture-card span:not(.gesture-card__arrow) {
  display: block;
}

.gesture-card strong {
  color: #eeeeee;
  font-size: 17px;
  line-height: 1.3;
}

.gesture-card span:not(.gesture-card__arrow) {
  margin-top: 5px;
  color: #999999;
  font-size: 14px;
  line-height: 1.4;
}

.watch-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.watch-sequence .watch-figure {
  min-width: 0;
  border-radius: 22px;
  padding: 18px;
}

.watch-sequence .watch-figure img {
  max-width: 300px;
}

.iphone-grid {
  min-width: 0;
  display: grid;
  gap: 14px;
}

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

.iphone-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.iphone-figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(14px, 2.4vw, 22px);
  background:
    radial-gradient(circle at 50% 38%, #282828 0, #171717 54%, #111111 100%);
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.iphone-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 700px;
  display: block;
  margin: 0 auto;
}

.iphone-figure figcaption,
.report-gallery__card figcaption {
  margin-top: 14px;
  color: #969696;
  font-size: 13px;
  line-height: 1.45;
}

.instruction-step__copy > .button {
  margin-top: 24px;
}

.settings-explanation + .settings-explanation {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.settings-explanation > p:not(.instruction-step__number) {
  margin: 0;
}

.settings-explanation h4 {
  margin-bottom: 18px;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 24px;
}

.guide-steps li {
  padding-left: 5px;
}

.guide-steps--compact {
  margin-bottom: 20px;
}

.instruction-step--presets {
  gap: clamp(52px, 7vw, 84px);
}

.preset-part {
  display: grid;
  gap: 30px;
}

.preset-part + .preset-part {
  border-top: 1px solid var(--line);
  padding-top: clamp(52px, 7vw, 84px);
}

.preset-part .instruction-step__copy {
  max-width: 900px;
}

.instruction-step--balanced {
  align-items: center;
}

.iphone-grid--team-setup {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.ref7-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.inline-control-icon {
  width: 1.08em;
  height: 1.08em;
  display: inline-block;
  margin-inline: 0.12em 0.06em;
  overflow: visible;
  color: #eeeeee;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
}

.iphone-flow {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  margin-top: 30px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #545454 transparent;
}

.iphone-flow .iphone-figure {
  width: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.report-gallery-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.report-gallery {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #545454 transparent;
}

.report-gallery:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.report-gallery__card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 38%, #282828 0, #171717 54%, #111111 100%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.report-gallery__button {
  border-radius: 15px;
}

.report-gallery__button img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 660px;
  display: block;
  margin: 0 auto;
}

.report-gallery__nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  padding: 0 0 4px;
  background: #171717;
  color: #ffffff;
  font: 300 32px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.report-gallery__nav[hidden] {
  display: none;
}

.report-gallery__nav:disabled {
  border-color: #292929;
  color: #5f5f5f;
  cursor: default;
}

.report-gallery__nav:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.guide-screenshot-button {
  position: relative;
  width: 100%;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.guide-screenshot-button::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(#ffffff, #ffffff) center / 10px 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) center / 1px 10px no-repeat,
    rgba(10, 10, 10, 0.82);
  color: #ffffff;
  content: "";
  opacity: 0.68;
  pointer-events: none;
  transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.guide-screenshot-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.guide-screenshot-button.device-button--pointer-restored-focus:focus {
  outline: 0;
}

@media (hover: hover) and (pointer: fine) {
  .watch-figure:has(> .guide-screenshot-button:hover),
  .iphone-figure:has(> .guide-screenshot-button:hover),
  .report-gallery__card:has(.guide-screenshot-button:hover) {
    border-color: #d6d6d6;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.065);
  }

  .report-gallery__nav:not(:disabled):hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
  }

  .guide-screenshot-button:hover::after,
  .guide-screenshot-button:focus-visible::after {
    border-color: #ffffff;
    background-color: #222222;
    opacity: 1;
  }
}

@media (hover: none) {
  .guide-screenshot-button::after {
    opacity: 0.72;
  }
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.device-lightbox {
  z-index: 2000;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  overflow: hidden;
  background: rgba(3, 4, 5, 0.94);
  color: #ffffff;
}

.device-lightbox[open] {
  display: grid;
  place-items: center;
}

.device-lightbox::backdrop {
  background: transparent;
}

.device-lightbox__surface {
  display: grid;
  place-items: center;
  max-width: min(92vw, 1500px);
  max-height: calc(100dvh - 48px);
}

.device-lightbox__image {
  width: auto;
  height: auto;
  max-width: min(92vw, 1500px);
  max-height: calc(100dvh - 48px);
  display: block;
  object-fit: contain;
}

.device-lightbox__close {
  position: fixed;
  z-index: 1;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  padding: 0 0 3px;
  background: rgba(15, 17, 20, 0.9);
  color: #ffffff;
  font: 300 34px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.device-lightbox__close:hover {
  border-color: #ffffff;
  background: #22252a;
}

.device-lightbox__close:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.download-section {
  width: min(100% - (2 * var(--ref7-page-gutter)), var(--content));
  margin: 0 auto;
  padding: clamp(84px, 10vw, 132px) 0;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 55%),
    var(--panel);
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.download-panel p {
  max-width: 670px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .course-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-card {
    min-height: 160px;
  }

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

  .chapter-visual {
    position: relative;
    top: auto;
  }

  .instruction-split,
  .instruction-step,
  .instruction-step--comparison {
    grid-template-columns: 1fr;
  }

  .instruction-split .watch-figure,
  .instruction-step > .watch-figure,
  .instruction-step > .iphone-figure {
    width: min(100%, 520px);
    margin: 0 auto;
  }

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

  .device-stage {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 68px;
  }

  .guide-hero {
    padding-top: 62px;
    padding-bottom: 56px;
  }

  .course-map {
    margin-top: 50px;
  }

  .chapter-nav__inner {
    width: 100%;
    padding: 0 var(--ref7-page-gutter);
  }

  .chapter-nav__label {
    display: none;
  }

  .chapter {
    padding: 64px 0;
  }

  .learning-goal {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .topic-card--wide,
  .insight-card {
    grid-column: auto;
  }

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

  .watch-flow {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 18px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x proximity;
    scrollbar-color: #505050 transparent;
  }

  .watch-flow__item {
    flex: 0 0 min(52vw, 210px);
    scroll-snap-align: center;
  }

  .watch-flow__arrow {
    display: none;
  }

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

  .watch-sequence .watch-figure {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .iphone-grid--two,
  .iphone-grid--three,
  .iphone-grid--team-setup {
    grid-template-columns: 1fr;
  }

  .iphone-figure {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .report-gallery-shell {
    display: block;
  }

  .report-gallery {
    grid-auto-columns: 100%;
    padding: 2px 2px 12px;
    scroll-padding-inline: 2px;
  }

  .iphone-flow {
    grid-auto-columns: 100%;
  }

  .report-gallery__nav {
    display: none;
  }

  .device-lightbox {
    padding: 16px;
  }

  .device-lightbox__surface,
  .device-lightbox__image {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }

  .device-lightbox__close {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .course-map {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 136px;
  }

  .chapter__layout {
    margin-top: 40px;
  }

  .chapter-tip {
    gap: 14px;
    margin-top: 30px;
    border-radius: 16px;
    padding: 18px;
  }

  .guide-status {
    border-radius: 16px;
    padding: 18px;
  }

  .guide-section {
    margin-top: 76px;
    padding-top: 58px;
  }

  .feature-list--compact > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .watch-pair .watch-figure {
    width: 100%;
  }

  .topic-card,
  .insight-card,
  .chapter-visual {
    border-radius: 18px;
    padding: 20px;
  }

  .device-stage {
    min-height: 215px;
    transform: scale(0.88);
    margin: -10px;
  }

  .download-panel {
    border-radius: 22px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .chapter-nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .topic-card--link,
  .chapter-nav a,
  .watch-figure,
  .iphone-figure,
  .report-gallery__card,
  .report-gallery__nav,
  .iphone-flow,
  .guide-screenshot-button::after,
  .device-lightbox,
  .device-lightbox * {
    transition: none;
  }
}
