/* Loaded only by the homepage. The legal pages keep their original styling. */
.paper-demo {
  min-width: 0;
}
.paper-demo .note-stack {
  height: 430px;
  min-height: 0;
  isolation: isolate;
}
.paper-demo .note,
.paper-demo .note-behind {
  position: absolute;
  top: 34px;
  width: 260px;
  height: 284px;
  min-height: 0;
}
.paper-demo .note {
  padding: 30px;
  z-index: 2;
}
.paper-demo .note p {
  font-size: 1.85rem;
}
.paper-demo .note small {
  font-size: .6rem;
}
.paper-creases {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    conic-gradient(from 30deg at 28% 35%, #0000 0 50deg, #fff9 51deg 105deg, #95700d70 106deg 145deg, #0000 146deg),
    conic-gradient(from 180deg at 70% 65%, #0000 0 60deg, #fff9 61deg 112deg, #95700d80 113deg 165deg, #0000 166deg),
    linear-gradient(135deg, #fae075 15%, #c4a73d 48%, #fff0a4 49%, #fae075 70%);
}
.paper-flight {
  position: absolute;
  top: 151px;
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  z-index: 3;
  visibility: hidden;
  filter: drop-shadow(2px 4px 3px #0002);
}
.paper-ball {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: polygon(12% 8%, 36% 0, 58% 10%, 80% 4%, 98% 27%, 89% 53%, 100% 70%, 76% 95%, 49% 89%, 29% 100%, 4% 77%, 10% 50%, 0 30%);
  background:
    conic-gradient(from 25deg at 30% 36%, #fff3b0, #c1a33d 70deg, #fae075 71deg 165deg, #fff3b0 166deg 230deg, #b2912e 231deg 290deg, #fae075 291deg),
    var(--butter);
}
.paper-ball::after {
  content: "";
  display: block;
  position: absolute;
  inset: 12% 8% 8% 34%;
  clip-path: polygon(50% 0, 100% 52%, 52% 100%, 0 43%);
  background: conic-gradient(from 15deg at 44% 48%, #fff4b7, #c0a33d 105deg, #f5d867 106deg 225deg, #b49838 226deg, #fff4b7);
}
.demo-bin {
  position: absolute;
  right: 24px;
  bottom: 4px;
  width: 92px;
  height: 98px;
  color: var(--muted);
  transform-origin: 50% 90%;
}
.bin-paper {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 9px;
  left: 34px;
  transform: rotate(28deg);
  visibility: hidden;
}
.bin-rim {
  position: absolute;
  top: 22px;
  left: 12px;
  width: 68px;
  height: 10px;
  border-bottom: 2px solid var(--muted);
  border-radius: 50%;
}
.demo-controls {
  min-height: 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}
.demo-trigger {
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 28px;
  min-height: 46px;
  width: 210px;
  max-width: 100%;
  padding: 9px 20px;
  cursor: pointer;
  touch-action: manipulation;
}
.demo-trigger[hidden] {
  display: none;
}
.demo-trigger:hover {
  background: var(--paper);
}
.demo-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.demo-trigger[aria-disabled="true"] {
  cursor: default;
}
.demo-trigger .demo-icon {
  display: inline-block;
  margin-left: 8px;
  width: 1em;
}
.demo-status {
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  margin: 10px 0 0;
  min-height: 3.4em;
  width: 100%;
}
.paper-demo[data-state="throwing"] .note,
.paper-demo[data-state="landing"] .note,
.paper-demo[data-state="binned"] .note,
.paper-demo:not([data-state="ready"]) .note-behind {
  visibility: hidden;
}
.paper-demo[data-state="throwing"] .paper-flight {
  visibility: visible;
}
.paper-demo[data-state="landing"] .bin-paper,
.paper-demo[data-state="binned"] .bin-paper {
  visibility: visible;
}
@media (max-width: 760px) {
  .paper-demo .note-stack { height: 390px; }
  .paper-demo .note,
  .paper-demo .note-behind { width: 240px; height: 260px; top: 26px; }
  .paper-demo .note { padding: 26px; }
  .paper-demo .note p { font-size: 1.75rem; }
  .paper-demo .note small { font-size: .56rem; }
  .paper-flight { top: 131px; }
  .demo-bin { right: 14px; }
}
@media print {
  .demo-controls, .demo-bin { display: none; }
}

.app-store-cta { margin-top: 28px; }
.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  min-height: 66px;
  padding: 12px 23px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: var(--accent);
  color: var(--desk);
  font: .8rem/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  text-decoration: none;
}
.app-store-button strong { font-size: 1.4rem; font-weight: 500; }
.app-store-button:disabled { cursor: not-allowed; opacity: 1; }
.app-store-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.download-symbol { font-size: 1.7rem; font-weight: 300; }
#app-store-status { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
#app-store-status strong { display: block; font-weight: 600; }
#app-store-status span { display: block; }

.demo-label { display: inline-block; width: 140px; text-align: center; }
