/* v3 site styles, shared by every page. Colours and type come from the plugin (js/tw-v3.js). */
.wrap { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 768px) { .wrap { padding-left: 16px; padding-right: 16px; } }
html { scroll-behavior: smooth; }
body { background: #111214; }
summary::-webkit-details-marker { display: none; }
p, li, summary { text-wrap: pretty; }
h1, h2, h3, .h-display, .h-title { text-wrap: balance; }
[data-playing="true"] .d1-play, [data-playing="false"] .d1-pause { display: none; }

/* Big, heavy, uppercase headings (minimal.audio's display style, in the plugin's typeface) */
.h-display { font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9; }
.h-title { font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }

/* Hero: the interface tilted back into the page, fading out at the bottom */
.hero-ui { perspective: 1700px; }
.hero-ui img { transform: rotateX(var(--tilt, 22deg)); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 84%); mask-image: linear-gradient(to bottom, #000 30%, transparent 84%); }
/* The video button rides the same tilted plane, centred on the Orbit wheel, turned back to face the viewer */
.hero-play { position: absolute; inset: 0; transform: rotateX(var(--tilt, 22deg)); transform-origin: 50% 100%; transform-style: preserve-3d; pointer-events: none; }
.hero-play button { position: absolute; left: 50%; top: 39%; pointer-events: auto; transform: translate(-50%, -50%) rotateX(calc(-1 * var(--tilt, 22deg))); transition: scale .2s; }
.hero-play button:hover { scale: 1.05; }
/* Raised off the image: a soft top-lit face, a bright rim above, a darker lip below and a lifted drop shadow */
.hero-play button { background: radial-gradient(120% 120% at 50% 15%, #ffffff 0%, #f1f1f4 55%, #dcdce2 100%);
    box-shadow: inset 0 2px 1px rgba(255,255,255,0.95), inset 0 -3px 6px rgba(0,0,0,0.14), 0 2px 3px rgba(0,0,0,0.35), 0 12px 28px rgba(0,0,0,0.45), 0 24px 60px rgba(0,0,0,0.35); }
.glow-purple { background: radial-gradient(60% 55% at 50% 38%, rgba(167,123,255,0.30), rgba(167,123,255,0.07) 55%, rgba(0,0,0,0) 75%); }
.glow-green { background: radial-gradient(50% 60% at 50% 60%, rgba(34,196,106,0.30), rgba(34,196,106,0.05) 60%, rgba(0,0,0,0) 80%); }

/* Cards with a faint light edge */
.edge { position: relative; border: 1px solid rgba(255,255,255,0.09); background: linear-gradient(180deg, #1d1e21, #161719); }
.edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Feature tour: pins for one screen per feature */
.tour { position: relative; height: calc((var(--steps, 7) + 1) * 100vh); }
.tour-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; perspective: 1800px; }
.tour-stage { position: relative; width: min(1160px, calc(100vw - 32px), calc((100svh - 230px) * 1.6)); margin: 0 auto; }
.tour-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #202124; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 60px 140px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.4); transform-origin: 50% 0%; will-change: transform, opacity; }
.tour-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.tour-frame video.is-on { opacity: 1; }
.tour-card { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour.is-live .tour-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tour-cards { display: grid; margin-top: 14px; }
.tour-cards > * { grid-area: 1 / 1; }
@media (min-width: 900px) {
    .tour-cards { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
    .tour-card { position: absolute; width: min(380px, 36%); }
    .tour-card[data-side="r"] { right: -4%; top: 9%; }
    .tour-card[data-side="l"] { left: -4%; bottom: 9%; }
}
.tour-chip { position: relative; }
.tour-chip [data-tour-fill] { transform-origin: 0 50%; transform: scaleX(0); }
.tour-chip.is-on { color: #ececee; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) {
    .hero-ui img, .hero-play { transform: none; }
    .hero-play button { transform: translate(-50%, -50%); }
    .tour-card, .tour-frame video { transition: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding: 0 1.5rem; border-radius: .75rem; font-size: 15px; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s, filter .15s; white-space: nowrap; }
.btn-primary { background: #a77bff; color: #111214; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-green { background: #22c46a; color: #1a1b1d; font-weight: 700; }
.btn-green:hover { filter: brightness(1.1); }
.btn-outline { border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.btn-quiet { color: rgba(255,255,255,0.85); }
.btn-quiet:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* A small coloured label above a heading */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .625rem; border-radius: .5rem; font-size: 13px; font-weight: 600; background: rgba(167,123,255,0.15); color: #a77bff; }

/* A still or clip of the interface in a window frame */
.ui-frame { position: relative; overflow: hidden; border-radius: 14px; background: #202124; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9); }
.ui-frame > img, .ui-frame > video { display: block; width: 100%; height: auto; }
.ui-tilt { perspective: 1700px; }
.ui-tilt > .ui-frame { transform: rotateX(var(--tilt, 14deg)); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .ui-tilt > .ui-frame { transform: none; } }

/* Long-form text: docs, legal, release notes */
.prose-v3 { color: rgba(255,255,255,0.68); font-size: 16px; line-height: 1.7; }
.prose-v3 > * + * { margin-top: 1em; }
.prose-v3 h2 { color: #ececee; font-weight: 800; letter-spacing: -0.02em; font-size: 28px; line-height: 1.15; margin-top: 2.2em; }
.prose-v3 h3 { color: #ececee; font-weight: 700; font-size: 20px; line-height: 1.3; margin-top: 1.8em; }
.prose-v3 h4 { color: #ececee; font-weight: 700; font-size: 16px; margin-top: 1.5em; }
.prose-v3 h2:first-child, .prose-v3 h3:first-child { margin-top: 0; }
.prose-v3 strong { color: #ececee; font-weight: 600; }
.prose-v3 a { color: #c4adff; text-decoration: underline; text-underline-offset: 2px; }
.prose-v3 a:hover { color: #fff; }
.prose-v3 ul { list-style: disc; padding-left: 1.25em; }
.prose-v3 ol { list-style: decimal; padding-left: 1.25em; }
.prose-v3 li + li { margin-top: .35em; }
.prose-v3 code, .prose-v3 kbd { font-size: .9em; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); border-radius: .375rem; padding: .05em .35em; color: #ececee; }
.prose-v3 table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose-v3 th { text-align: left; color: #ececee; font-weight: 600; }
.prose-v3 th, .prose-v3 td { padding: .6em .75em; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
.prose-v3 hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 2.5em 0; }
.prose-v3 img { border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }

/* Form fields */
.field { width: 100%; height: 3rem; padding: 0 1rem; border-radius: .75rem; background: #1a1b1d; border: 1px solid rgba(255,255,255,0.12); color: #ececee; font-size: 15px; }
.field:focus { outline: none; border-color: #a77bff; box-shadow: 0 0 0 3px rgba(167,123,255,0.25); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ba2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* Docs sidebar */
.doc-nav a { display: block; padding: 8px 14px; border-radius: 10px; transition: background-color .15s, color .15s; }
.doc-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.doc-nav a.active { background: rgba(167,123,255,0.14); color: #c4adff; }
