/* Product page layout, shared by the lab's product pages. Tokens and components: /lab.css */

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  align-items: start;
  padding-top: 64px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.6;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.install a:not(.button):not(.button-outline) {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--primary-light) 35%, transparent);
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: var(--primary-light);
}

.button-outline {
  border-color: var(--line);
  background: var(--low);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--high);
}

/* Sections */

.section {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.section > .wrap > h2,
.section > h2 {
  margin-bottom: 16px;
}

.section .intro {
  max-width: 65ch;
  margin-bottom: 32px;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.section p {
  color: var(--ink-2);
}

.section strong,
.section b {
  color: var(--ink);
  font-weight: 600;
}

.section a:not(.button):not(.button-outline) {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--primary-light) 35%, transparent);
}

/* Features: the grid is the card */

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.features > li {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.features h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.features p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Steps: a real sequence, so numbered */

.steps {
  max-width: 72ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-muted);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Screenshots */

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--card);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.5;
}

.shot figcaption b {
  color: var(--ink-2);
  font-weight: 600;
}

.shots {
  display: grid;
  gap: 32px;
  align-items: start;
}

/* Lists */

.limits,
.privacy-glance ul {
  max-width: 72ch;
  margin: 0;
  padding-left: 1.25em;
  color: var(--ink-2);
}

.limits li + li,
.privacy-glance li + li {
  margin-top: 0.5em;
}

.limits li::marker,
.privacy-glance li::marker {
  color: var(--ink-3);
}

.privacy-glance {
  display: grid;
  gap: 32px;
}

.privacy-glance h2 {
  margin-bottom: 16px;
}

.privacy-glance aside {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.privacy-glance aside p {
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.privacy-glance aside p:last-child {
  margin-bottom: 0;
}

/* Documents: guide, privacy */

.doc {
  max-width: 72ch;
  padding-top: 64px;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.doc h1 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.1;
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 1.5rem;
}

.doc h3 {
  margin: 32px 0 8px;
}

.doc p,
.doc ul,
.doc ol {
  margin-bottom: 1em;
}

.doc ul,
.doc ol {
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 0.4em;
}

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

.doc a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--primary-light) 35%, transparent);
}

.doc a.button,
.doc a.button-outline {
  color: var(--ink);
  text-decoration: none;
}

.doc a.button {
  color: #FFFFFF;
}

.doc .effective {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.doc .summary {
  margin: 24px 0 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--primary);
  background: var(--card);
}

.doc .summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.doc .summary ul {
  margin-bottom: 0;
}

.table-scroll {
  max-width: 100%;
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc th,
.doc td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--low);
  border-bottom: 2px solid var(--line-muted);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc td:first-child {
  color: var(--ink);
  font-weight: 600;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  border: 1px solid var(--line-muted);
  background: var(--low);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125em;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .shots .wide {
    grid-column: 1 / -1;
  }

  .privacy-glance {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
    padding-top: 96px;
  }

  .section {
    margin-top: 128px;
  }
}

/* Framed product pages (main.lab-frame). Sections are .lab-section with the h2 as tab;
   features, steps, shots and privacy-glance carry .lab-flush and touch the rails. */

.lab-frame .hero {
  padding-bottom: 32px;
}

.lab-frame .lab-section .intro {
  max-width: 65ch;
  margin-bottom: 32px;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.lab-frame .lab-section p,
.lab-frame .lab-section li {
  color: var(--ink-2);
}

.lab-frame .lab-section b,
.lab-frame .lab-section strong {
  color: var(--ink);
  font-weight: 600;
}

.lab-frame .lab-section a:not(.button):not(.button-outline):not(.lab-btn):not(.lab-btn-secondary) {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--primary-light) 35%, transparent);
}

.lab-frame .lab-section > .note,
.lab-frame .lab-section > .limits {
  margin-top: 24px;
}

.lab-frame .features {
  margin-right: -1px;
  border-left: 0;
}

.lab-frame .steps {
  max-width: none;
  margin-right: -1px;
  border-top: 1px solid var(--line);
}

.lab-frame .steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 0;
  border-right: 1px solid var(--line);
  background: var(--card);
}

.lab-frame .steps li::before {
  position: static;
  width: auto;
  height: auto;
  padding: 16px 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--low);
  color: var(--ink-3);
  font-size: 0.75rem;
  align-items: start;
}

.lab-frame .steps li > span {
  padding: 16px 24px;
}

.lab-frame .shots {
  gap: 0;
  align-items: stretch;
  margin-right: -1px;
  border-top: 1px solid var(--line);
}

.lab-frame .shots .shot {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.lab-frame .privacy-glance {
  gap: 0;
  align-items: stretch;
  margin-right: -1px;
  border-top: 1px solid var(--line);
}

.lab-frame .privacy-glance > ul,
.lab-frame .privacy-glance > aside {
  max-width: none;
  margin: 0;
  padding: 24px 24px 24px calc(24px + 1.25em);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.lab-frame .privacy-glance > aside {
  align-self: stretch;
  padding-left: 24px;
  background: var(--low);
}

@media (min-width: 768px) {
  .lab-frame .privacy-glance {
    gap: 0;
  }
}

@media (min-width: 1024px) {
  .lab-frame .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-frame .features > li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .lab-frame .features > li:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }

  .lab-frame .features > li:last-child:nth-child(3n + 2) {
    grid-column: span 2;
  }
}
