/* Divvy website, from design/boards/Explainer.html.
   Uses only files in apps/website/assets, never the shared monorepo packages.
   Brand colors come from assets/tokens.css. The few colors that exist only in the
   website's product mocks are named here, once, and used through these variables. */

:root {
  --site-on-dark: #ddf2e8; /* body text on dark sections (DESIGN.md) */
  --site-on-dark-soft: #c4e9d8; /* step text on dark */
  --site-dark-raised: #1b4c3b; /* the "Free" pill on dark */
  --site-dark-line: #5e9a83; /* outline button, arrows on dark */
  --site-mock-edge: #0b2219; /* window outlines */
  --site-mock-bar-line: #e2dccf;
  --site-mock-dot: #d8d1c2; /* window buttons */
  --site-mock-canvas: #ede9e1; /* Figma canvas */
  --site-mock-brand: #6d5dfc; /* the made-up site "Lumen" */
  --site-mock-brand-soft: #eeeafe;
  --site-mock-drop-line: #9fb3aa;
  --site-feature-butter: #f7d98b;
  --site-feature-blush: #f4c6cf;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--dv-paper);
}
.dv {
  font-family: var(--dv-font);
  color: var(--dv-ink);
  background: var(--dv-paper);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.dv *,
.dv *::before,
.dv *::after {
  box-sizing: border-box;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec {
  /* every home section fits one screen: padding follows the screen height */
  padding: clamp(56px, 10vh, 136px) 0;
}
.mono {
  font-family: var(--dv-mono);
}
.stack-72 {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vh, 72px);
}
.stack-16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}

/* Dark sections: forest ink with the bracket pattern */
.dark {
  background-color: var(--dv-forest-ink);
  background-image: url("assets/brand/pattern-dark.svg");
  background-size: 320px 320px;
  color: var(--dv-white);
}
.on-dark {
  color: var(--dv-white);
}
.on-dark-mint {
  color: var(--dv-mint);
}

.h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
}
.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dv-slate);
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  text-decoration: none;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--dv-r-control);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
.btn--mint {
  background: var(--dv-mint);
  color: var(--dv-forest-ink);
}
.btn--line {
  color: var(--dv-white);
  border: 1.5px solid var(--site-dark-line);
}
/* Feedback: a darker fill on hover, a small press on click. Flat colors only. */
.btn {
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.1s;
}
.btn--mint:hover {
  background: var(--dv-mint-deep);
}
.btn--line:hover {
  background: var(--site-dark-raised);
  border-color: var(--dv-mint);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.site-nav a:not(.btn),
.ft li a,
.toc a,
.art a,
.site-head__home,
.ft-logo {
  transition:
    color 0.15s,
    background-color 0.15s,
    opacity 0.15s;
}
.site-nav a:not(.btn):hover {
  color: var(--dv-mint);
}
.site-head__home:hover,
.ft-logo:hover {
  opacity: 0.85;
}
.art a:hover {
  color: var(--dv-forest-ink);
  text-decoration-thickness: 2px;
}
.toc a:hover {
  background: var(--dv-board);
}
summary {
  transition: color 0.15s;
}
#faq summary:hover {
  color: var(--dv-forest);
}
#faq summary:hover .pl {
  background: var(--dv-mint-tint);
}
details[open] summary:hover .pl {
  background: var(--dv-mint);
}
.qa:hover,
.toc-m:hover {
  border-color: var(--dv-disabled-line);
}
.qc {
  transition:
    background-color 0.15s,
    transform 0.1s;
}
.qc:active {
  transform: scale(0.98);
}
.btn:focus-visible,
.site-nav a:focus-visible,
.dv a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--dv-mint-deep);
  outline-offset: 3px;
}

/* Header */
.site-head {
  height: clamp(64px, 9vh, 84px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-head img {
  flex: none;
}
.site-head__home {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dv-white);
}
.site-head__word {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: var(--dv-tight);
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 15px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--site-on-dark);
}
.site-nav a[aria-current="page"] {
  color: var(--dv-white);
  font-weight: 600;
}

/* Hero: the text and the whole product stage sit inside the dark background. */
.hero {
  padding-top: clamp(24px, 5vh, 64px);
  padding-bottom: clamp(56px, 9vh, 112px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pill {
  height: 34px;
  padding: 0 14px 0 6px;
  border-radius: var(--dv-r-pill);
  background: var(--site-dark-raised);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-on-dark);
}
.pill__tag {
  height: 24px;
  padding: 0 9px;
  border-radius: var(--dv-r-pill);
  background: var(--dv-mint);
  color: var(--dv-forest-ink);
  font-size: 12px;
  display: flex;
  align-items: center;
}
.hero__title {
  margin: clamp(16px, 3vh, 28px) 0 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(40px, min(8vw, 9.5vh), 104px);
  line-height: 0.96;
  color: var(--dv-white);
}
.hero__lead {
  margin: clamp(14px, 2.6vh, 28px) 0 clamp(18px, 3.4vh, 36px);
  font-size: clamp(16px, 2.2vh, 20px);
  line-height: 1.55;
  color: var(--site-on-dark);
  max-width: 560px;
}

/* Mock primitives: always dark text on light cards */
.m {
  color: var(--dv-ink);
  font-family: var(--dv-font);
}
.win {
  background: var(--dv-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--site-mock-edge);
}
.bar {
  height: 36px;
  background: var(--dv-board);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1.5px solid var(--site-mock-bar-line);
}
.bar--light {
  background: var(--dv-white);
}
.bar i {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--site-mock-dot);
  display: block;
}
.url {
  margin-left: 10px;
  height: 22px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--dv-white);
  font-size: 12px;
  color: var(--dv-slate);
  display: flex;
  align-items: center;
}
.url--board {
  background: var(--dv-board);
}
.chip {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--dv-r-pill);
  background: var(--dv-forest);
  color: var(--dv-white);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.chip--custom {
  background: var(--dv-white);
  color: var(--dv-ink);
  border: 1.5px solid var(--dv-ink);
  padding-right: 4px;
  gap: 6px;
}
.chip__ok {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--dv-mint);
  color: var(--dv-forest-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.key {
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--dv-white);
  border: 1.5px solid var(--site-mock-edge);
  border-bottom-width: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--dv-ink);
}
.sel {
  outline: 2px solid var(--dv-forest);
  position: relative;
}
.hd {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--dv-white);
  border: 1.5px solid var(--dv-forest);
}
.hd--tl {
  left: -5px;
  top: -5px;
}
.hd--tr {
  right: -5px;
  top: -5px;
}
.hd--bl {
  left: -5px;
  bottom: -5px;
}
.hd--br {
  right: -5px;
  bottom: -5px;
}
.tagf {
  position: absolute;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--dv-forest);
  color: var(--dv-white);
  font-size: 11px;
  white-space: nowrap;
  font-family: var(--dv-mono);
}
.ln {
  display: block;
  border-radius: 3px;
  background: var(--dv-line);
}
.ln--ink {
  background: var(--dv-ink);
  opacity: 0.85;
}
.block {
  display: block;
  border-radius: 5px;
}
.bg-board {
  background: var(--dv-board);
}
.bg-brand-soft {
  background: var(--site-mock-brand-soft);
}
.bg-mint {
  background: var(--dv-mint);
}
.row4 {
  display: flex;
  gap: 4px;
}
.ink {
  border: 1.5px solid var(--dv-ink);
}
.paper-card {
  background: var(--dv-white);
  border-radius: 14px;
}
.dot-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--site-mock-brand);
  flex: none;
}
.dot-logo--sm {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Hero stage: browser, ⌘V, Figma */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: clamp(24px, 5vh, 80px);
  max-width: 1112px;
  width: 100%;
  text-align: left;
}
.mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mid .arr {
  width: 2px;
  height: 28px;
  background: var(--site-dark-line);
}
.browser {
  position: relative;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.browser__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.browser__name {
  font-size: 14px;
}
.browser__cta {
  margin-left: auto;
  height: 24px;
  width: 64px;
  border-radius: 6px;
  background: var(--dv-ink);
}
.browser__hero {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 250px;
}
.browser__h {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: var(--dv-tight);
  line-height: 1.1;
}
.browser__btn {
  margin-top: 6px;
  width: 88px;
  height: 28px;
  border-radius: 7px;
  background: var(--site-mock-brand);
}
.browser__cards {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}
.card {
  flex: 1;
  height: 76px;
  border-radius: 9px;
}
.popup-mock {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 200px;
  background: var(--dv-white);
  border: 1.5px solid var(--dv-ink);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popup-mock__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.popup-mock__btn,
.plugin-mock__btn {
  height: 34px;
  border-radius: 9px;
  background: var(--dv-mint);
  color: var(--dv-forest-ink);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--dv-board);
  border-radius: 9px;
  font-size: 12px;
}
.seg span {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seg__on {
  border-radius: 7px;
  background: var(--dv-white);
  font-weight: 600;
}
.seg__off {
  color: var(--dv-ink-2);
}
.chips {
  display: flex;
  gap: 4px;
}
.canvas {
  background: var(--site-mock-canvas);
  display: flex;
  flex-direction: column;
}
.canvas__frames {
  flex: 1;
  padding: 22px 18px 40px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.frame-label {
  font-size: 11px;
  color: var(--dv-ink-2);
  margin-bottom: 6px;
}
.frame {
  background: var(--dv-white);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

/* Features: two on top, two below; one column on narrow screens */
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px 24px;
}
.fblock {
  height: 340px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.fblock--mint {
  background: var(--dv-mint);
}
.fblock--butter {
  background: var(--site-feature-butter);
}
.fblock--blush {
  background: var(--site-feature-blush);
}
.fblock--forest {
  background: var(--dv-forest);
}
.ftxt {
  padding: 22px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ftxt h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ftxt p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dv-slate);
  max-width: 440px;
}
.area-card {
  width: 100%;
  max-width: 360px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.area-card__nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.area-card__cta {
  margin-left: auto;
  width: 40px;
  height: 16px;
  border-radius: 4px;
  background: var(--dv-ink);
}
.area-card__sel {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
}
.picker-bar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px;
  border-radius: var(--dv-r-control);
  background: var(--dv-ink);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.picker-bar span {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}
.picker-bar__primary {
  background: var(--dv-mint);
  color: var(--dv-forest-ink);
}
.picker-bar__secondary {
  color: var(--dv-white);
}
.widths-mock {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
  max-width: 400px;
}
.widths-mock > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.mini {
  width: 100%;
  border-radius: 10px;
  background: var(--dv-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.layers-mock {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 400px;
}
.layers {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.layers__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--dv-ink-2);
  padding: 2px 6px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.layer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
}
.layer--on {
  border-radius: 6px;
  background: var(--dv-mint-tint);
  font-weight: 600;
}
.layer--on svg {
  color: var(--dv-forest);
}
.or {
  font-weight: 700;
  font-size: 14px;
}
.shot {
  flex: 0 0 132px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shot__img {
  height: 120px;
  border-radius: 8px;
  background: var(--site-mock-brand-soft);
  color: var(--site-mock-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot__name {
  font-size: 11px;
}
.plugin-mock {
  width: 100%;
  max-width: 340px;
  background: var(--dv-white);
  border-radius: var(--dv-r-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.plugin-mock__label {
  margin-left: auto;
  font-size: 12px;
  color: var(--dv-ink-2);
}
.plugin-mock__btn {
  height: 38px;
  border-radius: 10px;
}
.drop {
  border: 1.5px dashed var(--site-mock-drop-line);
  border-radius: var(--dv-r-control);
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--dv-surface);
}
.drop__title {
  font-weight: 600;
  font-size: 14px;
}
.drop__hint {
  font-size: 12px;
  color: var(--dv-ink-2);
}
.file-tag {
  position: absolute;
  right: -18px;
  top: 52px;
  transform: rotate(6deg);
  background: var(--dv-white);
  border-radius: 10px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.file-tag__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--dv-mint-tint);
  color: var(--dv-forest);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px;
}
.stp {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.num {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--dv-mint);
  color: var(--dv-forest-ink);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stp h3 {
  margin: 8px 0 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dv-white);
}
.stp p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--site-on-dark-soft);
  max-width: 320px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}
.faq__list {
  min-width: 0;
}
details {
  border-top: 1.5px solid var(--dv-ink);
  padding: 24px 0;
}
details:last-child {
  border-bottom: 1.5px solid var(--dv-ink);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
summary::-webkit-details-marker {
  display: none;
}
.pl {
  flex: none;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  border: 1.5px solid var(--dv-ink);
  transition: transform 0.2s;
}
/* the plus, drawn with two bars */
.pl::before,
.pl::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--dv-ink);
  transform: translate(-50%, -50%);
}
.pl::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
details[open] .pl {
  transform: rotate(45deg);
  background: var(--dv-mint);
}
details p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dv-slate);
  max-width: 560px;
}

/* Install */
.install-wrap {
  padding-bottom: 96px;
}
.install {
  border-radius: 36px;
  padding: clamp(56px, 8vw, 96px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.install__lead {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--site-on-dark);
  max-width: 460px;
}

/* Footer */
.ft {
  border-top: 1px solid var(--dv-line);
  background: var(--dv-paper);
}
.ft-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
}
.ft-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dv-ink-2);
}
.ft-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dv-ink);
}
.ft-logo b {
  font-size: 20px;
  letter-spacing: var(--dv-tight);
}
.ft h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dv-ink-2);
}
.ft ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft li a {
  text-decoration: none;
  font-size: 15px;
  color: var(--dv-ink);
}
.ft li a:hover {
  color: var(--dv-forest);
}
.ft-bottom {
  border-top: 1px solid var(--dv-line);
  padding-top: 20px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--dv-ink-2);
}

/* Help, privacy and terms pages */
.doc-hero {
  padding: clamp(24px, 5vh, 56px) 24px clamp(40px, 8vh, 72px);
}
.doc-hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--dv-mint);
  margin-bottom: 14px;
}
.doc-hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  color: var(--dv-white);
}
.doc-hero p {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--site-on-dark);
  max-width: 560px;
}
.qgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.qc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  background: var(--site-dark-raised);
  text-decoration: none;
  color: var(--dv-white);
}
.qc:hover {
  background: var(--dv-forest);
}
.qc b {
  font-size: 16px;
  font-weight: 600;
}
.qc span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--site-on-dark-soft);
}
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 96px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dv-ink-2);
  margin-bottom: 10px;
}
.toc a {
  text-decoration: none;
  font-size: 15px;
  color: var(--dv-ink-2);
  padding: 7px 12px;
  border-radius: 9px;
}
.toc a:hover {
  color: var(--dv-ink);
}
.toc a.is-on {
  background: var(--dv-mint-tint);
  color: var(--dv-forest-ink);
  font-weight: 600;
}
.art {
  max-width: 720px;
  min-width: 0;
}
.art section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--dv-line);
  scroll-margin-top: 24px;
}
.art section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.art h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--dv-tight);
  line-height: 1.15;
}
.art h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.art p,
.art li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dv-ink-2);
}
.art p {
  margin: 0 0 12px;
}
.art ul,
.art ol {
  margin: 0 0 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.art strong {
  color: var(--dv-ink);
  font-weight: 600;
}
.art a {
  color: var(--dv-forest);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.art code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.kbd {
  display: inline-block;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--dv-disabled-line);
  border-bottom-width: 2px;
  background: var(--dv-white);
  font-family: var(--dv-mono);
  font-size: 13px;
  line-height: 22px;
  color: var(--dv-ink);
  white-space: nowrap;
}
.summary {
  background: var(--dv-mint-tint);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 40px;
}
.summary__k {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dv-forest);
  margin-bottom: 8px;
}
.summary p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dv-forest-ink);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}
.tbl th,
.tbl td {
  padding: 12px 0;
  border-bottom: 1px solid var(--dv-line);
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}
.tbl th {
  width: 36%;
  padding-right: 16px;
  color: var(--dv-ink);
  font-weight: 600;
}
.tbl td {
  color: var(--dv-ink-2);
}
.tbl tr:last-child th,
.tbl tr:last-child td {
  border-bottom: 0;
}
/* the doc pages' accordions: troubleshooting and the phone "On this page" */
.art details {
  border: 1px solid var(--dv-line);
}
.art details:last-child {
  border-bottom: 1px solid var(--dv-line);
}
.qa {
  border-radius: 14px;
  background: var(--dv-white);
  margin-bottom: 10px;
  padding: 16px 18px;
}
.art .qa summary,
.toc-m summary {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--dv-ink);
}
.qa p {
  margin: 10px 0 0;
}
.chev {
  flex: none;
  color: var(--dv-ink-2);
  transition: transform 0.2s;
}
details[open] > summary .chev {
  transform: rotate(180deg);
}
.toc-m {
  display: none;
  padding: 0;
}

/* Wide screens: the hero stage, four features in a row */
@media (max-width: 1000px) {
  .stage {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }
  .mid {
    flex-direction: row;
  }
  .mid .arr {
    width: 24px;
    height: 2px;
  }
  .key {
    min-width: 44px;
    height: 44px;
    border-radius: 11px;
    border-bottom-width: 4px;
    font-size: 18px;
  }
  .browser__cards {
    margin-top: 22px;
  }
  .card {
    height: 56px;
  }
  .canvas__frames {
    padding: 16px 14px 32px;
  }
  .doc {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 24px;
    padding-bottom: 64px;
  }
  .toc {
    display: none;
  }
  .toc-m {
    display: block;
    margin-bottom: 32px;
    border-radius: 14px;
    background: var(--dv-white);
  }
  .toc-m summary {
    padding: 14px 16px;
  }
  .toc-m nav {
    display: flex;
    flex-direction: column;
    padding: 0 8px 10px;
  }
  .toc-m a {
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    color: var(--dv-ink-2);
    padding: 10px 8px;
    border-top: 1px solid var(--dv-board);
  }
  .qgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 36px;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
  .art h2 {
    font-size: 24px;
  }
}
@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }
  .sec {
    padding: clamp(32px, 6vh, 64px) 0;
  }
  /* the stacked stage is drawn smaller, so the browser, ⌘V and Figma all show */
  .stage {
    zoom: 0.72;
  }
  .btn {
    height: 46px;
    padding: 0 16px;
    font-size: 15px;
  }
  .btn-row {
    gap: 10px;
  }
  .fblock {
    height: 300px;
  }
  /* how it works: the number sits beside its title */
  #how .sec-head {
    flex-wrap: nowrap;
    align-items: center;
  }
  #how .sec-head img {
    width: 72px;
    height: auto;
  }
  .steps {
    gap: 24px;
  }
  .stp {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
  }
  .stp p {
    grid-column: 1 / -1;
  }
  .num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .stp h3 {
    margin: 0;
    font-size: 20px;
  }
  .faq {
    gap: 24px;
  }
  details {
    padding: 16px 0;
  }
  summary {
    font-size: 17px;
  }
  .pl {
    width: 30px;
    height: 30px;
  }
  details p {
    font-size: 15px;
  }
  .install-wrap {
    padding-bottom: 56px;
  }
  .install {
    border-radius: 28px;
    padding: 44px 20px;
    gap: 16px;
  }
  .install img {
    width: 100px;
    height: auto;
  }
  .install__lead {
    font-size: 16px;
  }
  .doc-hero p {
    font-size: 16px;
  }
  .qc {
    padding: 14px;
  }
  .qc span {
    font-size: 13px;
  }
  .summary {
    padding: 18px;
  }
  .summary p {
    font-size: 16px;
  }
  .tbl th,
  .tbl td {
    display: block;
    width: auto;
    padding: 0;
  }
  .tbl th {
    padding-top: 12px;
    border-bottom: 0;
  }
  .tbl td {
    padding: 4px 0 12px;
  }
}
/* small phones: a tighter hero so the product stage still shows */
@media (max-width: 400px) {
  .hero .btn {
    padding: 0 14px;
    font-size: 14px;
  }
  .hero__lead {
    font-size: 15px;
  }
}
@media (max-width: 640px) and (max-height: 800px) {
  .pill {
    height: 30px;
    font-size: 13px;
  }
  .hero__title {
    font-size: 36px;
  }
  .hero__lead {
    font-size: 15px;
    line-height: 1.5;
  }
  .hero .btn {
    height: 42px;
  }
  .stage {
    zoom: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pl,
  .chev,
  .btn,
  .qc {
    transition: none;
  }
  .btn:active,
  .qc:active {
    transform: none;
  }
}
