/* Leave both screens readable, with only their frame corners overlapping. One
   geometry serves all four modes, so the illustration does not resize when the
   reader moves between them. */

.tablet {
  width: 60%;
  bottom: 61px;
}

.computer {
  width: 37%;
  top: 0;
}

.computer-label {
  top: 245px;
  right: 0;
}

.pencil-object {
  right: 34%;
  bottom: 46px;
  height: 175px;
  transform: rotate(16deg);
}

.connection-trace {
  left: 25%;
  top: 34px;
}

.tablet-label {
  left: 17%;
  bottom: 24px;
}

.hero {
  grid-template-columns: minmax(0,.94fr) minmax(0,1.25fr);
}

.hero h1 {
  font-size: clamp(42px,4.15vw,62px);
}

.hero-description {
  font-size: 15px;
}

.hero-footnote {
  font-size: 11px;
}

.mode-tab small {
  font-size: 10px;
}

#mode-description {
  font-size: 12px;
}

.connection-copy>p:not(.eyebrow) {
  font-size: 14px;
}

.connection-section {
  background: #283b40;
  color: #edf0e6;
  border-color: #283b40;
}

.connection-section .section-number {
  color: #e39b84;
}

.connection-copy>p:not(.eyebrow) {
  color: #b8c6c2;
}

.transport-switch {
  border-color: #677d7e;
}

.transport-thumb {
  background: #edf0e6;
}

@supports not selector(:has(*)) {
  .transport-switch button[aria-pressed=true] {
    background: #edf0e6;
  }
}

.transport-switch button[aria-pressed=true] {
  color: #283b40;
}

.connection-figure .line-tablet,.connection-figure .line-computer,.line-computer:after {
  border-color: #a7beb6;
}

.line-tablet:before,.line-computer:before {
  border-color: #647e7a;
}

.line-tablet i,.line-computer i,.line-computer i:after {
  background: #a7beb6;
}

.connection-figure .mini-brand {
  background: #d3dfd3;
}

.link-path {
  color: #c48975;
}

.link-label {
  color: #e0b09b;
}

.connection-device-labels,.connection-figure>p {
  color: #c3d0c8;
}

.connection-figure>a {
  border-color: #677d78;
}

.connection-figure>a:hover {
  color: #e4ad97;
}

@media (min-width:1500px) {
  .hero h1 {
    font-size: 62px;
  }
}

@media (max-width:1200px) {
  .wrap {
    padding-inline: 38px;
  }

  .masthead:after {
    left: 38px;
    right: 38px;
  }

  .hero {
    gap: 16px;
    padding-top: 63px;
    min-height: 595px;
  }

  .hero h1 {
    font-size: 49px;
    letter-spacing: -2.5px;
  }

  .hero-intro>.eyebrow {
    font-size: 8px;
    letter-spacing: .65px;
  }

  .hero-description {
    font-size: 12px;
  }

  .demo-stage {
    height: 445px;
  }

  .tablet {
    bottom: 72px;
    width: 88%;
  }

  .computer {
    width: 61%;
  }

  .computer-label {
    top: calc(41% + 21px);
    font-size: 10px;
  }

  .tablet-label {
    bottom: 34px;
  }

  .pencil-object {
    height: 198px;
    right: 5%;
    bottom: 56px;
  }

  .stage-index {
    left: 9px;
    font-size: 8px;
  }

  .mode-tab {
    gap: 9px;
  }

  .mode-tab:not(:first-child) {
    padding-left: 16px;
  }

  .mode-tab small {
    font-size: 8px;
  }

  .mode-tab>.icon {
    width: 18px;
    height: 18px;
  }

  .mode-tab-arrow {
    font-size: 12px;
  }

  .connection-layout {
    gap: 55px;
  }

  .get-downloads {
    gap: 55px;
  }
}

@media (max-width:1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 56px;
    padding-bottom: 28px;
  }

  .hero-intro {
    padding-bottom: 0;
    max-width: 600px;
  }

  .hero-intro>.eyebrow {
    font-size: 10px;
    letter-spacing: 1.1px;
  }

  .hero h1 {
    font-size: 65px;
    margin-top: 23px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero .button {
    margin-top: 24px;
  }

  .hero-footnote {
    position: absolute;
    bottom: 14px;
    left: 228px;
  }

  .demo-stage {
    height: 500px;
    max-width: 690px;
    width: 100%;
    margin: auto;
  }

  .tablet {
    width: 80%;
    bottom: 70px;
  }

  .computer {
    width: 54%;
  }

  .computer-label {
    top: 261px;
    right: 9px;
  }

  .pencil-object {
    height: 243px;
    right: 12%;
    bottom: 58px;
  }

  .stage-index {
    left: 20px;
  }

  .demo-caption {
    bottom: -2px;
  }

  .tablet-label {
    bottom: 33px;
  }

  .mode-tab {
    padding-block: 22px;
  }

  .mode-tab>.icon {
    display: none;
  }

  .mode-tab small {
    white-space: normal;
    line-height: 1.5;
    max-width: 125px;
  }

  .mode-tab .mode-number {
    padding-top: 2px;
  }

  #mode-description {
    gap: 20px;
  }

  #mode-description p {
    font-size: 10px;
  }

  .connection-layout {
    gap: 35px;
  }

  .connection-copy h2 {
    font-size: 36px;
  }

  .connection-figure {
    padding-inline: 0;
  }

  .connection-figure {
    --tablet-w: 51px;
    --computer-w: 96px;
  }

  .line-tablet {
    height: 77px;
  }

  .line-computer {
    height: 69px;
  }

  .link-path {
    margin-inline: 12px;
  }

  .link-label {
    font-size: 7px;
    letter-spacing: .5px;
  }

  .link-signal {
    height: 50px;
  }

  .transport-switch button {
    padding: 12px 20px;
    min-width: 138px;
    font-size: 13px;
  }

  .connection-device-labels {
    font-size: 8px;
  }

  .get-section {
    padding-block: 75px;
  }

  .get-downloads {
    gap: 35px;
  }

  .download-panel h3 {
    font-size: 18px;
  }

  .panel-note {
    max-width: none;
  }

  .download-item {
    padding: 12px 13px;
    gap: 11px;
  }

  .download-text small {
    font-size: 8px;
    letter-spacing: .4px;
  }

  .footer-top {
    gap: 25px;
  }
}

@media (max-width:650px) {
  html {
    scroll-padding-top: 18px;
  }

  .wrap {
    padding-inline: 23px;
  }

  .masthead {
    height: 79px;
    gap: 15px;
  }

  .masthead:after {
    left: 23px;
    right: 23px;
  }

  .brand {
    font-size: 21px;
    gap: 9px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .masthead nav {
    gap: 0;
  }

  .nav-detail {
    display: none;
  }

  .nav-get {
    font-size: 10px;
    gap: 15px;
    padding: 8px 0;
  }

  .nav-get .icon {
    width: 14px;
    height: 14px;
  }

  .hero {
    padding-top: 43px;
    gap: 30px;
    padding-bottom: 22px;
  }

  .hero-intro>.eyebrow {
    font-size: 8px;
    letter-spacing: .6px;
    gap: 7px;
  }

  .hero h1 {
    font-size: clamp(38px,9.8vw,60px);
    letter-spacing: -2.1px;
    margin-top: 22px;
  }

  .hero h1 em {
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 21px;
  }

  .button {
    padding: 13px 17px;
    gap: 30px;
    font-size: 11px;
  }

  .hero-footnote {
    position: static;
    margin-top: 12px;
    font-size: 9px;
  }

  .hero .button {
    margin-top: 24px;
  }

  .demo-stage {
    height: calc((100vw - 46px)*.89 + 38px);
    max-height: 455px;
  }

  .stage-index {
    top: 7px;
    left: 0;
    font-size: 7px;
    gap: 3px;
  }

  .computer {
    top: 5px;
    right: 0;
    width: 57%;
    max-width: none;
  }

  .monitor-frame {
    padding: 4px 4px 0;
    border-radius: 7px 7px 0 0;
  }

  .desktop-title {
    height: 11px;
    font-size: 3.3px;
  }

  .window-dots {
    left: 3px;
    gap: 2px;
  }

  .window-dots i {
    width: 2px;
    height: 2px;
  }

  .monitor-chin {
    height: 9px;
    border-radius: 0 0 6px 6px;
  }

  .monitor-stand {
    height: 23px;
    width: 31px;
  }

  .monitor-base {
    width: 65px;
    height: 3px;
  }

  .computer-label {
    top: calc((100vw - 46px)*.425 + 10px);
    right: 0;
    font-size: 8px;
  }

  .tablet {
    width: 87%;
    padding: 7px 10px 4px;
    bottom: 69px;
    border-radius: 14px;
    box-shadow: 0 1px 0 1px #b7bdb3,0 2px 0 2px #d7d9d0,0 17px 25px -17px #19312880;
  }

  .tablet-topbar {
    height: 19px;
    padding-bottom: 4px;
    font-size: 5px;
    gap: 10px;
  }

  .tablet-connected {
    gap: 3px;
  }

  .tablet-connected i {
    width: 3px;
    height: 3px;
  }

  .tablet-tools {
    gap: 8px;
  }

  .tablet-tools .icon {
    width: 8px;
    height: 8px;
  }

  .tablet-mode {
    font-size: 4px;
    gap: 3px;
    padding: 1px 4px;
  }

  .tablet-mode .icon {
    width: 6px;
    height: 6px;
  }

  .tablet-camera {
    width: 3px;
    height: 3px;
    left: 3px;
  }

  .tablet-bottom {
    height: 12px;
    font-size: 4px;
    padding-top: 4px;
  }

  .home-indicator {
    height: 1px;
  }

  .drawing-tools {
    top: 5px;
    left: 5px;
    padding: 2px;
    gap: 2px;
    border-radius: 4px;
  }

  .tool {
    width: 25px;
    height: 25px;
  }

  .tool .icon {
    width: 12px;
    height: 12px;
  }

  .tool-rule {
    margin: 0;
  }

  .canvas-hint {
    font-size: 9px;
    right: 12px;
    bottom: 17px;
  }

  .pencil-object {
    right: 6%;
    height: calc((100vw - 46px)*.37);
    width: 8px;
    bottom: 60px;
    border-radius: 5px 5px 0 0;
  }

  .pencil-object:after {
    bottom: -12px;
    height: 12px;
  }

  .pencil-object span {
    top: 15px;
  }

  .connection-trace {
    top: 39px;
    left: 21%;
    height: 39px;
    width: 35px;
    gap: 3px;
  }

  .connection-trace span {
    height: 9px;
  }

  .connection-trace .icon {
    width: 11px;
    height: 11px;
  }

  .tablet-label {
    bottom: 38px;
    left: 12%;
    font-size: 11px;
  }

  .demo-caption {
    bottom: 1px;
    gap: 5px;
    font-size: 7px;
  }

  .demo-caption button {
    font-size: 7px;
    gap: 4px;
  }

  .demo-caption-label {
    gap: 4px;
  }

  #reset-demo {
    margin-left: 1px;
    padding: 7px 4px;
  }

  .mode-section {
    padding-top: 6px;
  }

  .mode-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .mode-tab {
    gap: 9px;
    padding: 17px 10px 17px 0;
    min-height: 77px;
  }

  .mode-tab:not(:first-child) {
    padding-left: 13px;
  }

  .mode-tab:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .mode-tab:nth-child(n/**/+3) {
    border-top: 1px solid var(--rule);
  }

  .mode-tab>span:nth-last-child(2) {
    font-size: 12px;
  }

  .mode-tab small {
    font-size: 8px;
    margin-top: 5px;
    max-width: none;
  }

  .mode-tab .mode-number {
    font-size: 8px;
  }

  .mode-tab-arrow {
    font-size: 13px;
  }

  .mode-tab.active:before {
    height: 2px;
  }

  .mode-number {
    padding-top: 2px;
  }

  #mode-description {
    display: block;
    padding-top: 17px;
    min-height: 113px;
  }

  #mode-description p {
    font-size: 11px;
    line-height: 1.75;
  }

  #mode-description>span {
    display: block;
    margin-top: 9px;
    font-size: 8px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .8px;
  }

  h2 {
    font-size: 36px;
    letter-spacing: -1.6px;
  }

  .connection-section {
    padding-block: 48px;
  }

  .connection-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .connection-copy h2 {
    margin-top: 21px;
  }

  .connection-copy>p:not(.eyebrow) {
    margin-top: 19px;
  }

  .transport-switch {
    margin-top: 24px;
  }

  .transport-switch button {
    padding: 13px 20px;
    min-width: 132px;
    font-size: 14px;
  }

  .connection-figure {
    --tablet-w: 59px;
    --computer-w: 113px;
    padding: 2px 5px 0;
  }

  .connection-drawing {
    height: 105px;
  }

  .line-tablet {
    height: 82px;
  }

  .line-computer {
    height: 76px;
  }

  .link-path {
    margin-inline: 20px;
  }

  .link-label {
    font-size: 8px;
  }

  .link-signal {
    height: 46px;
  }

  .connection-device-labels {
    font-size: 9px;
    padding-top: 12px;
  }

  .connection-figure>p {
    margin-top: 27px;
  }

  .get-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .get-downloads {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .download-panel h3 {
    font-size: 19px;
    margin-top: 15px;
  }

  .download-list {
    margin-top: 19px;
  }

  .download-item {
    padding: 13px 14px;
  }

  .download-text small {
    font-size: 9px;
  }


  .get-pairing {
    margin-top: 29px;
    padding-top: 21px;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 26px;
  }

  .footer-top>a:last-child {
    gap: 15px;
    font-size: 10px;
  }

  .footer-bottom {
    margin-top: 29px;
    align-items: flex-start;
    font-size: 8px;
  }

  .footer-bottom>div {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 16px;
    max-width: 180px;
  }

  .footer-bottom>div>span {
    flex-basis: 100%;
    text-align: right;
    margin-left: 0;
    font-size: 7px;
  }

  footer {
    padding-bottom: 24px;
  }

  .touch-surface p {
    font-size: 17px;
  }

  .touch-surface>span {
    font-size: 6px;
    margin-top: 8px;
  }

  .touch-crosshair {
    inset: 11px;
  }

  .touch-orbits {
    top: 10%;
    gap: 7px;
  }

  .touch-orbits i {
    width: 10px;
    height: 14px;
  }

  .demo-text-button {
    font-size: 7px;
    margin-top: 14px;
    padding: 4px;
  }

  .pointer-buttons,.modifier-buttons {
    gap: 5px;
  }

  .pointer-buttons button {
    font-size: 7px;
    padding: 8px 2px;
  }

  .modifier-buttons button {
    font-size: 7px;
    padding: 6px;
  }

  .gamepad-surface {
    padding: 9px 12px;
  }

  .shoulder-buttons button {
    font-size: 5px;
    padding: 4px 8px;
  }

  .game-controls {
    left: 16px;
    right: 16px;
    top: 27%;
    bottom: 23%;
  }

  .analog-pad,.abxy {
    scale: .7;
    width: 94px;
    flex-basis: 65px;
  }

  .analog-pad {
    transform-origin: left center;
    flex-basis: 94px;
  }

  .abxy {
    transform-origin: right center;
    margin-right: 20px;
  }

  .gamepad-tip {
    font-size: 6px;
    bottom: 10px;
  }

  .game-sun {
    width: 17px;
    height: 17px;
  }

  .car-shadow {
    left: calc(50% - 13.5px);
    bottom: 8px;
    width: 27px;
    height: 12px;
  }

  .game-car {
    width: 23px;
    height: 21px;
    bottom: 12px;
    left: calc(50% - 11.5px);
  }

  .game-speedo {
    left: 7px;
    bottom: 5px;
    width: 34px;
    height: 17px;
  }

  .speedo-needle {
    height: 12px;
  }

  .mini-sidebar {
    width: 15px;
    padding: 9px 4px;
  }

  .mini-sidebar i {
    width: 6px;
    height: 2px;
    margin-bottom: 7px;
  }

  .mini-document {
    inset: 6px 10px auto 22px;
    padding: 8px;
    min-height: 170px;
  }

  .mini-document>span {
    font-size: 3px;
    letter-spacing: .5px;
  }

  .mini-document h3 {
    font-size: 9px;
    margin: 3px 0 6px;
  }

  .mini-document p {
    font-size: 3px;
  }

  .remote-cursor {
    width: 9px;
    height: 11px;
  }
}

@media (max-width:360px) {
  .wrap {
    padding-inline: 18px;
  }

  .masthead:after {
    left: 18px;
    right: 18px;
  }

  .hero-intro>.eyebrow {
    font-size: 7px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .demo-stage {
    height: calc((100vw - 36px)*.89 + 38px);
  }

  .mode-tab small {
    font-size: 7px;
  }

  .download-item {
    padding: 11px 12px;
    gap: 10px;
  }

  .download-text small {
    font-size: 8px;
  }

  .download-panel h3 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    animation: none !important;
    transition: none !important;
  }
}

/* The decoration follows the device; it never extends beyond the viewport. */

@media (min-width:1001px) and (max-width:1200px) {
  .tablet {
    width: 60%;
    bottom: 59px;
  }

  .computer {
    width: 37%;
  }

  .computer-label {
    top: 186px;
  }

  .pencil-object {
    right: 30%;
    bottom: 48px;
    height: 142px;
  }

  .tablet-label {
    bottom: 24px;
  }

  .hero-description {
    font-size: 13px;
  }
}

@media (min-width:651px) and (max-width:1000px) {
  .tablet {
    width: 60%;
    bottom: 67px;
  }

  .computer {
    width: 37%;
  }

  .computer-label {
    top: 218px;
  }

  .pencil-object {
    right: 30%;
    bottom: 56px;
    height: 185px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .tablet-label {
    bottom: 29px;
  }
}

@media (max-width:650px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .tablet {
    width: 88%;
    bottom: 67px;
  }

  .computer {
    width: 60%;
  }

  .computer-label {
    top: calc((100vw - 46px)*.47 + 5px);
  }

  .pencil-object {
    right: 6%;
    bottom: 56px;
    height: calc((100vw - 46px)*.32);
    transform: rotate(13deg);
  }

  .tablet-label {
    bottom: 36px;
    left: 13%;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-footnote {
    font-size: 10px;
  }

  .demo-stage {
    height: calc((100vw - 46px)*1.27 + 45px);
  }

  .mode-tab small {
    font-size: 8px;
  }

  .connection-copy>p:not(.eyebrow) {
    font-size: 13px;
  }

  .connection-copy>p:not(.eyebrow) {
    color: #b8c6c2;
  }

  .connection-figure>p {
    font-size: 12px;
  }

  .game-controls {
    left: 11px;
    right: 11px;
  }

  .abxy {
    margin-right: 17px;
  }
}
