html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { text-rendering: optimizeLegibility; overflow-x: clip; }
html { overflow-x: clip; }
h1, h2, h3, .font-display { letter-spacing: -0.015em; }

/* header */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(0 0 0 / 0.08); }
.nav-link { position: relative; opacity: .88; transition: opacity .2s, background-color .2s; }
.nav-link:hover, .nav-link.is-active { opacity: 1; background: rgb(127 127 127 / 0.1); }
.nav-link.is-active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }

/* long-form text */
.prose-site { font-size: 1.075rem; line-height: 1.8; }
.prose-site > * + * { margin-top: 1.1em; }
.prose-site h1 { font-family: inherit; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; font-weight: 700; margin-bottom: .4em; }
.prose-site h2 { font-size: 1.65rem; line-height: 1.25; font-weight: 700; margin-top: 2.2em; }
.prose-site h2:first-child { margin-top: 0; }
.prose-site h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.6em; }
.prose-site ul { list-style: disc; padding-left: 1.3em; }
.prose-site ol { list-style: decimal; padding-left: 1.3em; }
.prose-site li + li { margin-top: .45em; }
.prose-site li::marker { color: currentColor; opacity: .55; }
.prose-site a { text-decoration: underline; text-underline-offset: 3px; }
.not-prose { font-size: 1rem; line-height: 1.6; }

/* screenshots and videos */
.shot-frame img, .video-frame video { display: block; }
.phone-mock { padding: .6rem; border-radius: 2.4rem; background: #0b0b0f; box-shadow: 0 30px 60px rgb(0 0 0 / .35), inset 0 0 0 2px rgb(255 255 255 / .08); }
.phone-mock video, .phone-mock img { border-radius: 1.9rem !important; box-shadow: none !important; }
.hero-dots { background-image: radial-gradient(rgb(255 255 255 / .5) 1px, transparent 1px); background-size: 22px 22px; }
.video-toggle { opacity: 0; transition: opacity .2s; }
.video-frame:hover .video-toggle, .video-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .video-toggle { opacity: .85; } }

/* tabs, filters, accordions */
.faq-item summary::-webkit-details-marker { display: none; }
.toc-link.is-current { font-weight: 600; opacity: 1; }

/* swiper pagination in the site color */
.swiper-pagination-bullet { background: currentColor; opacity: .35; }
.swiper-pagination-bullet-active { opacity: 1; }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .cookie-bar, .back-to-top { display: none !important; } }
