/* The download page and the privacy page. Builds on site.css, in the manner of the pricing page:
   a centred headline with the hand-drawn stroke, then open rows on hairlines. */

.pg-hero {
  padding: 84px 0 0;
  text-align: center;
}

.pg-top h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(44px, 5.600vw, 86px);
  line-height: 0.98;
}

.pg-top h1 em {
  margin: 0;
  padding: 0;
  background: none;
}

/* The same hand-drawn stroke as under the home page's headline. */
.pg-under {
  position: relative;
  white-space: nowrap;
}

.pg-under svg {
  position: absolute;
  bottom: -0.12em;
  left: -2%;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}

.pg-lede {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 20px;
  line-height: 1.45;
}

.pg-top {
  margin-top: 0;
  animation: settle 700ms var(--ease) both;
}

.pg-sec {
  padding: 128px 0 0;
}

.pg-sec h2 {
  font-size: clamp(38px, 4.600vw, 66px);
}

/* A headline on the left, its facts on the right. */
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px 72px;
  align-items: start;
}

.pg-facts {
  border-top: 1px solid var(--line-strong);
}

.pg-facts > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 6px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.pg-facts dt {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.pg-facts dd {
  font-size: 17px;
  line-height: 1.5;
}

.pg-facts a,
.sx-after a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* The row that says what Pro changes. */
.pg-facts > .pg-pro {
  margin: -1px -20px 0;
  padding: 22px 20px;
  border: 1px solid #f0dba6;
  border-radius: 16px;
  background: linear-gradient(170deg, #fff3d6, #ffe7b1);
}

.pg-pro dt span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgb(138 82 0 / 0.38);
  border-radius: 999px;
  color: #5a3600;
  font-size: 13.500px;
  line-height: 1.2;
}

.pg-pro dd {
  color: var(--ink);
}

.pg-facts .pg-pro .more {
  display: flex;
  width: fit-content;
  margin-top: 10px;
  font-size: 16px;
  text-decoration-thickness: 2px;
}

.pg-page .faq {
  padding-top: 128px;
}

/* ---------- Download ---------- */
.dl-main {
  margin-top: 38px;
  padding-inline: 34px;
}

.dl-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14.500px;
}

.dl-fine span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--faint);
}

.dl-new {
  margin-top: 8px;
  font-size: 14.500px;
}

.dl-new a {
  color: var(--amber-deep);
  font-weight: 600;
  text-underline-offset: 4px;
}

.dl-mac {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 44px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.dl-mac > p {
  color: var(--body);
  font-size: 15.500px;
  line-height: 1.5;
}

.dl-mac > p .ic {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  color: var(--ink);
  vertical-align: -1px;
}

.dl-mac > p b {
  color: var(--ink);
  font-weight: 600;
}

.pg-top .dl-mac .mac-signup {
  width: min(460px, 100%);
  margin-top: 18px;
  margin-bottom: 30px;
  box-shadow: none;
  text-align: left;
  animation: none;
}

.dl-mac .mac-signup .btn-honey {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
}

/* A Mac visitor reads their part first, with the Windows download after it. */
.pg-top.for-mac {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pg-top.for-mac .dl-mac {
  order: 1;
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

.pg-top.for-mac .dl-main,
.pg-top.for-mac .dl-fine,
.pg-top.for-mac .dl-new {
  order: 2;
}

.pg-top.for-mac .dl-main {
  margin-top: 14px;
}

/* Four steps in a row, each under its number. */
.dl-how {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 48px;
  text-align: left;
}

.dl-how li {
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.dl-how li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(138 82 0 / 0.4);
  border-radius: 50%;
  background: var(--amber-tint);
  color: var(--amber-deep);
  font-size: 13.500px;
  font-weight: 700;
}

.dl-how h3 {
  margin-top: 16px;
  font: 400 30px/1.050 var(--serif);
  letter-spacing: -0.015em;
}

.dl-how p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.pg-shot {
  padding-top: 72px;
}

.pg-shot .hw-win {
  max-width: 1060px;
  margin-inline: auto;
}

/* ---------- Privacy ---------- */
.sx-where {
  padding-top: 104px;
}

.sx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 40px;
}

/* One plate: white on this computer, honey in the cloud. */
.sx-table {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #fff;
  transition:
    background-color 300ms ease,
    border-color 300ms ease;
}

.sx-where:has([data-r="cloud"][aria-selected="true"]) .sx-table {
  border-color: #e0a437;
  background: var(--amber-tint);
}

.sx-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px 48px;
  align-items: center;
  min-height: 118px;
  padding: 24px 34px;
}

.sx-row + .sx-row {
  border-top: 1px solid var(--line);
}

.sx-where:has([data-r="cloud"][aria-selected="true"]) .sx-row + .sx-row {
  border-color: rgb(138 82 0 / 0.16);
}

.sx-row b {
  display: block;
  color: var(--ink);
  font: 400 30px/1.100 var(--serif);
  letter-spacing: -0.015em;
}

.sx-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.sx-row > :last-child {
  color: var(--ink);
  font-size: 18.500px;
  font-weight: 500;
  line-height: 1.4;
}

.sx-after {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15.500px;
}

/* Four things that hold either way, side by side on hairlines. */
.sx-true {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 48px;
}

.sx-true li {
  padding-top: 22px;
  border-top: 2px solid var(--amber);
}

.sx-true h3 {
  font: 400 29px/1.080 var(--serif);
  letter-spacing: -0.015em;
}

.sx-true p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.sx-rest {
  padding-bottom: 112px;
}

@media (prefers-reduced-motion: reduce) {
  .pg-top {
    animation: none;
  }
}

@media (max-width: 1000px) {
  .pg-split {
    grid-template-columns: 1fr;
  }

  .dl-how,
  .sx-true {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .pg-hero {
    padding-top: 48px;
  }

  .pg-lede {
    font-size: 18px;
  }

  .pg-sec,
  .pg-page .faq {
    padding-top: 88px;
  }

  .sx-where {
    padding-top: 72px;
  }

  .sx-rest {
    padding-bottom: 80px;
  }

  .sx-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .sx-row b {
    font-size: 27px;
  }

  .pg-shot {
    padding-top: 48px;
  }
}

@media (max-width: 560px) {
  .dl-how,
  .sx-true {
    grid-template-columns: 1fr;
  }

  .pg-facts > .pg-pro {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .pg-facts > div {
    grid-template-columns: 1fr;
  }

  .dl-main {
    width: 100%;
  }
}

/* ---------- Phones: the facts under the download button, one to a line ---------- */
@media (max-width: 520px) {
  .dl-fine {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .dl-fine span + span::before {
    content: none;
  }
}

/* ---------- Tablets: the Pro box may not reach past the page's own margin ---------- */
@media (max-width: 900px) {
  .pg-facts > .pg-pro {
    margin-inline: -10px;
    padding-inline: 10px;
  }
}

/* ---------- A row of pictures, each with a heading and one line ---------- */
.il-row {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

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

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

.fx-pts .il-row {
  margin-top: 0;
}

.il-pic {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: 0 14px 30px -18px rgb(84 50 0 / 0.45);
}

.il-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.il-row li:hover .il-pic img {
  transform: scale(1.05);
}

.il-n {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.il-row h3 {
  margin-top: 18px;
  color: var(--ink);
  font: 400 28px/1.080 var(--serif);
  letter-spacing: -0.015em;
}

.il-4 h3 {
  font-size: 25px;
}

.il-row p {
  margin-top: 8px;
  font-size: 16.500px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .il-pic img {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .il-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

/* Phones: the pictures in one row to swipe through, the next one showing at the edge. */
@media (max-width: 720px) {
  .il-row {
    display: flex;
    gap: 14px;
    margin-inline: -16px;
    padding: 0 16px 14px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .il-row::-webkit-scrollbar {
    display: none;
  }

  .il-row li {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .il-row h3,
  .il-4 h3 {
    font-size: 26px;
  }
}

/* ---------- What the app needs, at a glance ---------- */
.dl-need {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.dl-need li {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.dl-need b {
  display: block;
  color: var(--ink);
  font: 400 34px/1.050 var(--serif);
  letter-spacing: -0.015em;
}

.dl-need span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.500px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .dl-need b {
    font-size: 27px;
  }

  .dl-need li {
    padding: 18px 16px 16px;
  }
}

/* The pictures sit a little closer than they were drawn, so the subject is easy to see when small. */
.il-pic img {
  transform: scale(1.14);
}

.il-row li:hover .il-pic img {
  transform: scale(1.2);
}

/* ---------- Pieces of the app, close up on a landscape (tools/vignettes.py) ---------- */
.vg-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 44px 24px;
  margin-top: 48px;
  text-align: left;
}

.fx-pts .vg-grid {
  margin-top: 0;
}

.vg-cell {
  grid-column: span 6;
}

.vg-n3 .vg-cell:nth-child(1),
.vg-n4 .vg-cell:nth-child(1),
.vg-n4 .vg-cell:nth-child(4) {
  grid-column: span 7;
}

.vg-n3 .vg-cell:nth-child(2),
.vg-n4 .vg-cell:nth-child(2),
.vg-n4 .vg-cell:nth-child(3) {
  grid-column: span 5;
}

.vg-n3 .vg-cell:nth-child(3) {
  grid-column: span 12;
}

.vg {
  position: relative;
  display: grid;
  place-items: center;
  height: 420px;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 24px;
  background: #cdbf9d center / cover no-repeat;
}

.vg-n3 .vg-cell:nth-child(3) .vg {
  height: 380px;
}

.vg-cell > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--ink);
  font: 400 30px/1.080 var(--serif);
  letter-spacing: -0.015em;
}

.vg-cell > p {
  max-width: 520px;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
}

.vg-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(138 82 0 / 0.4);
  border-radius: 50%;
  background: var(--amber-tint);
  color: var(--amber-deep);
  font: 700 14px/1 var(--sans);
}

.vg-ui {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 460px);
  color: var(--body);
  font-size: 17px;
  line-height: 1.4;
  transition: transform 600ms var(--ease);
}

.vg-n3 .vg-cell:nth-child(3) .vg-ui {
  width: min(100%, 580px);
}

.vg-cell:hover .vg-ui {
  transform: translateY(-5px) scale(1.012);
}

.vg-card,
.vg-toast,
.vg-bar {
  background: #fffdf9;
  box-shadow:
    0 30px 60px -22px rgb(40 25 5 / 0.5),
    0 0 0 1px rgb(40 25 5 / 0.06);
}

.vg-card {
  padding: 22px 24px;
  border-radius: 20px;
}

.vg-card.dark {
  background: #1d1c18;
  color: #d9d4c8;
}

.vg-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vg-top b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.vg-top > :last-child {
  margin-left: auto;
}

.vg-pill {
  padding: 3px 11px;
  border-radius: 99px;
  background: var(--paper-2);
  color: var(--body);
  font-size: 13.500px;
  font-weight: 600;
}

.vg-pill.ok {
  background: #dff0e3;
  color: #17694a;
}

.vg-hint {
  color: var(--faint);
  font-size: 13.500px;
}

.vg-k {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 12.500px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vg-card > .vg-k:first-child {
  margin-top: 0;
}

.vg-fine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.500px;
}

.vg-fine.never {
  color: var(--ink);
  font-weight: 600;
}

/* People in the call */
.vg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.vg-row small {
  margin-left: auto;
  color: var(--muted);
  font-size: 13.500px;
  font-weight: 400;
  text-align: right;
}

.vg-av,
.vg-in {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.vg-in {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ffb944, #e8961a);
  color: #5a3600;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.vg-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: auto;
}

.vg-bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  transform-origin: bottom;
  animation: vg-bar 900ms ease-in-out infinite alternate;
}

.vg-bars i:nth-child(2) {
  animation-delay: -300ms;
}

.vg-bars i:nth-child(3) {
  animation-delay: -600ms;
}

@keyframes vg-bar {
  from {
    transform: scaleY(0.3);
  }
}

/* The transcript */
.vg-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.vg-live::before,
.vg-rec {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: vg-pulse 1400ms ease-in-out infinite;
}

@keyframes vg-pulse {
  50% {
    opacity: 0.35;
  }
}

.vg-talk p {
  margin-top: 10px;
  color: var(--ink);
}

.vg-talk p b {
  display: block;
  color: var(--amber-deep);
  font-size: 13.500px;
  font-weight: 700;
}

.vg-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--ink);
  vertical-align: -3px;
  animation: vg-pulse 1000ms steps(2) infinite;
}

.vg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 15.500px;
  font-weight: 600;
  white-space: nowrap;
}

.vg-btn.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.vg-btn.honey {
  border-color: rgb(140 80 0 / 0.3);
  background: linear-gradient(180deg, #ffc65a, #f5a623);
}

.vg-btn.ghost {
  border-color: transparent;
  background: none;
  color: var(--muted);
}

.vg-btn.wide {
  justify-content: center;
  width: 100%;
  height: 54px;
  font-size: 17px;
}

.vg-float {
  justify-self: end;
  margin-top: -30px;
  margin-right: -14px;
  box-shadow: 0 16px 30px -10px rgb(0 0 0 / 0.55);
}

/* A note, and to-dos that can be ticked */
.vg-note h4 {
  color: var(--ink);
  font: 400 28px/1.100 var(--serif);
}

.vg-note p {
  margin-top: 8px;
  font-size: 15.500px;
}

.vg-todo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vg-todo > i {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.vg-todo[aria-pressed="true"] > i {
  border-color: var(--green);
  background: var(--green);
}

.vg-todo[aria-pressed="true"] > i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  width: 11px;
  height: 6px;
  border-bottom: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  transform: rotate(-45deg);
}

.vg-todo[aria-pressed="true"] span {
  color: var(--faint);
  text-decoration: line-through;
}

.vg-todo em {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--amber-tint);
  color: var(--amber-deep);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

/* Ask */
.vg-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  font-size: 18px;
}

.vg-spark::before {
  content: "\2726";
  color: var(--amber);
  font-style: normal;
}

.vg-seg {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 14px;
  background: var(--paper-2);
}

.vg-seg button {
  flex: 1;
  height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--body);
  font: 600 14.500px var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

.vg-seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(40 25 5 / 0.18);
}

.vg-ans p {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.vg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vg-chips span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.vg-chips em {
  margin-left: 6px;
  color: var(--faint);
  font-style: normal;
  font-weight: 400;
}

.vg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 20px;
  border-radius: 99px;
  color: var(--ink);
  font-weight: 500;
}

.vg-bar .vg-btn {
  margin-left: auto;
}

.vg-under {
  margin-left: 32px;
}

/* Decisions */
.vg-dec p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.vg-dec small {
  color: var(--faint);
  font-size: 13.500px;
  font-weight: 400;
  white-space: nowrap;
}

/* An AI app using Wafflenote */
.vg-me {
  width: fit-content;
  max-width: 88%;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  background: #35332c;
  color: #fff;
}

.vg-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #3a372f;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
}

.vg-tool em {
  display: block;
  color: #a8a295;
  font-size: 13.500px;
  font-style: normal;
  font-weight: 400;
}

.vg-card.dark .vg-k {
  color: #a8a295;
}

.vg-chat ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vg-chat li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: #f2efe8;
}

.vg-chat li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* Switches */
.vg-sw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: 500 17px var(--sans);
  text-align: left;
  cursor: pointer;
}

.vg-sw > i {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 99px;
  background: var(--line-strong);
  transition: background-color 180ms ease;
}

.vg-sw > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 180ms var(--ease);
}

.vg-sw[aria-pressed="true"] > i {
  background: var(--green);
}

.vg-sw[aria-pressed="true"] > i::after {
  transform: translateX(18px);
}

.vg-sw.off {
  padding-top: 0;
  border-top: 0;
  cursor: default;
}

/* A card that offers something */
.vg-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
}

.vg-toast b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.vg-toast small {
  color: var(--muted);
  font-size: 14px;
}

.vg-toast > div {
  margin-right: auto;
}

.vg-mark {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffb944, #f5a524 45%, #e8961a);
}

.vg-mark i {
  border-radius: 3px;
  background: rgb(160 92 0 / 0.55);
}

.vg-tool .vg-mark {
  width: 34px;
  height: 34px;
  padding: 7px;
  gap: 3px;
  border-radius: 9px;
}

/* Signing in, and the two plans */
.vg-sign {
  display: grid;
  gap: 10px;
}

.vg-g {
  color: #4285f4;
  font-size: 19px;
  font-style: normal;
  font-weight: 800;
}

.vg-ms {
  display: grid;
  grid-template-columns: 9px 9px;
  gap: 2px;
}

.vg-ms i {
  width: 9px;
  height: 9px;
  background: #f25022;
}

.vg-ms i:nth-child(2) {
  background: #7fba00;
}

.vg-ms i:nth-child(3) {
  background: #00a4ef;
}

.vg-ms i:nth-child(4) {
  background: #ffb900;
}

.vg-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vg-plans b {
  color: var(--ink);
  font-weight: 600;
}

.vg-plans big {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font: 400 32px/1 var(--serif);
}

.vg-plans small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.500px;
  line-height: 1.35;
}

.vg-plans .pro {
  background: linear-gradient(170deg, #fff6df, #ffe7b1);
}

@media (prefers-reduced-motion: reduce) {
  .vg-ui,
  .vg-bars i,
  .vg-live::before,
  .vg-rec,
  .vg-caret {
    transition: none;
    animation: none;
  }
}

@media (max-width: 980px) {
  .vg-grid {
    gap: 36px 20px;
  }

  .vg-grid .vg-cell {
    grid-column: span 12;
  }

  .vg,
  .vg-n3 .vg-cell:nth-child(3) .vg {
    height: auto;
    min-height: 320px;
    padding: 32px 18px;
  }

  .vg-ui {
    font-size: 15.500px;
  }

  .vg-cell > h3 {
    font-size: 27px;
  }

  .vg-toast {
    flex-wrap: wrap;
  }

  .vg-under {
    margin-left: 16px;
  }
}

/* The pieces keep their own shape whatever the page around them does to lists. */
.vg-ui ul {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.vg-ui li {
  display: block;
  border: 0;
}

.vg-toast {
  flex-wrap: wrap;
}

.vg-toast > div {
  flex: 1 1 180px;
}

/* Where the work is done: the lines for this computer, or for the cloud, by the choice made above them */
.vg-where p:not(.vg-fine) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 15.500px;
}

.vg-where .vg-seg {
  margin: 0 0 6px;
}

.vg-where b {
  flex: none;
  color: var(--ink);
  font-weight: 600;
}

.vg-where span {
  text-align: right;
}

.vg-where .cl,
.vg-where:has(.vg-seg button:nth-child(2)[aria-pressed="true"]) .pc {
  display: none;
}

.vg-where:has(.vg-seg button:nth-child(2)[aria-pressed="true"]) .cl {
  display: inline;
}

.vg-where:has(.vg-seg button:nth-child(2)[aria-pressed="true"]) p.cl {
  display: block;
}

.vg-where:has(.vg-seg button:nth-child(2)[aria-pressed="true"]) span.cl {
  color: var(--blue);
}

/* ---------- Each feature page lays out its points its own way ---------- */
/* Grounds other than a landscape */
.vg.g-amber {
  background:
    var(--waffle) 50% 0 / 104px 104px,
    linear-gradient(165deg, #ffc65e, #f19f20);
}

.vg.g-paper {
  background: radial-gradient(120% 100% at 20% 0%, #f6ecd6, #e9dcc0);
}

.vg.g-ink {
  background: radial-gradient(120% 90% at 30% 0%, #4c3523, #2a1c12);
}

.vg.g-night {
  background: radial-gradient(90% 90% at 75% 5%, #4a3413 0%, #1a1611 55%, #12100c 100%);
}

.vg.g-art {
  background-position: center;
}

/* Notes: one point to a row. The heading at the left, its line at the right, the app large under them. */
.vr {
  display: grid;
  gap: 80px;
}

.vr-row > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 16px 48px;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  text-align: left;
}

.vr-row h3 {
  color: var(--ink);
  font: 400 40px/1.050 var(--serif);
  letter-spacing: -0.015em;
}

.vr-row header p {
  font-size: 18px;
  line-height: 1.45;
}

.vr-row .vg {
  height: 500px;
  margin-top: 30px;
}

.vr-row:nth-child(odd) .vg {
  justify-items: start;
  padding-left: 9%;
}

.vr-row:nth-child(even) .vg {
  justify-items: end;
  padding-right: 9%;
}

.vr-row .vg-ui {
  width: min(100%, 540px);
  font-size: 18.500px;
}

/* Ask: the app at one side and the words at the other, changing sides down the page. */
.vz {
  display: grid;
  gap: 64px;
}

.vz-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  text-align: left;
}

.vz-row:nth-child(even) .vg {
  order: 2;
}

.vz-row .vg {
  height: 420px;
}

.vz-text small {
  color: var(--amber-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.vz-text h3 {
  margin-top: 12px;
  color: var(--ink);
  font: 400 46px/1.040 var(--serif);
  letter-spacing: -0.02em;
}

.vz-text p {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.45;
}

/* Follow-ups: one tall panel and two beside it, each with its words on a slip inside the picture. */
.vs3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  text-align: left;
}

.vs3 > li:first-child {
  grid-row: span 2;
}

.vs3 .vg {
  place-items: start center;
  height: 380px;
  padding: 32px 28px 130px;
}

.vs3 > li:first-child .vg {
  place-items: center;
  height: 100%;
  min-height: 784px;
  padding-bottom: 150px;
}

.vs3 > li:first-child .vg-ui {
  font-size: 18.500px;
}

.vcap {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px 20px 18px;
  border-radius: 18px;
  background: rgb(255 253 249 / 0.94);
  box-shadow: 0 10px 30px -14px rgb(40 25 5 / 0.5);
  backdrop-filter: blur(8px);
}

.vcap h3 {
  color: var(--ink);
  font: 400 27px/1.080 var(--serif);
  letter-spacing: -0.015em;
}

.vcap p {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.4;
}

/* MCP: the three points as a list; the one chosen is shown large beside it. */
.vt {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: center;
  text-align: left;
}

.vt-list {
  display: grid;
  gap: 8px;
}

.vt-list button {
  display: block;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  border-left: 3px solid var(--line-strong);
  border-radius: 0 18px 18px 0;
  background: none;
  color: var(--body);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.vt-list button b {
  display: block;
  color: var(--muted);
  font: 400 30px/1.080 var(--serif);
  letter-spacing: -0.015em;
  transition: color 200ms ease;
}

.vt-list button span {
  display: block;
  margin-top: 6px;
  font-size: 16.500px;
  line-height: 1.4;
}

.vt-list button[aria-selected="true"] {
  border-left-color: var(--amber);
  background: var(--card);
  box-shadow: var(--shadow-float);
}

.vt-list button[aria-selected="true"] b,
.vt-list button:hover b {
  color: var(--ink);
}

.vt-stage {
  position: relative;
  height: 520px;
}

.vt-stage .vg {
  position: absolute;
  inset: 0;
  height: auto;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 320ms ease,
    visibility 320ms;
}

.vt-stage .vg.on {
  visibility: visible;
  opacity: 1;
}

.vt-stage .vg-ui {
  width: min(100%, 520px);
  font-size: 18.500px;
}

@media (max-width: 980px) {
  .vr {
    gap: 56px;
  }

  .vr-row > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .vr-row h3 {
    font-size: 32px;
  }

  .vr-row .vg,
  .vz-row .vg {
    height: auto;
    min-height: 320px;
    margin-top: 22px;
  }

  .vr-row:nth-child(n) .vg {
    justify-items: center;
    padding: 32px 18px;
  }

  .vr-row .vg-ui,
  .vt-stage .vg-ui,
  .vs3 > li:first-child .vg-ui {
    font-size: 15.500px;
  }

  .vz {
    gap: 48px;
  }

  .vz-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .vz-row:nth-child(even) .vg {
    order: 0;
  }

  .vz-row .vg {
    margin-top: 0;
  }

  .vz-text h3 {
    font-size: 34px;
  }

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

  .vs3 > li:first-child {
    grid-row: auto;
  }

  .vs3 .vg,
  .vs3 > li:first-child .vg {
    height: auto;
    min-height: 0;
    padding: 28px 18px 150px;
  }

  .vt {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .vt-list button {
    padding: 14px 18px;
  }

  .vt-list button b {
    font-size: 25px;
  }

  .vt-stage {
    height: 400px;
  }
}

/* ---------- Notes: a row is two panels side by side, the app large in one and a single detail in the other ---------- */
.vr {
  gap: 64px;
}

.vr-duo {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.vr-row:nth-child(even) .vr-duo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
}

.vr-row:nth-child(even) .vr-duo .vg.cut {
  order: 2;
}

.vr-row:nth-child(n) .vr-duo .vg {
  justify-items: center;
  height: 410px;
  margin-top: 0;
  padding: 30px;
  border-radius: 16px;
}

.vr-row:nth-child(n) .vr-duo .vg.cut {
  align-items: end;
  padding-bottom: 0;
}

.vr-duo .vg.cut .vg-ui {
  width: min(100%, 600px);
  margin-bottom: -46px;
  font-size: 17.500px;
}

.vr-duo .vg.side .vg-ui {
  justify-items: center;
  width: auto;
  max-width: 100%;
  font-size: 16px;
}

.vg-tall {
  padding-bottom: 60px;
}

/* A window of the app, its top and what it holds */
.vg-win {
  position: relative;
  min-height: 330px;
  padding: 0 30px 70px;
  border-radius: 18px 18px 0 0;
  background: #fffdf9;
  box-shadow:
    0 30px 60px -22px rgb(40 25 5 / 0.5),
    0 0 0 1px rgb(40 25 5 / 0.06);
}

.vg-winbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin: 0 -30px 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.vg-winbar .vg-mark {
  width: 22px;
  height: 22px;
  padding: 5px;
  gap: 2px;
  border-radius: 6px;
}

.vg-winbar > span:last-child {
  margin-left: auto;
  font-size: 12px;
}

.vg-win h4 {
  color: var(--ink);
  font: 400 42px/1 var(--serif);
  letter-spacing: -0.015em;
}

.vg-meta {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.vg-ghost {
  max-width: 250px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 15.500px;
}

.vg-callgrid {
  position: absolute;
  top: 96px;
  right: -34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 290px;
  padding: 8px;
  border-radius: 16px;
  background: #17140f;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.65);
}

.vg-callgrid .vg-av,
.vg-you {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.vg-you {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #4c3523, #2a1c12);
}

.vg-ctl {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 2px;
}

.vg-ctl i {
  width: 34px;
  height: 22px;
  border-radius: 99px;
  background: #3a352c;
}

.vg-ctl i.end {
  background: var(--red);
}

/* The one thing in the small panel */
.vg-ear {
  display: grid;
  justify-items: center;
  gap: 30px;
  padding: 34px 28px;
  border-radius: 99px;
  background: #17140f;
  box-shadow: 0 30px 60px -18px rgb(0 0 0 / 0.6);
}

.vg-ear .vg-mark {
  width: 58px;
  height: 58px;
  padding: 12px;
  gap: 5px;
  border-radius: 16px;
}

.vg-ear .vg-bars {
  gap: 7px;
  height: 40px;
  margin: 0;
}

.vg-ear .vg-bars i {
  width: 7px;
  border-radius: 4px;
}

.vg-mini {
  max-width: 250px;
  padding: 14px 18px;
}

.vg-mini p {
  font-size: 16px;
}

.vg-ended {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgb(40 25 5 / 0.55);
}

.vg-hang {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 20px 40px -12px rgb(120 20 20 / 0.7);
}

.vg-hang::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 20px;
  width: 36px;
  height: 11px;
  border-radius: 8px 8px 3px 3px;
  background: #fff;
}

.vg-ended b {
  font: 400 34px/1 var(--serif);
}

.vg-ended small {
  font-size: 15.500px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .vr-row:nth-child(n) .vr-duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .vr-row:nth-child(even) .vr-duo .vg.cut {
    order: 0;
  }

  .vr-row:nth-child(n) .vr-duo .vg {
    height: auto;
    min-height: 0;
    padding: 26px 16px;
  }

  .vr-row:nth-child(n) .vr-duo .vg.cut {
    padding-bottom: 0;
  }

  .vr-row:nth-child(n) .vr-duo .vg.side {
    min-height: 190px;
  }

  .vr-duo .vg.cut .vg-ui {
    font-size: 15px;
  }

  .vg-callgrid {
    top: 150px;
    right: -6px;
    width: 190px;
  }

  .vg-win h4 {
    font-size: 32px;
  }
}

/* ---------- The pages for one call app each: its icon beside Wafflenote's, and a part of its own ---------- */
.ap-top {
  padding-top: 64px;
}

.ap-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: 340px;
  border-radius: 24px;
  background: #efe3c6 center / cover no-repeat;
}

.ap-tile {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border-radius: 38px;
  background: #fffdf9;
  box-shadow:
    0 30px 60px -24px rgb(60 36 0 / 0.55),
    0 0 0 1px rgb(40 25 5 / 0.06);
}

.ap-tile img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.ap-tile .vg-mark {
  width: 92px;
  height: 92px;
  padding: 19px;
  gap: 8px;
  border-radius: 24px;
}

.ap-tile .vg-mark i {
  border-radius: 6px;
}

.ap-link {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
}

.ap-link i {
  width: 6px;
  height: 100%;
  border-radius: 4px;
  background: #fffdf9;
  box-shadow: 0 4px 10px -4px rgb(60 36 0 / 0.5);
  transform-origin: center;
  animation: ap-wave 1100ms ease-in-out infinite alternate;
}

.ap-link i:nth-child(2) {
  animation-delay: -250ms;
}

.ap-link i:nth-child(3) {
  animation-delay: -500ms;
}

.ap-link i:nth-child(4) {
  animation-delay: -750ms;
}

.ap-link i:nth-child(5) {
  animation-delay: -1000ms;
}

@keyframes ap-wave {
  from {
    transform: scaleY(0.25);
  }
}

.ap-h {
  text-align: center;
}

.ap-table {
  max-width: 980px;
  margin: 44px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fffdf9;
  text-align: left;
}

.ap-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
}

.ap-row > * {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--body);
  font-size: 16px;
  line-height: 1.35;
}

.ap-row > :first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 500;
}

.ap-row > :last-child {
  background: #fff7e3;
  color: var(--ink);
  font-weight: 600;
}

.ap-head > * {
  min-height: 56px;
  border-top: 0;
  color: var(--ink);
  font-weight: 600;
}

.ap-head > :first-child {
  color: var(--muted);
  font-size: 14.500px;
  font-weight: 400;
}

.ap-it {
  margin-top: 4px;
  font-size: 16.500px;
}

.ap-it a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ap-link i {
    animation: none;
  }
}

@media (max-width: 720px) {
  .ap-pair {
    gap: 16px;
    height: 240px;
  }

  .ap-tile {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .ap-tile img,
  .ap-tile .vg-mark {
    width: 60px;
    height: 60px;
  }

  .ap-tile .vg-mark {
    padding: 12px;
    gap: 5px;
    border-radius: 16px;
  }

  .ap-link {
    gap: 5px;
    height: 30px;
  }

  .ap-link i {
    width: 4px;
  }

  .ap-row > * {
    min-height: 52px;
    padding: 10px 10px;
    font-size: 13.500px;
  }
}

@media (max-width: 720px) {
  .ap-top {
    padding-top: 40px;
  }
}

/* A panel is as tall as what it shows: a piece of the app is never cut off at the bottom by its frame.
   (Only the Notes rows cut a window on purpose, and they say so themselves.) */
.vg-cell {
  display: flex;
  flex-direction: column;
}

.vg-grid .vg,
.vg-grid.vg-n3 .vg-cell:nth-child(3) .vg {
  flex: 1 0 auto;
  height: auto;
  min-height: 420px;
  padding-block: 40px;
}

.vg-grid.vg-n3 .vg-cell:nth-child(3) .vg {
  min-height: 380px;
}

/* A click with the mouse leaves no ring on a piece; the keyboard still gets one. */
.vg-todo:focus:not(:focus-visible),
.vg-sw:focus:not(:focus-visible),
.vg-seg button:focus:not(:focus-visible),
.vt-list button:focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 980px) {
  .vg-grid .vg,
  .vg-grid.vg-n3 .vg-cell:nth-child(3) .vg {
    min-height: 300px;
    padding-block: 30px;
  }
}

/* ---------- A piece of the app on a colour of paper, an ink drawing behind it (as the blog's covers are made) ---------- */
.vg.g-drawn {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--g);
}

.g-drawn .vg-ui {
  position: relative;
  z-index: 1;
}

.vg-ink {
  position: absolute;
  right: -5%;
  bottom: -14%;
  width: min(52%, 360px);
  height: auto;
  transform: rotate(7deg);
  pointer-events: none;
}

/* On a light paper only the ink shows: the drawing's own paper takes the colour under it. */
.vg-ink.on-light {
  mix-blend-mode: multiply;
}

/* Every second panel of a row has its drawing at the other corner. */
.vg-cell:nth-child(even) .vg-ink {
  right: auto;
  left: -5%;
  transform: rotate(-7deg);
}

@media (max-width: 700px) {
  .vg-ink {
    width: 46%;
    bottom: -8%;
  }
}

/* Under the table of what a call app does on its own: where it was read. */
.ap-src {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted, #6f6a5c);
  font-size: 13.5px;
}
.ap-src a {
  color: inherit;
}
