@font-face {
  font-family: "DM Sans";
  src: url("art/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #fdfdfb;
  --ink: #191922;
  --muted: #53525f;
  --wash: #f0f0ed;
  --line: #e4e3ed;
  --violet: #563bb9;
  --sky: #7996ff;
  --gutter: clamp(16px, 3.45vw, 50px);
  --section: clamp(88px, 10vw, 144px);
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; }
canvas { image-rendering: pixelated; }
:focus-visible { outline: 3px solid #7d55e5; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 12px 16px; border-radius: 999px; background: white; }
.wrap, .wide { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap { max-width: 1160px; }
.wide { max-width: 1340px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 760; letter-spacing: -.04em; text-decoration: none; }
.topbar nav, .footer nav { display: flex; align-items: center; gap: clamp(12px, 2.25vw, 30px); }
.nav-item, .footer nav a { color: var(--muted); font-size: 15px; font-weight: 550; text-decoration: none; }
.nav-item:hover, .footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border-radius: 999px; font-size: 15px; font-weight: 680; text-decoration: none; transition: background-color 160ms ease, transform 220ms cubic-bezier(.2,.8,.25,1); }
.button:active { transform: scale(.97); transition-duration: 120ms; }
.nav-cta, .primary { color: #fff; background: var(--ink); }
.nav-cta:hover, .primary:hover { background: #3a2b68; }
.nav-cta { min-height: 39px; padding-inline: 16px; }
.secondary { background: var(--wash); }
.secondary:hover { background: #e8e4f1; }
.star-mark { font-size: 20px; font-weight: 550; line-height: 1; }
@media (hover: hover) and (pointer: fine) {
  .hero .button:hover:not(:active) { transform: translateY(-2px); }
}
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.hero { padding-top: clamp(50px, 5.15vw, 74px); text-align: center; }
.availability { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--wash); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.availability:hover { background: #eae7f4; }
.chrome-mark { width: 14px; height: 14px; display: inline-grid; place-items: center; border-radius: 50%; background: conic-gradient(#e8584f 0 30%, #efcb58 30% 59%, #4bb180 59% 83%, #e8584f 83%); }
.chrome-mark::after { content: ""; width: 7px; height: 7px; background: #4787dc; border: 1px solid #f4f8fa; border-radius: 50%; }
.availability-divider { width: 3px; height: 3px; border-radius: 50%; background: #8f899e; }
.hero h1 { max-width: 12.8em; margin: 29px auto 0; font-size: clamp(45px, 7.4vw, 108px); line-height: .96; font-weight: 495; letter-spacing: -.072em; text-wrap: balance; }
.headline-end { white-space: nowrap; }
.headline-pet { display: inline-block; width: .8em; height: .8em; margin-left: .08em; vertical-align: -.09em; }
.pet-button { display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; pointer-events: auto; touch-action: manipulation; }
.pet-button canvas { display: block; width: 100%; height: auto; pointer-events: none; }
.pet-button:hover canvas, .pet-button.pet-reacting canvas { filter: brightness(1.18); }
.hero h1 .pet-button { display: inline-grid; width: .8em; height: .8em; margin-left: .08em; vertical-align: -.09em; }
.hero h1 .pet-button .headline-pet { margin: 0; }
.hero > p:not(.hero-note) { max-width: 38em; margin: 23px auto 0; padding-inline: 4px; color: var(--muted); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.65; text-wrap: balance; }
.hero .actions { margin-top: 27px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero-note a { text-underline-offset: 3px; }

.screenshot-stage { position: relative; isolation: isolate; margin-top: clamp(34px, 4.2vw, 60px); padding: clamp(37px, 4.6vw, 67px) clamp(12px, 3vw, 44px) clamp(15px, 4vw, 57px); border-radius: 28px; background: #8d9ffa url("art/relay-valley.webp") center 60% / cover no-repeat; }
.stage-pets { display: flex; align-items: end; gap: clamp(8px, 1.2vw, 17px); position: absolute; z-index: 1; pointer-events: none; bottom: calc(100% - clamp(44px, 5.5vw, 77px)); right: 12%; }
.stage-pets > :is(canvas, button) { width: clamp(31px, 4.2vw, 58px); height: auto; }
.statement .inline-pets canvas { width: .64em; height: .64em; }
.closing .scene-floater, .doc-band .scene-floater { width: calc(var(--size) * 1.18); }
.scene-floater .pet-button { width: 100%; }
.screenshot-frame { margin: 0; overflow: clip; border-radius: 15px; background: #f8f8f7; box-shadow: 0 35px 80px -30px #222a6988, 0 2px 5px #1d244b39; }
.window-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; background: #f5f5f4; }
.window-title h2 { font-size: 13px; font-weight: 650; }
.traffic-lights { display: flex; gap: 5px; }
.traffic-lights i { width: 8px; height: 8px; background: #f47d79; border-radius: 50%; }
.traffic-lights i:nth-child(2) { background: #efb653; }
.traffic-lights i:nth-child(3) { background: #6cc89e; }
.inspector-screenshot { display: block; width: 100%; height: auto; }
.screenshot-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; min-height: 42px; padding: 7px 14px; color: var(--muted); font-size: 13px; }
.screenshot-caption a { padding-block: 5px; color: var(--ink); font-weight: 650; text-decoration-color: #bdb4d5; text-underline-offset: 3px; }
.screenshot-caption a:hover { text-decoration-color: currentColor; }

.statement, .features, .install, .faq { margin-top: var(--section); }
.statement h2, .poster h2, .section-heading h2, .faq h2, .closing h2 { font-weight: 510; font-size: clamp(34px, 4.65vw, 65px); letter-spacing: -.058em; line-height: 1.03; text-wrap: balance; }
.statement h2 { max-width: 15.5em; }
.statement p, .section-heading p, .faq > div:first-child p { margin-top: 15px; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; }
.statement b { color: var(--ink); font-weight: 650; }
.poster { border-radius: 28px; padding: clamp(24px, 5vw, 72px) clamp(13px, 6vw, 84px) clamp(145px, 22vw, 305px); background: #899bff url("art/relay-valley.webp") center bottom / cover; }
.poster-card { padding: clamp(22px, 3.7vw, 51px); border-radius: 25px; background: white; box-shadow: 0 26px 52px -36px #24124b6c; }
.poster h2 { max-width: 14em; font-size: clamp(31px, 4.1vw, 55px); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(19px, 3vw, 35px); list-style: none; margin-top: clamp(23px, 3.2vw, 39px); padding: 0; }
.feature-grid li { display: flex; align-items: flex-start; gap: 12px; }
.tile-icon { flex: none; width: 52px; height: 52px; padding: 10px; border-radius: 12px; image-rendering: pixelated; }
.lilac { background: #e8dcff; }
.mint { background: #d1f4e4; }
.peach { background: #ffe4cb; }
.sky { background: #dce8fb; }
.feature-grid h3, .step-grid h3 { font-size: 17px; font-weight: 720; letter-spacing: -.025em; }
.feature-grid p, .step-grid p { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin-top: 31px; }
.step-grid li { min-height: 210px; padding: 23px; border-bottom: 7px solid #b9a7ff; background: #f2f2f0; clip-path: polygon(7px 0,calc(100% - 7px) 0,calc(100% - 7px) 7px,100% 7px,100% calc(100% - 7px),calc(100% - 7px) calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,7px calc(100% - 7px),0 calc(100% - 7px),0 7px,7px 7px); }
.step-grid li:nth-child(2) { border-color: #a5e6cc; }
.step-grid li:nth-child(3) { border-color: #fac995; }
.step-number { display: block; margin-bottom: 12px; font: 720 31px/1 var(--mono); letter-spacing: -.06em; color: var(--violet); }
.step-action { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 13px; text-underline-offset: 3px; }
code { font-family: var(--mono); overflow-wrap: anywhere; }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 27px; margin-bottom: var(--section); }
.faq > div:first-child p { max-width: 28ch; }
.questions { --disclosure-ease: cubic-bezier(.23,1,.32,1); display: grid; align-content: start; gap: 8px; }
.questions details { border-radius: 20px; background: #f0f1ef; transition: background-color 150ms ease; }
.questions details[open] { background: #eeecf5; }
.questions summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px 14px 19px; font-weight: 650; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:focus-visible { border-radius: 20px; outline-offset: -3px; }
.faq-mark { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--violet); background: white; }
.faq-mark::before, .faq-mark::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; border-radius: 1px; background: currentColor; content: ""; }
.faq-mark::before { transform: translate(-50%,-50%); }
.faq-mark::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform 190ms var(--disclosure-ease), opacity 150ms ease; }
.questions details[open] .faq-mark::after { transform: translate(-50%,-50%) rotate(90deg) scaleX(.2); opacity: 0; }
.questions details p { padding: 0 19px 17px; color: var(--muted); line-height: 1.55; }
.questions details a { text-underline-offset: 2px; }
@supports (interpolate-size: allow-keywords) {
  .questions details { interpolate-size: allow-keywords; }
  .questions details::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height 240ms var(--disclosure-ease), opacity 175ms ease, content-visibility 240ms allow-discrete;
  }
  .questions details[open]::details-content { height: auto; opacity: 1; }
  .questions:has(summary:focus-visible) details::details-content { transition: none; }
}
@media (hover: hover) and (pointer: fine) {
  .questions details:not([open]):hover { background: #eae9ef; }
}
.closing { position: relative; isolation: isolate; min-height: clamp(425px, 56vw, 790px); display: grid; align-items: start; padding: clamp(65px, 10vw, 135px) var(--gutter); color: white; text-align: center; background: #253f99 linear-gradient(#22386f75, transparent 70%); background-image: linear-gradient(#132a6f5f, transparent 75%), url("art/signal-coast.webp"); background-size: cover; background-position: center 63%; }
.closing-copy { position: relative; z-index: 1; }
.closing .cursor-trail { inset: 0; width: 100%; height: 100%; }
.closing h2 { font-size: clamp(45px, 6.6vw, 92px); }
.closing-copy > p { margin: 16px auto 0; max-width: 30ch; color: #f1efff; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; }
.closing .scene-actions { margin-top: 24px; }
.close-primary { background: white; color: var(--ink); }
.close-primary:hover { background: #eee8ff; }
.close-secondary { background: #192855; color: white; }
.close-secondary:hover { background: #2c3d70; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 17px; padding-block: 33px; }
.footer nav { flex-wrap: wrap; }

@media (max-width: 610px) {
  .topbar { min-height: 64px; }
  .topbar nav .nav-item { display: none; }
  .topbar nav .nav-docs { display: inline-block; }
  .screenshot-stage { border-radius: 21px; }
  .window-title { padding-inline: 9px; }
  .window-title h2 { font-size: 11px; }
  .screenshot-caption { padding-inline: 9px; }
  .feature-grid, .step-grid, .faq { grid-template-columns: minmax(0,1fr); }
  .closing .scene-floater, .doc-band .scene-floater { width: clamp(28px, 8vw, 48px); }
  .step-grid li { min-height: 0; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .questions details::details-content { transition: none; }
  .hero .button:hover:not(:active) { transform: none; }
}
