/* Hallmark · custom: the Backplane logo kit, Cobalt (colour, Geist) on Fluent 2 structure (4 px grid, two-layer elevation) · posture: restrained · surface: absolute (the kit's Paper is #FFFFFF) · hero: product, the real editor with the app on a phone · nav: sticky bar · footer: brand block and three link columns */
/* Hallmark · waive 7b · stamp says surface: absolute · the Backplane logo kit names Paper, pure white, as the page background */
/* backplaneapp.com. Colours and type come from the Backplane logo kit (Cobalt, Deep Cobalt, Ink,
   Paper, White; Geist). Spacing, radii and elevation follow Microsoft's Fluent 2 (4 px grid,
   two-layer shadows), the same system the Backplane editor is built on. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0e1013;
  --slate: #3a414b;
  --gray: #5b626c;
  --line: #e3e5e8;
  --line-strong: #cbd0d6;
  --mist: #f5f6f2;
  /* Cobalt for buttons, links and icons (5.2:1 on white), Deep Cobalt on hover, a step darker pressed. */
  --brand: #2f5bff;
  --brand-hover: #1f45d8;
  --brand-pressed: #203fb7;
  --on-brand: #ffffff;
  --hover: #f2f3f5;
  --press: #eceef0;
  --line-hover: #b3b9c1;

  --font: "Geist", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace;

  /* Fluent 2 elevation: an ambient layer and a key layer. */
  --shadow-4: 0 0 2px rgba(14, 16, 19, 0.12), 0 2px 4px rgba(14, 16, 19, 0.14);
  --shadow-16: 0 0 2px rgba(14, 16, 19, 0.1), 0 8px 16px rgba(14, 16, 19, 0.12);
  --shadow-28: 0 0 8px rgba(14, 16, 19, 0.1), 0 14px 28px rgba(14, 16, 19, 0.14);

  --gutter: 20px;
  --max: 1232px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

p {
  color: var(--slate);
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons: one primary, one secondary, the same everywhere. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 500 1rem/1.2 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms cubic-bezier(0.33, 0, 0.67, 1), border-color 120ms cubic-bezier(0.33, 0, 0.67, 1), color 120ms cubic-bezier(0.33, 0, 0.67, 1);
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn-primary:active {
  background: var(--brand-pressed);
}

.btn-secondary {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--hover);
  border-color: var(--line-hover);
  color: var(--ink);
}

.btn-secondary:active {
  background: var(--press);
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: block;
  flex: none;
  border-radius: 4px;
}

.brand img {
  width: 140px;
  height: auto;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--hover);
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top-signin {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.top-signin:hover {
  background: var(--hover);
  color: var(--ink);
}

.top-actions .btn {
  display: none;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.hero-copy {
  max-width: 580px;
}

.lead {
  margin-top: 24px;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin-top: 20px;
  color: var(--gray);
  font-size: 0.9375rem;
}

.hero-media {
  position: relative;
  padding-bottom: 40px;
}

.hero-editor {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-28);
}

.hero-phone {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 26%;
  max-width: 220px;
  border-radius: 18px;
  box-shadow: var(--shadow-28);
}

/* Feature rows: media and copy, the media switching sides. */
.feature {
  padding: 72px 0;
}

.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature-copy {
  max-width: 520px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--brand);
  fill: currentColor;
}

.feature-copy > p {
  margin-top: 20px;
  font-size: 1.0625rem;
}

.feature-copy > p.small {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 0.9375rem;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  color: var(--slate);
}

.checks svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--brand);
  fill: currentColor;
}

.feature-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-16);
}

.feature-media.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  justify-self: center;
}

.feature-media.phones img {
  border-radius: 20px;
}

.feature-media.phones img:last-child {
  margin-top: 48px;
}

.install {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.install div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.install dt {
  color: var(--ink);
  font-weight: 500;
}

.install dd {
  color: var(--slate);
}

/* Section headings for the full-width sections. */
.section-head {
  max-width: 680px;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.125rem;
}

/* Templates, in the closing section */
.template-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.template-list li {
  scroll-snap-align: start;
}

.template-list img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-4);
  background: var(--paper);
}

.template-list h3 {
  margin-top: 20px;
}

.template-list p {
  margin-top: 4px;
  max-width: 36ch;
  font-size: 0.9375rem;
}

/* For IT */
.it {
  padding: 96px 0 80px;
}

.it-list {
  display: grid;
  gap: 36px 48px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.it-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 16px;
  align-content: start;
}

.it-list svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--brand);
  fill: currentColor;
}

.it-list p {
  margin-top: 8px;
  font-size: 0.9375rem;
}

/* Connect */
.connect {
  padding: 80px 0 96px;
}

.connect-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.connect-list {
  display: grid;
  gap: 28px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.connect-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
}

.connect-list svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
  fill: currentColor;
}

.connect-list p {
  margin-top: 4px;
  font-size: 0.9375rem;
}

.code {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  overflow: hidden;
}

.code pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: var(--ink);
  font: 400 0.8125rem/1.7 var(--mono);
  tab-size: 2;
}

.code .c-prompt {
  color: var(--brand);
  user-select: none;
}

.code figcaption {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--gray);
  font-size: 0.875rem;
}

/* Pricing */
.pricing {
  padding: 96px 0;
  background: var(--mist);
}

/* Plans: four cards, then every limit side by side. */
.tiers {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.tier h3 {
  font-size: 1.25rem;
}

.tier-for {
  margin-top: 4px;
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tier-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 20px 0 24px;
}

.tier-price .amount {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tier-price .per {
  color: var(--gray);
  font-size: 0.9375rem;
}

.tier .checks {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.compare-title {
  margin-top: 64px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.compare-wrap {
  /* Positioned, so the screen-reader labels inside the table scroll with it instead of
     widening the page. */
  position: relative;
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.compare {
  width: 100%;
  min-width: 504px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
}

/* On a phone the row names take 120 px and each plan 96 px, so part of the third plan shows and
   the table reads as one that scrolls. */
.compare thead td {
  width: 120px;
}

.compare th,
.compare td {
  padding: 12px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.compare thead th,
.compare thead td {
  border-top: 0;
  padding-top: 20px;
  color: var(--ink);
  font-weight: 600;
}

.compare tbody th[scope="row"] {
  padding-left: 12px;
  color: var(--slate);
  font-weight: 400;
  text-align: left;
}

.compare td {
  color: var(--ink);
}

.compare .group th {
  padding: 24px 12px 8px;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

.compare thead + tbody .group:first-child th {
  padding-top: 12px;
}

.compare td svg {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  color: var(--brand);
  fill: currentColor;
}

/* The row names stay in view when the table scrolls sideways on a phone. */
.compare tr > :first-child {
  position: sticky;
  left: 0;
  background: var(--paper);
}

.compare tbody tr:not(.group) > :first-child {
  box-shadow: inset -1px 0 0 var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fine {
  margin-top: 24px;
  color: var(--gray);
  font-size: 0.875rem;
}

/* Questions */
.faq {
  padding: 96px 0;
}

.faq-grid {
  display: grid;
  gap: 32px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("/img/chevron.svg") center / 20px 20px no-repeat;
  mask: url("/img/chevron.svg") center / 20px 20px no-repeat;
  transition: transform 160ms cubic-bezier(0.33, 0, 0.67, 1);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--brand);
}

.faq details p {
  max-width: 68ch;
  padding: 0 0 24px;
}

/* Closing: the templates and the actions */
.closing {
  padding: 96px 0;
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.closing .actions {
  margin-top: 48px;
}

/* Footer */
.foot {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  gap: 32px;
}

.foot-brand img {
  width: 200px;
  height: auto;
}

.foot-brand p {
  margin-top: 16px;
  color: var(--gray);
  font-size: 0.9375rem;
}

.foot-col h2 {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.foot-col ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.foot-col a {
  color: var(--slate);
  font-size: 0.9375rem;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot-legal p {
  color: var(--gray);
  font-size: 0.875rem;
}

.foot-legal ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-legal a {
  color: var(--gray);
  font-size: 0.875rem;
  text-decoration: none;
}

.foot-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The page for an address the site doesn't have. */
.missing {
  padding: 96px 0 120px;
}

.missing .lead {
  max-width: 560px;
}

/* Legal pages: the privacy policy and the terms. One reading column, with the sections listed
   beside it on wide screens and folded into "On this page" on narrow ones. */
.doc {
  padding: 32px 0 96px;
}

.doc-grid {
  display: grid;
  gap: 32px;
}

.doc-switch {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-switch a {
  margin-bottom: -1px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.doc-switch a:hover {
  color: var(--ink);
}

.doc-switch a[aria-current="page"] {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

.doc-toc {
  display: none;
}

.doc-toc h2 {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.doc-toc ul,
.doc-contents ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-toc ul {
  margin-top: 8px;
}

.doc-toc a,
.doc-contents a {
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

.doc-toc a {
  margin-left: -8px;
}

.doc-toc a:hover,
.doc-contents a:hover {
  background: var(--hover);
  color: var(--ink);
}

/* About 75 characters a line, the comfortable measure for long reading. */
.doc-body {
  min-width: 0;
  max-width: 600px;
  font-size: 1.0625rem;
}

.doc-body h1 {
  font-size: clamp(2.125rem, 1.7rem + 1.6vw, 2.875rem);
}

.doc-date {
  margin-top: 12px;
  color: var(--gray);
  font-size: 0.9375rem;
}

.doc-body p {
  margin-top: 16px;
}

.doc-body .doc-lead {
  margin-top: 28px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.doc-body section {
  margin-top: 56px;
}

.doc-body h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc-body h3 {
  margin-top: 28px;
  font-size: 1.0625rem;
}

.doc-body ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 1.25em;
  color: var(--slate);
  text-wrap: pretty;
}

.doc-body li::marker {
  color: var(--gray);
}

.doc-body strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-contents {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-contents summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.doc-contents summary::-webkit-details-marker {
  display: none;
}

.doc-contents summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("/img/chevron.svg") center / 20px 20px no-repeat;
  mask: url("/img/chevron.svg") center / 20px 20px no-repeat;
}

.doc-contents[open] summary::after {
  transform: rotate(180deg);
}

.doc-body .doc-contents ul {
  margin: 0;
  padding: 0 8px 8px;
}

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

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

.doc-table thead th {
  border-top: 0;
  color: var(--ink);
  font-weight: 600;
}

.doc-table td {
  color: var(--slate);
}

.doc-table td:first-child {
  width: 40%;
  color: var(--ink);
}

/* Wider screens */
@media (min-width: 560px) {
  :root {
    --gutter: 28px;
  }
  .compare {
    min-width: 0;
    font-size: 0.9375rem;
  }
  .compare thead td {
    width: 36%;
  }
  .compare th,
  .compare td {
    padding: 12px 16px;
  }
  .compare tbody th[scope="row"] {
    padding-left: 16px;
  }
  .compare .group th {
    padding: 28px 16px 12px;
  }
  .compare tbody tr:not(.group) > :first-child {
    box-shadow: none;
  }
  .top-actions .btn {
    display: inline-flex;
  }
  .it-list {
    grid-template-columns: 1fr 1fr;
  }
  .tiers {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  :root {
    --gutter: 40px;
  }
  .nav {
    display: flex;
  }
  .hero {
    padding: 80px 0 104px;
  }
  .feature {
    padding: 104px 0;
  }
  /* The first feature starts close enough to the hero that its heading shows above the fold. */
  .hero + .feature {
    padding-top: 56px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
  .feature-flip .feature-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .feature-flip .feature-copy {
    order: 2;
  }
  .feature-flip .feature-media {
    order: 1;
  }
  .template-list {
    overflow: visible;
  }
  .it {
    padding: 120px 0 104px;
  }
  .it-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 56px;
  }
  .connect-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
  .connect {
    padding: 104px 0 120px;
  }
  .pricing {
    padding: 112px 0;
  }
  .faq {
    padding: 112px 0;
  }
  .faq-grid {
    grid-template-columns: 4fr 8fr;
    gap: 72px;
  }
  .closing {
    padding: 120px 0;
  }
  .foot-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .doc {
    padding-top: 56px;
  }
  .doc-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 72px;
  }
  .doc-side {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }
  .doc-switch {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 28px;
    border-bottom: 0;
  }
  .doc-switch a {
    margin: 0 0 0 -8px;
    padding: 8px;
    border-bottom: 0;
    border-radius: 6px;
  }
  .doc-switch a:hover {
    background: var(--hover);
  }
  .doc-switch a[aria-current="page"] {
    background: var(--hover);
    font-weight: 600;
  }
  .doc-toc {
    display: block;
  }
  .doc-contents {
    display: none;
  }
}

@media (min-width: 1100px) {
  .tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    align-items: center;
    gap: 72px;
  }
  .hero-media {
    margin-right: -64px;
    padding-bottom: 48px;
  }
  .hero-phone {
    left: -36px;
    width: 25%;
  }
}

@media (min-width: 1100px) and (min-height: 760px) {
  /* The hero fills the first screen on a laptop or desktop, so the next section starts at the fold. */
  .hero {
    display: grid;
    align-items: center;
    min-height: min(calc(100svh - 200px), 760px);
    padding: 48px 0;
  }
}

@media (min-width: 1400px) {
  .hero-media {
    margin-right: -120px;
  }
}
