:root {
  color-scheme: light;
  --paper: #f8f5f0;
  --ink: #251b20;
  --muted: #685b60;
  --wine: #75384c;
  --wine-dark: #552437;
  --line: #e4dad8;
  --plum: #2e1925;
  --page-width: 78rem;
  --gutter: clamp(1.25rem, 3.8vw, 3.5rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; }
section[id] { scroll-margin-top: 2rem; }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}

.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  transform: translateY(-200%);
  border-radius: .5rem;
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.site-nav {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 740;
  letter-spacing: -.035em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: var(--muted);
  font-weight: 560;
  font-size: .9rem;
}

.nav-links a, .site-footer a { text-decoration: none; }
.nav-links a:hover, .site-footer a:hover { text-decoration: underline; }
.site-nav > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .9rem;
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
}

.button--outline { border-color: #cdbdc1; }
.button--outline:hover { background: #f0e7e8; }

.button--primary {
  min-height: 3.3rem;
  padding-inline: 1.35rem;
  background: var(--wine);
  color: white;
  box-shadow: 0 3px 6px #59213622;
}

.button--primary:hover { background: var(--wine-dark); }
.text-link { color: var(--wine-dark); font-size: .9rem; font-weight: 650; text-underline-offset: .22em; }
.text-link:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6.2vw, 5.75rem) clamp(3.5rem, 6.4vw, 6rem);
}

.eyebrow {
  color: var(--wine);
  font-size: .875rem;
  font-weight: 710;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.hero-platform {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.4rem;
}

.hero-platform span {
  width: .85rem;
  height: .61rem;
  border: 1.5px solid currentColor;
  border-radius: .16rem;
  position: relative;
}

.hero-platform span::after {
  content: "";
  position: absolute;
  inset: auto -.2rem -.27rem;
  border-bottom: 1.5px solid currentColor;
}

h1, h2, h3 { margin: 0; }

h1 {
  font-size: clamp(3.1rem, 5.55vw, 5.125rem);
  font-weight: 710;
  line-height: .97;
  letter-spacing: -.055em;
}

h1 em {
  color: var(--wine);
  font: italic 400 1.08em/.98 Georgia, serif;
  letter-spacing: -.062em;
}

.hero-description {
  max-width: 28rem;
  margin-top: 1.55rem;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.15rem;
  margin-top: 1.8rem;
}

.demo {
  border: 1px solid #442737;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--plum);
  color: #f9edf2;
  box-shadow: 0 24px 55px -30px #34162565;
}

.demo-scene { position: relative; }
.demo-scene img { width: 100%; height: auto; }

.screen-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #09040a;
}

/* The masks follow the visible screen edges in display-setup.webp. */
.screen-shade--external {
  clip-path: polygon(29.04% 13.2%, 87.44% 13.2%, 87.44% 61.9%, 45.56% 61.9%, 45.56% 48.25%, 45.39% 47.6%, 45.04% 47.04%, 44.52% 46.71%, 29.04% 46.71%);
  opacity: var(--external-shade, 0);
}

.screen-shade--laptop {
  clip-path: polygon(11.59% 48.36%, 44.86% 48.36%, 44.86% 76.66%, 11.5% 76.66%);
  opacity: var(--laptop-shade, 0);
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: .9rem clamp(1rem, 2vw, 1.5rem) .8rem;
  border-top: 1px solid #ffffff20;
  font-size: .875rem;
}

.demo-brightness { flex: 1; max-width: 25rem; }
.demo-label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 630; }
.demo-label output { color: #f6bec9; font-variant-numeric: tabular-nums; }

.demo-controls input {
  accent-color: #f5adc0;
  color-scheme: dark;
  cursor: pointer;
  margin: 0;
}

.demo-controls input:focus-visible { outline-color: #f5adc0; outline-offset: 3px; }
.demo-brightness input { display: block; width: 100%; height: 1.5rem; }

.demo-sync {
  display: flex;
  flex: none;
  align-items: center;
  gap: .5rem;
  min-height: 2rem;
  cursor: pointer;
}

.demo-sync input { width: 1rem; height: 1rem; }

h2 {
  font-size: clamp(2rem, 4.3vw, 3.55rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.feature-section {
  padding-block: clamp(2.75rem, 5.7vw, 5rem);
  border-block: 1px solid var(--line);
  background: #f4eeea;
}

.feature-section h2 { max-width: 54rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.feature-grid article {
  border-top: 1px solid #d7c7c8;
  padding-top: 1.45rem;
}

.feature-grid h3 {
  margin-block: .95rem .55rem;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.feature-grid p, .compatibility p:not(.eyebrow), .compatibility dd, .faq p {
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.62;
  text-wrap: pretty;
}

.feature-icon {
  display: grid;
  place-content: center;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #e1cfd4;
  border-radius: .65rem;
  background: #f4e5e8;
  color: var(--wine-dark);
}

.icon-displays::before, .icon-displays::after {
  content: "";
  width: .96rem;
  height: .68rem;
  border: 1.5px solid currentColor;
  border-radius: .12rem;
  position: absolute;
}

.icon-displays::before { top: .75rem; right: .62rem; }
.icon-displays::after { bottom: .68rem; left: .61rem; background: #f4e5e8; }
.icon-key { font-size: 1.65rem; line-height: 1; }
.icon-sliders { gap: .26rem; }

.icon-sliders span {
  width: 1.15rem;
  height: 1px;
  position: relative;
  background: currentColor;
}

.icon-sliders span::after {
  content: "";
  position: absolute;
  left: .25rem;
  top: 50%;
  transform: translateY(-50%);
  width: .22rem;
  height: .22rem;
  border-radius: 100%;
  background: currentColor;
}

.icon-sliders span:nth-child(2)::after { left: .76rem; }
.icon-sliders span:nth-child(3)::after { left: .48rem; }

.compatibility-section { padding-top: clamp(3.5rem, 7.5vw, 6.5rem); }

.compatibility {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 5.6vw, 5rem);
  padding: clamp(1.5rem, 4.6vw, 4rem);
  border: 1px solid #e8d8dc;
  border-radius: 1rem;
  background: #f3e7e9;
}

.compatibility h2 { max-width: 26rem; margin-block: .75rem 1rem; }
.compatibility p:not(.eyebrow) { max-width: 24rem; }
.compatibility-list { margin: 0; }
.compatibility-list div + div { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #ddccd1; }
.compatibility dt { font-weight: 710; }
.compatibility dd { margin: .3rem 0 0; }

.faq {
  padding-block: clamp(3.5rem, 7.5vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 1.5rem 3rem;
}

.faq h2 { text-wrap: pretty; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  padding: 1rem .1rem;
  font-weight: 660;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; color: var(--wine); font-size: 1.15rem; font-weight: 500; }
.faq details[open] summary::after { content: "−" / ""; }
.faq summary:hover { color: var(--wine-dark); }
.faq details p { padding: 0 1.5rem 1rem .1rem; }

.download-section { padding-bottom: clamp(3rem, 6vw, 5.5rem); }

.download {
  padding: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 1.6rem 3.2rem;
  border-radius: 1rem;
  background: var(--plum);
  color: var(--paper);
}

.download h2 { margin-bottom: .65rem; }
.download p { color: #e3cbd5; line-height: 1.5; }
.download :focus-visible { outline-color: #f5adc0; }

.release {
  padding-left: 1.5rem;
  border-left: 1px solid #856473;
}

.release .release-status { margin-bottom: .25rem; color: white; font-weight: 690; }
.release .button { background: #f7dde5; color: var(--plum); }
.release .button:hover { background: white; }

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  padding-block: .8rem;
}

.footer-inner > a:last-child { color: var(--muted); font-size: .9rem; }

@media (max-width: 58rem) {
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.1rem, 9.4vw, 5.125rem); }
  .hero-copy { padding-bottom: .5rem; }
}

@media (max-width: 42rem) {
  .site-nav { grid-template-columns: 1fr auto; min-height: 4.1rem; }
  .nav-links { display: none; }
  .feature-grid, .compatibility, .faq, .download { grid-template-columns: 1fr; }
  .compatibility h2 { text-wrap: pretty; }
  .release { padding: 1rem 0 0; border-left: 0; border-top: 1px solid #856473; }
}

@media (max-width: 23rem) {
  h1 { font-size: 2.6rem; }
  .demo-controls { flex-wrap: wrap; gap: .25rem; }
  .demo-brightness { flex-basis: 100%; }
  .wordmark { font-size: .94rem; }
  .wordmark img { width: 1.75rem; height: 1.75rem; }
  .site-nav > .button { padding-inline: .7rem; }
}
