@import url("site.css?v=2") layer(instrument);

/* The instrument has its own typography. Let the shared platform stylesheet
   set the masthead, hero, film and footer exactly as it does on Duo. */
@layer instrument {
  .mac-home,
  .mac-home :is(header, header *, .hero, .hero *, .listen, .listen *, footer, footer *) {
    all: revert;
  }
}
.mac-home {
  background: #070707;
  font-family: inherit;
}
header .brand img { width: 32px; height: 32px; }
.mac-home .mac-display {
  background: radial-gradient(ellipse at 50% 62%, #98142126, transparent 70%);
  border-color: transparent;
  box-shadow: none;
}
.mac-display picture { display: block; }

.mac-home .mac-display img {
  aspect-ratio: 1426 / 1004;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px #0009);
}
.mac-home .mac-play {
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  align-items: start;
}
.play-intro p:not(.legend), .mac-features p:not(.legend) {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.mac-home .instrument {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 46px clamp(15px,3vw,32px) 26px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: #0c0c0c;
  color: #faf7f5;
}
.instrument .island {
  position: absolute;
  margin-top: 0;
  max-width: 88%;
}
.instrument .legend {
  color: #a5a2a1;
  margin-bottom: 0;
}
.instrument .lid { max-width: 100%; }
.instrument .sound-state { color: #a5a2a1; }
.mac-features {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(28px,5vw,72px);
  padding: clamp(40px,7vw,78px) 0;
  border-top: 1px solid var(--rule);
}
.mac-features h2 { font-size: clamp(2rem,3.6vw,3.3rem); }
.mac-features .dock-demo { justify-content: flex-start; }
.mac-features .dock-demo img { width: 64px; height: 64px; }
.mac-home .facts { max-width: 75ch; }
.mac-home .facts li { color: var(--muted); }
.mac-home .facts li span:first-child { color: #b7b2b1; }
.mac-home .compat .legend { color: var(--red); }
.colophon { font-size: .77rem; line-height: 1.5; color: var(--muted); padding-bottom: 25px; }
@media (max-width: 740px) {
  .mac-home .mac-play, .mac-features { grid-template-columns: minmax(0,1fr); }
  .mac-display { max-width: 520px; justify-self: center; }
}

.mac-home .mac-play {
  grid-template-areas: "intro preview" "controls preview";
  gap: 28px clamp(24px,4vw,56px);
}
.play-intro { grid-area: intro; }
.play-controls { grid-area: controls; min-width: 0; }
.play-controls .packs { margin-top: 0; }
.play-controls .pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
  gap: 8px;
  margin-top: 12px;
}
.play-controls .pack { padding: 0 8px; }
.play-controls .legend { display: block; margin: 0; line-height: 20px; color: #aaa6a5; }
.play-controls .sounds, .play-controls .settings { margin-top: 32px; }
.play-controls .rows { margin-top: 12px; }
.play-controls .pack-note, .play-controls .pack-tagline, .play-controls .sound-state {
  margin: 12px 0 0;
  color: #a5a2a1;
  line-height: 1.5;
}
.play-controls .settings { gap: 24px; align-items: start; }
.play-controls .setting { display: grid; grid-template-rows: 20px 32px; row-gap: 4px; align-items: center; }
.play-controls .setting:last-child { justify-items: end; }
.play-controls .toggle { height: 32px; min-width: 44px; justify-content: flex-end; }
.play-controls .sound-state { font-size: .75rem; }
.play-controls .pack-note, .play-controls .pack-tagline { font-size: .86rem; }
.play-controls .row { gap: 8px; }
.mac-play .instrument {
  grid-area: preview;
  position: sticky;
  top: 18px;
}
.mac-play .sound-toggle { min-height: 32px; font-size: .82rem; }
.sound-toggle[aria-pressed="true"] { color: #fff; background: #49302e; }
@media (min-width: 741px) {
  .mac-play .lid { width: min(416px, 100%, 46vh); }
}
@media (max-width: 740px) {
  .mac-home .mac-play { display: flex; flex-direction: column; align-items: stretch; }
  .mac-play .instrument {
    z-index: 2;
    top: 4px;
    padding: 12px 16px;
  }
  .mac-play .instrument .island { display: none; }
  .mac-play .stage { margin-top: 3px; grid-template-columns: 1fr auto; }
  .mac-play .lid { width: min(100%, 27vh); grid-row: span 2; }
  .mac-play .readout { align-self: end; font-size: 2.6rem; }
  .mac-play .last-event { align-self: start; font-size: .72rem; }
  .mac-play .travel { margin-top: 6px; }
  .mac-play .travel .legend, .mac-play .scale-labels { display: none; }
  .mac-play .scale, .mac-play .lid-control, .mac-play .actions { margin-top: 4px; }
}
@media (max-height: 530px), (prefers-reduced-motion: reduce) {
  .mac-play .instrument { position: relative; top: auto; }
}

.plan-comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 26px; }
.plan-comparison th, .plan-comparison td { width: 50%; padding: 14px clamp(10px,2vw,26px); text-align: left; vertical-align: top; }
.plan-comparison th { font: 600 .88rem var(--mono); letter-spacing: .08em; border-bottom: 2px solid var(--rule); }
.plan-comparison th:last-child { color: var(--red); border-bottom-color: var(--red); }
.plan-comparison td { color: var(--muted); line-height: 1.45; border-bottom: 1px solid var(--rule); }
.plan-comparison td strong { display: block; color: #faf7f5; margin-bottom: 3px; }
.plan-comparison :is(th,td):last-child { background: #161212; }
