/* Product demonstrations from the supplied reference site. */
.feature-demos{padding-top:30px;scroll-margin-top:100px}.feature-demos-heading{max-width:760px;margin-bottom:44px}.feature-eyebrow{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin-bottom:18px}.feature-demos-heading>p:not(.feature-eyebrow){max-width:610px;margin-top:24px;color:var(--muted);line-height:1.8}.feature-demos-heading .feature-play-note{font-size:.8125rem;margin-top:14px}
.feature-demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 28px;align-items:start}.feature-demo{min-width:0}.feature-demo figure{margin:0}.feature-demo-media{aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#111615;isolation:isolate}.feature-demo-video{display:block;width:100%;height:100%;object-fit:contain}.feature-demo figcaption{padding-top:22px}.feature-demo h3{font-size:clamp(1.25rem,2vw,1.75rem);line-height:1.3;letter-spacing:-.035em}.feature-demo figcaption>p{font-size:.875rem;color:var(--muted);line-height:1.8;margin-top:12px}.feature-demo .text-link{font-size:.75rem;gap:12px;margin-top:10px;min-height:44px}.feature-transcript{font-size:.75rem;line-height:1.8;margin-top:12px;color:var(--muted)}.feature-transcript summary{cursor:pointer;min-height:32px;padding-block:5px}.feature-transcript p{padding:8px 0 0;max-width:520px}
.feature-tool-stage{display:grid;grid-template-columns:minmax(140px,.9fr) minmax(0,1.1fr);gap:18px;min-height:300px;padding:22px;background:var(--surface);border:1px solid color-mix(in srgb,var(--ink) 16%,transparent);border-radius:14px}.feature-tool-choices{display:flex;flex-direction:column;align-self:center;gap:3px}.feature-tool-choices button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font-size:.6875rem;line-height:1.5;border-radius:6px;background:transparent;min-height:38px;padding:8px 10px}.feature-tool-choices button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.feature-tool-choices button:hover{outline:1px solid var(--muted);outline-offset:-1px}.feature-tool-choices button span{flex-shrink:0}.feature-tool-preview{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.feature-tool-preview img{width:100%;height:245px;object-fit:contain;background:#111615;border-radius:6px}.feature-tool-preview p{text-align:center;font-size:.6875rem;color:var(--muted);line-height:1.6;min-height:22px}
@media(min-width:1400px){.feature-tool-stage{min-height:calc((min(1320px, 100vw - var(--gutter)*2) - 28px)/2*9/16)}.feature-tool-preview img{height:260px}}
@media(max-width:800px){.feature-demo-grid{grid-template-columns:1fr;gap:40px}.feature-demos{padding-top:10px}.feature-demos-heading{margin-bottom:30px}.feature-demo-media{border-radius:10px}.feature-tool-stage{padding:20px;grid-template-columns:minmax(130px,.9fr) minmax(0,1.1fr)}.feature-tool-preview img{height:260px}.feature-tool-choices button{min-height:44px;font-size:.75rem}.feature-tool-preview p{font-size:.75rem}}
@media(max-width:400px){.feature-tool-stage{grid-template-columns:1fr;padding:16px}.feature-tool-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.feature-tool-choices button{padding:8px;font-size:.6875rem}.feature-tool-preview img{height:260px}.feature-demos-heading>p:not(.feature-eyebrow){font-size:.875rem}}
@media(prefers-reduced-motion:reduce){.feature-demo button{transition:none}}

.feature-playback{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:24px;margin-top:12px;background:var(--surface);color:var(--accent);font-size:.8125rem;font-weight:600;border:1px solid color-mix(in srgb,var(--ink) 20%,transparent)}
/* Designer tools now have their own full-width product section. */
.tools-showcase{scroll-margin-top:110px}
.tools-heading{max-width:880px;margin-bottom:36px}
.tools-heading h2{font-size:clamp(2.4rem,4vw,4.5rem);line-height:1.1}
.tools-heading p{max-width:65ch;line-height:1.7;color:var(--muted);margin-top:22px}
.tools-heading .text-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;margin-top:12px}
.tools-showcase .feature-tool-stage{grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);padding:clamp(20px,3vw,42px);gap:clamp(24px,4vw,64px);border:0;min-height:620px}
.tools-showcase .feature-tool-choices{gap:9px}
.tools-showcase .feature-tool-choices button{font-size:1rem;min-height:52px;padding:14px 16px}
.feature-tool-documentation{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:14px 16px;font-size:1rem;line-height:1.5;border-radius:6px}
.feature-tool-documentation:hover{outline:1px solid var(--muted);outline-offset:-1px;text-decoration:none}
@media(max-width:1000px){.feature-tool-documentation{font-size:.875rem;padding:12px}}
@media(max-width:500px){.feature-tool-documentation{font-size:.75rem}}
.tools-showcase .feature-tool-preview img{height:clamp(400px,42vw,680px);border-radius:10px}
.tools-showcase .feature-tool-preview p{font-size:.875rem}
.feature-demo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media(max-width:1000px){.feature-demo-grid{grid-template-columns:1fr}.tools-showcase .feature-tool-stage{grid-template-columns:1fr;min-height:0}.tools-showcase .feature-tool-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.tools-showcase .feature-tool-choices button{font-size:.875rem;padding:12px}.tools-showcase .feature-tool-preview img{height:440px}}
@media(max-width:500px){.tools-showcase .feature-tool-stage{padding:16px}.tools-showcase .feature-tool-choices button{font-size:.75rem}.tools-showcase .feature-tool-preview img{height:340px}}
.primitive-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px;width:100%;padding:28px 20px;background:#111615;border-radius:10px}
.primitive-gallery figure{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;margin:0}
.tools-showcase .feature-tool-preview .primitive-gallery img{width:88px;height:88px;object-fit:contain;background:none;border-radius:0}
.primitive-gallery figcaption{font-size:.8125rem;line-height:1.4;color:#eef4ef;text-align:center;overflow-wrap:anywhere}
.feature-tool-preview>[hidden]{display:none!important}
@media(max-width:650px){.primitive-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px;padding:22px 12px}.tools-showcase .feature-tool-preview .primitive-gallery img{width:68px;height:68px}.primitive-gallery figcaption{font-size:.75rem}}

/* The enlarged view reuses the selected source image and native dialog controls. */
.tool-image-trigger{display:block;width:100%;padding:0;border:0;border-radius:8px;background:none;line-height:0;cursor:zoom-in}
.tool-image-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.primitive-gallery .tool-image-trigger{width:auto}
.tool-image-dialog{width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:1px solid var(--panel);border-radius:16px;background:var(--bg);color:var(--ink)}
.tool-image-dialog::backdrop{background:rgb(0 0 0 / .75)}
.tool-image-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.tool-image-heading h2{font-size:1.125rem;line-height:1.4;letter-spacing:-.02em}
.tool-image-close{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 16px;border-radius:24px;background:var(--surface);color:var(--ink);font-size:.8125rem;flex-shrink:0}
.tool-image-close:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#tool-image-large{display:block;width:100%;height:min(76dvh,850px);object-fit:contain;background:#111615;border-radius:8px}
html:has(.tool-image-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
#ownership p{max-width:62ch}
@media(max-width:600px){.tool-image-dialog{padding:14px}.tool-image-heading{gap:10px}.tool-image-heading h2{font-size:1rem}.tool-image-close{padding:10px 12px}#tool-image-large{height:65dvh}}

.feature-demo-media video{color:#f1f6f2}.feature-demo-media video a{color:#8cdda5}
