/* Homepage only. Directory, detail and documentation pages retain their own styles. */
@font-face{font-family:Manrope;src:url('/assets/manrope-variable.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
.home{--bg:#fafbf8;--ink:#20271d;--muted:#66705f;--line:#e2e7dd;--accent:#377628;--green:#c5ef9e;--surface:#f0f3ec;--motion:cubic-bezier(.22,1,.36,1);background:var(--bg);color:var(--ink);font-family:Manrope,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.5;overflow-wrap:break-word}
.home *{min-width:0}.home p{text-wrap:pretty}.home a,.home button{transition:color .3s var(--motion),background .3s var(--motion),border-color .3s var(--motion),transform .5s var(--motion),box-shadow .5s var(--motion)}
.home :is(a,button,input,summary):focus-visible{outline:3px solid var(--accent);outline-offset:4px}.home :is(a,button):active{transform:translateY(1px)}.home .wrap{width:min(1120px,calc(100% - 64px))}.home .skip{z-index:100;padding:12px 16px}.home section[id]{scroll-margin-top:112px}.home .brand strong{font-size:20px;line-height:28px;letter-spacing:-.5px}.home .brand strong>span{color:var(--muted)}
.home-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;position:sticky;top:16px;z-index:20;margin-top:16px;padding:8px 16px;border:1px solid #dce2d5;border-radius:16px;background:#fafbf8eb;backdrop-filter:blur(20px);box-shadow:0 4px 20px #20271d04}
.home-nav .brand{gap:8px}.home-nav .desktop-nav{display:flex;gap:24px}.home-nav nav a{display:flex;align-items:center;gap:4px;font-size:14px;line-height:20px;min-height:44px}.home-nav-actions{display:flex;align-items:center;gap:8px}.home .language-switch{font-size:14px;padding:8px;line-height:20px}.home .download-link{font-size:14px;line-height:20px;min-height:44px;padding:8px 12px;display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff}.home .download-link:hover{background:var(--surface)}
.menu-toggle{display:none;width:44px;height:44px;border:0;border-radius:8px;background:transparent;position:relative}.menu-toggle span{display:block;width:20px;height:2px;background:var(--ink);position:absolute;left:12px;top:18px;transition:transform .5s var(--motion)}.menu-toggle span+span{top:24px}.menu-toggle[aria-expanded=true] span{transform:translateY(3px) rotate(45deg)}.menu-toggle[aria-expanded=true] span+span{transform:translateY(-3px) rotate(-45deg)}
.home .mobile-menu{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:24px;border:0;border-radius:0;background:#fafbf8f7;backdrop-filter:blur(24px);color:var(--ink);box-shadow:none}.mobile-menu::backdrop{background:#20271d33}.mobile-menu-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.menu-close{width:44px;height:44px;background:transparent;border:1px solid var(--line);border-radius:8px;font-size:30px;line-height:36px}.mobile-menu nav{display:grid;gap:8px;margin:48px 0}.mobile-menu nav a{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font-size:24px;line-height:32px}.mobile-menu[open] nav a{animation:menu-arrive .6s var(--motion) both}.mobile-menu nav a:nth-child(2){animation-delay:60ms}.mobile-menu nav a:nth-child(3){animation-delay:120ms}.mobile-menu nav a:nth-child(4){animation-delay:180ms}.mobile-menu nav a:nth-child(5){animation-delay:240ms}.mobile-menu>p{color:var(--muted);font-size:14px}.home.menu-open{overflow:hidden}
.home-hero{padding-top:80px;text-align:center}.home-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-size:14px;line-height:20px;font-weight:600}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#58a840;flex-shrink:0}.home-hero h1{font-size:60px;line-height:1.25;letter-spacing:-2px;font-weight:600;margin:24px auto;max-width:680px;color:#20271d}.home-hero h1>span{background:linear-gradient(100deg,#1c2219,#727b6b);background-clip:text;-webkit-background-clip:text;color:transparent}.home-intro{font-size:16px;line-height:24px;color:var(--muted);max-width:680px;margin:0 auto}.home-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:48px;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:var(--green);color:#1c3314;font-size:16px;line-height:24px;font-weight:600}.home-button:hover{background:#b2e482;color:#15290f;box-shadow:0 4px 16px #31551e12;transform:translateY(-2px)}.home-hero>.home-button{margin-top:32px}.hero-caption{font-size:12px;line-height:16px;color:var(--muted);margin-top:16px}
.home-section{padding-top:96px;padding-bottom:32px}.home-kicker{font-size:12px;line-height:16px;letter-spacing:1.5px;color:var(--muted);font-weight:500}.home h2{font-size:36px;line-height:1.25;letter-spacing:-1px;font-weight:500;margin:16px 0 0}.home-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:40px}.head-aside{max-width:368px}.head-aside p{font-size:14px;line-height:20px;color:var(--muted)}.home-text-link{display:flex;align-items:center;gap:24px;min-height:44px;font-size:14px;line-height:20px;font-weight:600;margin-top:12px}.home .discovery-toolbar{gap:24px;margin-bottom:24px}.home .filters{gap:4px;flex-wrap:wrap}.home .filter{font-size:14px;line-height:20px;border-radius:8px;padding:8px 16px;min-height:44px}.home .filter.active{background:#e5eddc;color:#2a4820}.home .filter:hover:not(.active){background:#edf1e7}.home .search{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;gap:12px}.home .search input{width:176px;min-height:24px;font-size:14px;line-height:20px}.home kbd{font-size:12px;line-height:16px;padding:2px 4px}.home .plugin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home .plugin-card{padding:24px;border-radius:12px;min-height:208px;background:#fff;display:flex;flex-direction:column}.home .plugin-card:hover{border-color:#b9cba9;color:var(--ink);transform:translateY(-4px);box-shadow:0 12px 24px -16px #27401624}.home .plugin-top{gap:12px}.home .plugin-top h3{font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}.home .plugin-top small{font-size:12px;line-height:16px;margin-top:4px}.home .plugin-top img{width:40px;height:40px;border-radius:8px}.home .card-arrow{font-size:18px}.home .plugin-card>p{font-size:14px;line-height:20px;margin-top:16px;min-height:40px;flex:1}.home .plugin-bottom{font-size:12px;line-height:16px;margin-top:24px;gap:16px}.home .plugin-bottom .tag{font-size:12px;line-height:16px;padding:4px 8px;background:#f1f4ed;border-radius:4px}.home .search-status{font-size:12px;line-height:16px;margin-top:16px;color:#6d7766}.home .empty{font-size:14px;line-height:20px;padding:40px}
.motion-toggle{display:none;border:0;padding:8px 0;background:none;min-height:44px;font-size:12px;line-height:16px;text-decoration:underline;text-underline-offset:4px;color:var(--muted)}.home[data-enhanced] .motion-toggle{display:block}.motion-toggle:disabled{cursor:default;text-decoration:none}.source-row{display:flex;align-items:center;gap:12px;position:relative;font-size:12px;line-height:16px;padding:12px 8px;border-radius:4px;isolation:isolate;overflow:hidden}.source-row::before{content:'';position:absolute;inset:0;background:#eaf0e5;opacity:var(--row-opacity,0);z-index:-1;transform:translateX(var(--row-offset,0))}.source-index{color:#8c94a0;font-variant-numeric:tabular-nums}.row-check{margin-left:auto;color:#568344;opacity:var(--check-opacity,1)}
.manifesto{text-align:center;padding-top:96px;padding-bottom:96px}.home .manifesto h2{font-size:48px;line-height:1.35;letter-spacing:-1.5px;max-width:680px;margin:24px auto}.manifesto h2 span{transition:opacity .6s var(--motion)}.manifesto[data-armed] h2 span{opacity:.3}.manifesto[data-armed] h2 span.word-visible{opacity:1}.manifesto>img{display:block;margin:24px auto 0;width:64px;height:64px}
.builder-section{display:grid;grid-template-columns:1fr 1fr;gap:64px;padding:48px;border:1px solid #dfe7d6;border-radius:16px;background:#eff4e8}.builder-copy>p:not(.home-kicker){font-size:14px;line-height:20px;color:var(--muted);margin-top:24px}.builder-copy .home-button{margin-top:24px;background:#263b1e;color:#fff}.builder-copy .home-button:hover{background:#38542b}.builder-steps{display:grid;gap:12px;align-content:center}.builder-steps>a{display:flex;align-items:center;gap:16px;padding:16px;background:#ffffffb0;border:1px solid #dce5d3;border-radius:8px}.step-index{font-size:12px;line-height:16px;color:#819173}.builder-steps h3{font-size:16px;line-height:24px;font-weight:500}.builder-steps p{font-size:12px;line-height:16px;color:var(--muted);margin-top:4px}.builder-steps>a>span:last-child{margin-left:auto}.builder-steps>a:hover{background:#fff;border-color:#b9cca9}
.faq-section{display:grid;grid-template-columns:1fr 1.2fr;gap:64px}.faq-list{display:grid;gap:12px}.faq-list details{border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 16px}.faq-list summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none;min-height:64px;padding:16px 0;font-size:14px;line-height:20px;font-weight:600}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary::after{content:'+';font-size:20px;line-height:28px;font-weight:400;color:var(--muted)}.faq-list details[open] summary::after{content:'−'}.faq-list details p{font-size:14px;line-height:20px;color:var(--muted);padding:0 0 16px}.faq-list details>a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:20px;margin-bottom:8px;color:var(--accent)}.home-closing{text-align:center;padding-top:96px;padding-bottom:96px}.home .home-closing h2{font-size:48px;line-height:1.25}.home-closing .home-button{margin-top:32px}.home-footer{display:flex;justify-content:space-between;align-items:center;gap:32px;padding-top:32px;padding-bottom:32px;border-top:1px solid var(--line)}.home-footer>div{display:block;margin:0}.home-footer .brand strong{font-size:20px;line-height:28px}.home-footer p{font-size:12px;line-height:16px;color:var(--muted);margin-top:12px}.home-footer nav{display:flex;gap:24px;flex-wrap:wrap}.home-footer nav a{display:flex;align-items:center;font-size:14px;line-height:20px;min-height:44px}.home-footer>span{font-size:12px;line-height:16px;color:var(--muted)}
/* Animation is opt-in after JS initializes; the unenhanced page stays readable. */
.home [data-reveal][data-armed]{opacity:0;transform:translateY(32px);transition:opacity .7s var(--motion),transform .7s var(--motion)}.home [data-reveal][data-armed].is-visible{opacity:1;transform:none}.home [data-intro][data-armed] [data-load]{opacity:0;transform:translateY(10px);filter:blur(4px);transition:transform 1.05s cubic-bezier(.16,1,.3,1),opacity .8s cubic-bezier(.33,1,.68,1),filter .8s cubic-bezier(.33,1,.68,1);transition-delay:var(--delay,0ms)}.home [data-intro][data-armed].is-visible [data-load]{opacity:1;transform:none;filter:none}
@keyframes menu-arrive{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@media(min-width:1400px){.home-hero h1{font-size:60px}.home-hero{padding-top:96px}}
@media(max-width:1000px){.home-nav .desktop-nav{gap:16px}.home .download-link{gap:8px}.home-nav{gap:16px}.home .plugin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-section-head{gap:24px}.head-aside{max-width:320px}.home .discovery-toolbar{flex-direction:column;align-items:stretch;gap:16px}.home .search input{width:100%}.home .search kbd{display:none}.builder-section{gap:32px;padding:32px}.home-footer{flex-wrap:wrap}.faq-section{gap:32px}}
@media(max-width:800px){.home[data-enhanced] .desktop-nav{display:none}.home[data-enhanced] .menu-toggle{display:block}.home:not([data-enhanced]) .home-nav{flex-wrap:wrap}.home:not([data-enhanced]) .desktop-nav{order:3;width:100%;justify-content:space-between}.home-nav-actions{margin-left:auto}.home-hero{padding-top:64px}.home-hero h1{font-size:48px;letter-spacing:-1.5px}.home-section{padding-top:80px}.home-section-head{align-items:flex-start}.home h2{font-size:30px;line-height:36px}.head-aside{max-width:280px}.builder-section,.faq-section{grid-template-columns:1fr}.home .manifesto h2{font-size:36px;line-height:1.5}.home-footer nav{gap:16px}.home .home-closing h2{font-size:36px;line-height:1.25}}
@media(max-width:540px){.home .wrap{width:calc(100% - 32px)}.home-nav{top:8px;margin-top:8px;padding:8px;gap:8px;border-radius:12px}.home-nav .brand{gap:4px}.home-nav .brand-logo{width:32px;height:32px}.home-nav .brand strong{font-size:18px;line-height:28px;letter-spacing:-.5px}.home-nav-actions{gap:0}.home-nav .download-link{display:none}.home .language-switch{font-size:12px;line-height:16px;padding:8px}.home-hero{padding-top:48px}.home-eyebrow{font-size:12px;line-height:16px}.home-hero h1{font-size:36px;line-height:1.3;letter-spacing:-1px;margin:24px auto}.home-intro{font-size:14px;line-height:20px;max-width:352px}.home-intro br{display:none}.home-hero>.home-button{margin-top:24px}.hero-caption{font-size:12px;line-height:16px}.home-section{padding-top:64px;padding-bottom:16px}.home-section-head{display:block;margin-bottom:24px}.head-aside{max-width:none;margin-top:24px}.home h2{font-size:30px;line-height:1.25}.home .filters{gap:4px}.home .filter{font-size:12px;line-height:16px;padding:8px 12px}.home .plugin-grid{grid-template-columns:1fr}.home .plugin-card{min-height:0;padding:24px}.home .plugin-card>p{min-height:0}.home .plugin-bottom{margin-top:16px}.source-row{gap:8px;padding:12px 4px}.manifesto{padding-top:64px;padding-bottom:64px}.home .manifesto h2{font-size:30px;line-height:1.5;letter-spacing:-1px}.home .manifesto .home-kicker{font-size:12px;line-height:16px;letter-spacing:.5px}.builder-section{padding:24px;gap:32px}.builder-steps>a{gap:12px;padding:12px}.builder-steps h3{font-size:14px;line-height:20px}.builder-steps p{font-size:12px;line-height:16px}.faq-section{gap:24px}.faq-list summary{font-size:14px;line-height:20px}.home-closing{padding-top:64px;padding-bottom:64px}.home-footer{display:grid;gap:24px;padding-block:32px}.home-footer>div{margin:0}.home-footer nav{gap:24px}.home-footer nav a{font-size:12px;line-height:16px}.home-footer>span{margin-top:0}}
html[lang=en] .home-hero h1{letter-spacing:-2px;line-height:1.1}
@media(max-width:540px){html[lang=en] .home-hero h1{font-size:36px;letter-spacing:-1px;line-height:1.15}html[lang=en] .home .source-row{font-size:12px;line-height:16px}}
@media(prefers-reduced-motion:reduce){.home [data-armed],.home [data-load]{opacity:1!important;transform:none!important;filter:none!important}.home .manifesto h2 span{opacity:1!important}.home *, .home *::before, .home *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(min-width:1001px){.home .plugin-grid:has(> .plugin-card:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.home-hero h1{font-size:30px;letter-spacing:-1.3px;line-height:1.3}}

/* Plugin previews: one selected story, always visible near the top. */
.home .home-hero{width:min(1280px,calc(100% - 64px));display:block;padding-block:32px 48px;text-align:left}
.preview-picker{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
.preview-picker>p{font-size:14px;line-height:20px;color:var(--muted)}
.preview-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#f0f3eb}
.preview-tab{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 24px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;transition:background .2s,color .2s}
.preview-tab[aria-selected=true]{background:#263b1e;color:#fff;box-shadow:0 2px 4px #263b1e14}
.preview-tab:hover:not([aria-selected=true]){background:#e5ecdc;color:var(--ink)}
.preview-tab:focus-visible,.preview-panel:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.preview-panel{display:grid;grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr);align-items:center;gap:40px}
.home .hero-copy h1{font-size:48px;line-height:1.25;letter-spacing:-1.5px;margin:24px 0;max-width:none}
.home .hero-copy h1>span{background:none;color:var(--ink)}
.home .home-intro{margin:0;max-width:360px;font-size:16px;line-height:28px;text-wrap:pretty}
.hero-copy .home-button{margin-top:32px}
.preview-steps{display:flex;flex-wrap:wrap;gap:24px;list-style:none;padding:0;margin:32px 0 0}
.preview-steps li{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:12px;line-height:16px;transition:color .2s}
.preview-steps li[hidden]{display:none}
.preview-step-number{font-variant-numeric:tabular-nums;color:#87927f}
.preview-steps li[aria-current=step]{color:#284d1d;font-weight:600}
.preview-steps li[aria-current=step] .preview-step-number{color:#477c32}
.hero-preview{margin:0;min-width:0}
.product-preview{position:relative;aspect-ratio:8/5;border-radius:16px;overflow:hidden;box-shadow:0 20px 56px -24px #29254330;border:1px solid #e3e0ef;background:#f4f3f9}
.product-preview video,.product-preview img{display:block;width:100%;height:100%;object-fit:contain}
.product-preview img{position:absolute;inset:0;z-index:1}
.product-preview [hidden]{display:none}
.hero-preview figcaption{display:flex;align-items:center;gap:16px;min-height:48px;padding-top:4px;color:var(--muted);font-size:12px;line-height:16px}
.hero-preview figcaption>span{margin-right:auto}
.hero-preview .motion-toggle,.preview-replay{white-space:nowrap;flex:none;font-size:12px;line-height:16px;min-height:44px}
.preview-replay{display:none;border:0;padding:8px 0;background:none;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.home[data-enhanced] .preview-replay{display:block}
.preview-replay:disabled{opacity:.5;cursor:default;text-decoration:none}
.preview-media-status{color:var(--muted);font-size:12px;line-height:20px;margin:0}
.preview-media-status:empty{display:none}
.scenario-links{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.scenario-links>a{display:block;padding:24px 0;border-top:1px solid var(--line)}
.scenario-links h3{display:flex;justify-content:space-between;gap:16px;font-size:24px;line-height:32px;font-weight:500;margin-top:16px}
.scenario-links h3>span{font-size:20px;color:var(--muted)}
.scenario-links p{font-size:14px;line-height:20px;color:var(--muted);margin-top:12px}
@media(min-width:1200px) and (min-height:800px){.home .home-hero{padding-block:48px 64px}.preview-picker{margin-bottom:48px}.preview-panel{min-height:480px}}
@media(max-width:1100px) and (min-width:801px){.preview-panel{grid-template-columns:300px minmax(0,1fr);gap:24px}.home .hero-copy h1{font-size:36px;letter-spacing:-1px}.preview-steps{gap:16px}.preview-picker>p{max-width:200px}.preview-tab{padding-inline:16px}.hero-preview figcaption{gap:8px;flex-wrap:wrap}.hero-preview figcaption>span{width:100%}}
@media(max-width:800px){
 .home .home-hero{padding-block:24px 32px;width:min(620px,calc(100% - 32px))}
 .preview-picker{display:block;margin-bottom:24px}.preview-picker>p{display:none}
 .preview-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .preview-tab{padding:8px 4px;font-size:12px;line-height:16px;min-height:44px}
 .preview-panel{display:flex;flex-direction:column;gap:16px;text-align:center}
 .hero-copy{display:contents}
 .hero-copy .home-eyebrow{display:none}
 .home .hero-copy h1{order:1;font-size:36px;line-height:1.2;margin:0;letter-spacing:-1px}
 .home .home-intro{order:2;font-size:14px;line-height:20px;max-width:400px}
 .hero-preview{order:3;width:100%}
 .hero-copy .home-button{order:4;margin:0;min-height:44px}
 .preview-steps{order:5;margin:0;gap:32px}
 .hero-preview figcaption{text-align:left;gap:12px;padding-top:4px}
 .scenario-links{grid-template-columns:1fr;gap:8px}
}
@media(max-width:400px){
 .home .home-hero{padding-top:16px}.preview-picker{margin-bottom:16px}.preview-panel{gap:12px}
 .home .hero-copy h1{font-size:30px;line-height:1.2}
 .hero-preview figcaption{gap:8px;flex-wrap:wrap}.hero-preview figcaption>span{flex:1;min-width:120px}
 .hero-preview .motion-toggle{max-width:96px;white-space:normal}
 .preview-steps{gap:24px}.scenario-links h3{font-size:20px;line-height:28px}
}
