/* Rank website — the design showcase sections (Rank\Content\Sections\Showcase), ported from SiteStakes' Design*.js components.
   Fonts the example designs use, served from Rank's own server: */
@font-face{font-family:'Sora';font-style:normal;font-display:swap;font-weight:100 800;src:url('/assets/fonts/sora-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sora';font-style:normal;font-display:swap;font-weight:100 800;src:url('/assets/fonts/sora-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-display:swap;font-weight:100 900;src:url('/assets/fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-display:swap;font-weight:100 900;src:url('/assets/fonts/montserrat-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:200 1000;src:url('/assets/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:200 1000;src:url('/assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Open Sans';font-style:normal;font-display:swap;font-weight:300 800;src:url('/assets/fonts/open-sans-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Open Sans';font-style:normal;font-display:swap;font-weight:300 800;src:url('/assets/fonts/open-sans-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Merriweather';font-style:normal;font-display:swap;font-weight:300 900;src:url('/assets/fonts/merriweather-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Merriweather';font-style:normal;font-display:swap;font-weight:300 900;src:url('/assets/fonts/merriweather-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:swap;font-weight:400 900;src:url('/assets/fonts/playfair-display-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:swap;font-weight:400 900;src:url('/assets/fonts/playfair-display-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Serif 4';font-style:normal;font-display:swap;font-weight:200 900;src:url('/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Source Serif 4';font-style:normal;font-display:swap;font-weight:200 900;src:url('/assets/fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url('/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url('/assets/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-display:swap;font-weight:200 800;src:url('/assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-display:swap;font-weight:200 800;src:url('/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lato';font-style:normal;font-display:swap;font-weight:400;src:url('/assets/fonts/lato-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-display:swap;font-weight:400;src:url('/assets/fonts/lato-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lato';font-style:normal;font-display:swap;font-weight:700;src:url('/assets/fonts/lato-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-display:swap;font-weight:700;src:url('/assets/fonts/lato-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ── Example website (SiteStakes' MiniBrowser + ShimmerStyles), shared by every section here and by a hero's morphing preview ── */
.mb{width:300px;border-radius:10px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.18),0 2px 8px rgba(0,0,0,0.1);flex-shrink:0}
.mb--lg{width:100%}
.mb--i{transition:transform 0.4s ease,box-shadow 0.4s ease}
.mb--i:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 16px 48px rgba(0,0,0,0.25),0 0 30px var(--mb-glow,rgba(0,0,0,0))}
.mb-dots{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");background-repeat:repeat;pointer-events:none}
.mb-shimmer{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);background-size:200% 100%;animation:shimmer-sweep 2s infinite;border-radius:inherit}
@keyframes shimmer-sweep{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ── morphing_hero (DesignMorphingHero.js) ── */
.mh-stage{opacity:1;transform:scale(1);transition:opacity 0.5s ease,transform 0.5s ease;width:100%}
.mh-stage.is-out{opacity:0;transform:scale(0.97)}
.mh-stage [hidden]{display:none}
.mh-pills{display:flex;flex-wrap:wrap;gap:0.5rem;justify-content:center}
.mh-pill{min-height:44px;display:inline-flex;align-items:center;padding:0.5rem 1rem;font-size:0.82rem;border-radius:999px;cursor:pointer;transition:all 0.3s ease;font-family:inherit;line-height:1.2;
  font-weight:400;color:var(--text-muted,#64748b);background:var(--surface,rgba(255,255,255,0.06));border:1px solid var(--border,rgba(0,0,0,0.1))}
.mh-pill.is-active{font-weight:600;color:#ffffff;background:linear-gradient(135deg,var(--mh-from),var(--mh-to));border:none}
.mh-pill:focus-visible{outline:2px solid var(--mh-from);outline-offset:2px}
@media(max-width:640px){.mh-pill{font-size:0.78rem;padding:0.45rem 0.85rem}}

/* ── design_gallery (DesignGallery.js) ── */
.section-design_gallery .sp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:2rem;width:100%}
@media(max-width:740px){.section-design_gallery .sp-grid{grid-template-columns:1fr}}
.section-design_gallery .sp-card{background:var(--surface,rgba(0,0,0,0.02));border:1px solid var(--border,rgba(0,0,0,0.08));border-radius:16px;overflow:hidden;transition:transform 0.4s ease,box-shadow 0.4s ease}
.section-design_gallery .sp-card:hover{transform:translateY(-6px);box-shadow:0 20px 60px rgba(0,0,0,0.12)}
.section-design_gallery .sp-card-prem{border-color:rgba(124,58,237,0.15)}
.section-design_gallery .sp-card-prem:hover{border-color:rgba(124,58,237,0.3);box-shadow:0 20px 60px rgba(124,58,237,0.08)}

/* ── design_deep_dives (DesignDeepDives.js) ── */
.section-design_deep_dives .dd-card{display:flex;gap:2.5rem;align-items:flex-start;flex-wrap:wrap;padding:2.5rem;background:var(--surface,rgba(0,0,0,0.02));border-radius:20px;margin-bottom:2rem;transition:border-color 0.3s ease}
.section-design_deep_dives .dd-preview{flex:0 0 auto;width:100%;max-width:500px}
.section-design_deep_dives .dd-content{flex:1;min-width:280px}
.section-design_deep_dives .dd-title{font-size:1.5rem;font-weight:800;color:var(--text,#1e293b);margin:0 0 0.5rem}
.section-design_deep_dives .dd-tagline{font-size:1.1rem;font-weight:500;font-style:italic;margin:0 0 0.75rem;line-height:1.4}
.section-design_deep_dives .dd-body{font-size:1rem;color:var(--text-secondary,#475569);line-height:1.8;margin:0 0 1.25rem}
.section-design_deep_dives .dd-highlights{display:flex;flex-direction:column;gap:0.65rem}
.section-design_deep_dives .dd-hl-row{display:flex;gap:0.6rem;align-items:flex-start}
.section-design_deep_dives .dd-hl-dot{font-size:0.9rem;font-weight:700;flex-shrink:0;margin-top:2px}
.section-design_deep_dives .dd-hl-label{font-size:0.95rem;font-weight:600;color:var(--text,#1e293b)}
.section-design_deep_dives .dd-hl-text{font-size:0.92rem;color:var(--text-secondary,#475569);margin-left:4px}
.section-design_deep_dives .dd-bestfor{margin-top:1.25rem;padding:1rem 1.25rem;border-radius:10px}
.section-design_deep_dives .dd-bestfor-label{font-size:0.78rem;font-weight:700;text-transform:uppercase;letter-spacing:0.06em}
.section-design_deep_dives .dd-bestfor-text{font-size:0.95rem;color:var(--text-secondary,#475569);margin:0.35rem 0 0;line-height:1.6}
@media(max-width:768px){
  .section-design_deep_dives .dd-card{flex-direction:column;align-items:stretch;padding:1.25rem;gap:1.5rem}
  .section-design_deep_dives .dd-preview{max-width:100%}
  .section-design_deep_dives .dd-content{min-width:0}
  .section-design_deep_dives .dd-title{font-size:1.3rem}
  .section-design_deep_dives .dd-tagline{font-size:1.05rem}
  .section-design_deep_dives .dd-body{font-size:1rem}
  .section-design_deep_dives .dd-hl-label{font-size:0.95rem}
  .section-design_deep_dives .dd-hl-text{font-size:0.92rem}
  .section-design_deep_dives .dd-bestfor-text{font-size:0.95rem}
}

/* ── switch rows shared by effects_playground and animations_demo (buttons that look like SiteStakes' rows) ── */
.ps-fx-row,.ps-an-row{width:100%;background:none;border:0;margin:0;font:inherit;color:inherit;text-align:left;-webkit-appearance:none;appearance:none}
.ps-fx-row:focus-visible,.ps-an-row:focus-visible{outline:2px solid #a855f7;outline-offset:2px;border-radius:6px}

/* ── effects_playground (DesignEffectsPlayground.js) ── */
.section-effects_playground .ps-fx-layout{display:grid;grid-template-columns:220px 1fr;gap:1.5rem;align-items:start;max-width:820px;margin:0 auto}
@media(max-width:640px){.section-effects_playground .ps-fx-layout{grid-template-columns:1fr}}
.section-effects_playground .ps-fx-controls{background:var(--surface,#f8fafc);border:1px solid var(--border,#e2e8f0);border-radius:12px;padding:1rem}
.section-effects_playground .ps-fx-controls h4{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted,#94a3b8);margin:0 0 .75rem;padding-bottom:.5rem;border-bottom:1px solid var(--border,#e2e8f0)}
.section-effects_playground .ps-fx-row{display:flex;align-items:center;justify-content:space-between;padding:.35rem 0;cursor:pointer}
.section-effects_playground .ps-fx-row:hover{opacity:.85}
.section-effects_playground .ps-fx-lbl{font-size:.78rem;color:var(--text-muted,#64748b);display:flex;align-items:center;gap:.3rem}
.section-effects_playground .ps-fx-sw{width:34px;height:19px;border-radius:9px;background:rgba(100,116,139,0.25);position:relative;transition:background .2s;flex-shrink:0}
.section-effects_playground .ps-fx-sw::after{content:'';position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#94a3b8;transition:all .2s}
.section-effects_playground .ps-fx-sw.on{background:rgba(168,85,247,0.4)}
.section-effects_playground .ps-fx-sw.on::after{left:17px;background:#a855f7}
.section-effects_playground .ps-fx-preview{background:#0f172a;border:1px solid #1e293b;border-radius:12px;padding:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;min-height:280px;position:relative;overflow:hidden;transition:all .3s}
.section-effects_playground .ps-fx-headline{font-size:1.35rem;font-weight:800;color:#e2e8f0;text-align:center;transition:all .3s}
.section-effects_playground .ps-fx-btn{padding:.5rem 1.75rem;background:#a855f7;color:#fff;border:none;border-radius:8px;font-size:.85rem;font-weight:600;cursor:default;position:relative;overflow:hidden;transition:all .3s}
.section-effects_playground .ps-fx-card-mock{width:70%;padding:1rem;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:10px;text-align:center;font-size:.78rem;color:#94a3b8;transition:all .3s}
.section-effects_playground .ps-fx-gradient-text .ps-fx-headline{background:linear-gradient(135deg,#a855f7,#fbbf24);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.section-effects_playground .ps-fx-glassmorphism .ps-fx-card-mock{background:rgba(255,255,255,0.06);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.12)}
.section-effects_playground .ps-fx-shimmer .ps-fx-btn::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);background-size:200% 100%;animation:psShimmer 2s infinite}
.section-effects_playground .ps-fx-glow .ps-fx-btn{box-shadow:0 0 20px rgba(168,85,247,0.4)}
.section-effects_playground .ps-fx-3d .ps-fx-card-mock{transform:perspective(600px) rotateX(2deg) rotateY(-2deg);box-shadow:0 12px 32px rgba(0,0,0,0.3)}
.section-effects_playground .ps-fx-hover-glow .ps-fx-card-mock{box-shadow:0 0 15px rgba(168,85,247,0.2)}
@keyframes psShimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}

/* ── animations_demo (DesignAnimationsDemo.js) ── */
.section-animations_demo .ps-an-layout{display:grid;grid-template-columns:220px 1fr;gap:1.5rem;align-items:start;max-width:820px;margin:0 auto}
@media(max-width:640px){.section-animations_demo .ps-an-layout{grid-template-columns:1fr}.section-animations_demo .ps-an-cards{grid-template-columns:1fr !important}}
.section-animations_demo .ps-an-controls{background:var(--surface,#f8fafc);border:1px solid var(--border,#e2e8f0);border-radius:12px;padding:1rem}
.section-animations_demo .ps-an-controls h4{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted,#94a3b8);margin:0 0 .75rem;padding-bottom:.5rem;border-bottom:1px solid var(--border,#e2e8f0)}
.section-animations_demo .ps-an-row{display:flex;align-items:center;justify-content:space-between;padding:.35rem 0;cursor:pointer}
.section-animations_demo .ps-an-row:hover{opacity:.85}
.section-animations_demo .ps-an-lbl{font-size:.78rem;color:var(--text-muted,#64748b);display:flex;align-items:center;gap:.3rem}
.section-animations_demo .ps-an-sw{width:34px;height:19px;border-radius:9px;background:rgba(100,116,139,0.25);position:relative;transition:background .2s;flex-shrink:0}
.section-animations_demo .ps-an-sw::after{content:'';position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#94a3b8;transition:all .2s}
.section-animations_demo .ps-an-sw.on{background:rgba(168,85,247,0.4)}
.section-animations_demo .ps-an-sw.on::after{left:17px;background:#a855f7}
.section-animations_demo .ps-an-preview{background:#0f172a;border:1px solid #1e293b;border-radius:12px;overflow:hidden;min-height:300px;position:relative}
.section-animations_demo .ps-an-hero{padding:1.25rem 1.5rem;text-align:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#1e1b4b 0%,#312e81 100%);background-size:100% 100%}
.section-animations_demo .ps-an-hero-bg{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");background-repeat:repeat;transition:transform .5s}
.section-animations_demo .ps-an-hero h3{font-size:1rem;font-weight:700;color:#e2e8f0;margin:0 0 .375rem;position:relative;z-index:1}
.section-animations_demo .ps-an-hero p{font-size:.72rem;color:rgba(255,255,255,0.65);margin:0 0 .5rem;position:relative;z-index:1}
.section-animations_demo .ps-an-hero-btn{padding:.35rem 1.25rem;background:#a855f7;color:#fff;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:default;position:relative;z-index:1;transition:all .3s}
.section-animations_demo .ps-an-stats{display:flex;justify-content:center;gap:1.25rem;padding:.75rem 1rem;border-bottom:1px solid #1e293b}
.section-animations_demo .ps-an-stat{text-align:center}
.section-animations_demo .ps-an-num{font-size:1.1rem;font-weight:800;color:#a855f7;font-variant-numeric:tabular-nums}
.section-animations_demo .ps-an-stat-lbl{font-size:.6rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.section-animations_demo .ps-an-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;padding:.75rem}
.section-animations_demo .ps-an-card{padding:.625rem;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:8px;text-align:center;font-size:.65rem;color:#94a3b8;transition:all .4s}
.section-animations_demo .ps-an-card-icon{font-size:.85rem;margin-bottom:.25rem}
.section-animations_demo .ps-an-card-title{font-weight:600;color:#e2e8f0;font-size:.68rem;margin-bottom:.125rem}
.section-animations_demo .ps-an-cta{padding:.75rem;text-align:center}
.section-animations_demo .ps-an-cta-btn{padding:.35rem 1.5rem;background:linear-gradient(135deg,#a855f7,#6366f1);color:#fff;border:none;border-radius:8px;font-size:.75rem;font-weight:600;cursor:default;transition:all .3s}
.section-animations_demo .ps-an-animations .ps-an-hero h3,.section-animations_demo .ps-an-animations .ps-an-hero p,.section-animations_demo .ps-an-animations .ps-an-hero-btn{animation:psAnimFadeUp .6s ease-out both}
.section-animations_demo .ps-an-animations .ps-an-hero p{animation-delay:.1s}
.section-animations_demo .ps-an-animations .ps-an-hero-btn{animation-delay:.2s}
@keyframes psAnimFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.section-animations_demo .ps-an-scroll .ps-an-card{animation:psScrollReveal .5s ease-out both}
.section-animations_demo .ps-an-scroll .ps-an-card:nth-child(2){animation-delay:.15s}
.section-animations_demo .ps-an-scroll .ps-an-card:nth-child(3){animation-delay:.3s}
@keyframes psScrollReveal{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.section-animations_demo .ps-an-counters .ps-an-num{animation:psPulseNum 1.5s ease-in-out infinite}
@keyframes psPulseNum{0%,100%{opacity:1}50%{opacity:.6;transform:scale(1.05)}}
.section-animations_demo .ps-an-parallax .ps-an-hero-bg{animation:psParallaxDrift 4s ease-in-out infinite}
@keyframes psParallaxDrift{0%,100%{transform:translate(0,0) scale(1.05)}50%{transform:translate(-3px,-5px) scale(1.08)}}
.section-animations_demo .ps-an-shake .ps-an-cta-btn{animation:psShake 3s ease-in-out infinite}
@keyframes psShake{0%,88%,100%{transform:translateX(0)}90%{transform:translateX(-3px) rotate(-1deg)}92%{transform:translateX(3px) rotate(1deg)}94%{transform:translateX(-2px)}96%{transform:translateX(2px)}}
.section-animations_demo .ps-an-video .ps-an-hero{background:linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4c1d95 100%);background-size:200% 200%;animation:psVideoBg 4s ease infinite}
@keyframes psVideoBg{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

/* ── before_after (DesignBeforeAfter.js); the script sets --ba-pos ── */
.section-before_after .ba-slider{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--border,#e2e8f0);height:260px;-webkit-user-select:none;user-select:none;cursor:col-resize;max-width:700px;margin:0 auto;touch-action:pan-y}
.section-before_after .ba-basic,.section-before_after .ba-premium{position:absolute;top:0;left:0;right:0;bottom:0}
.section-before_after .ba-basic{background:#1e293b;z-index:1}
.section-before_after .ba-premium{background:linear-gradient(135deg,#0f0a1a,#1a0f2e);z-index:2;clip-path:inset(0 0 0 var(--ba-pos,50%))}
.section-before_after .ba-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:1.5rem}
.section-before_after .ba-tag{position:absolute;top:12px;left:12px;padding:3px 10px;border-radius:4px;font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.section-before_after .ba-basic .ba-tag{background:rgba(100,116,139,0.2);color:#94a3b8}
.section-before_after .ba-premium .ba-tag{background:linear-gradient(135deg,rgba(168,85,247,0.2),rgba(99,102,241,0.2));color:#c084fc}
.section-before_after .ba-btn{cursor:inherit;pointer-events:none}
.section-before_after .ba-basic .ba-h{font-size:1.1rem;font-weight:700;color:#e2e8f0;text-align:center}
.section-before_after .ba-basic .ba-btn{padding:.4rem 1.25rem;background:#3b82f6;color:#fff;border-radius:6px;font-size:.78rem;font-weight:600;border:none}
.section-before_after .ba-basic .ba-card{padding:.5rem 1rem;border:1px solid #334155;border-radius:6px;font-size:.7rem;color:#94a3b8;text-align:center}
.section-before_after .ba-premium .ba-h{font-size:1.1rem;font-weight:700;background:linear-gradient(135deg,#fbbf24,#d97706);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-align:center}
.section-before_after .ba-premium .ba-btn{padding:.4rem 1.25rem;background:linear-gradient(135deg,#fbbf24,#b45309);color:#fff;border-radius:10px;font-size:.78rem;font-weight:600;border:none;box-shadow:0 0 20px rgba(251,191,36,0.25);position:relative;overflow:hidden}
.section-before_after .ba-premium .ba-btn::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent);background-size:200% 100%;animation:baShimmer 2.5s infinite;border-radius:10px}
.section-before_after .ba-premium .ba-card{padding:.5rem 1rem;background:rgba(255,255,255,0.06);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(251,191,36,0.2);border-radius:12px;font-size:.7rem;color:#e2e8f0;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,0.2)}
.section-before_after .ba-handle{position:absolute;top:0;bottom:0;left:var(--ba-pos,50%);width:3px;background:#a855f7;z-index:10;cursor:col-resize;outline:none}
.section-before_after .ba-handle::after{content:'⟺';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:28px;height:28px;background:#a855f7;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.3)}
.section-before_after .ba-handle:focus-visible::after{box-shadow:0 0 0 3px #fff,0 0 0 5px #a855f7}
.section-before_after .ba-caption{text-align:center;margin-top:.75rem;font-size:.82rem;color:var(--text-muted,#94a3b8)}
@keyframes baShimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}

/* ── preset_gallery (DesignPresetGallery.js): grid + sticky preview on a computer, sheet from the bottom on a phone ── */
.section-preset_gallery .pg-layout{display:grid;grid-template-columns:1fr 420px;gap:2rem;align-items:start}
.section-preset_gallery .pg-grid-wrap{display:flex;flex-direction:column;gap:1.5rem;min-width:0}
.section-preset_gallery .pg-cat{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,0.5);padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,0.1)}
.section-preset_gallery .pg-cat:not(:first-child){margin-top:.5rem}
.section-preset_gallery .pg-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.65rem}
.section-preset_gallery .pg-card{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:10px;padding:.5rem;cursor:pointer;transition:all .25s;position:relative;overflow:hidden}
.section-preset_gallery .pg-card:hover{border-color:rgba(168,85,247,0.4);transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,0.3)}
.section-preset_gallery .pg-card.active{border-color:var(--green-light,#22c55e);box-shadow:0 0 0 2px rgba(34,197,94,0.3)}
.section-preset_gallery .pg-card:focus-visible{outline:2px solid #a855f7;outline-offset:2px}
.section-preset_gallery .pg-mini{border-radius:6px;overflow:hidden;margin-bottom:.4rem}
.section-preset_gallery .pg-mini-hdr{height:14px;display:flex;align-items:center;padding:0 6px}
.section-preset_gallery .pg-mini-hdr span{font-size:5px;font-weight:700;color:#fff;letter-spacing:.02em}
.section-preset_gallery .pg-mini-body{padding:6px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.section-preset_gallery .pg-mini-h{font-size:6px;font-weight:700;text-align:center;line-height:1.2}
.section-preset_gallery .pg-mini-btn{font-size:5px;font-weight:600;padding:2px 8px;border-radius:3px;color:#fff;line-height:1.3}
.section-preset_gallery .pg-mini-cards{display:flex;gap:2px;width:100%}
.section-preset_gallery .pg-mini-cards span{flex:1;height:10px;border-radius:2px}
.section-preset_gallery .pg-dots{display:flex;gap:3px;margin-bottom:.25rem}
.section-preset_gallery .pg-dots span{width:10px;height:10px;border-radius:50%;border:1px solid rgba(255,255,255,0.15)}
.section-preset_gallery .pg-name{font-size:.68rem;color:rgba(255,255,255,0.7);font-weight:500}
.section-preset_gallery .pg-preview{position:sticky;top:100px}
.section-preset_gallery .pg-preview-label{font-size:.8rem;color:rgba(255,255,255,0.5);text-align:center;margin-top:.75rem}
.section-preset_gallery .pg-sheet-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:1000;animation:pgFadeIn .2s ease}
.section-preset_gallery .pg-sheet-overlay.open{display:block}
.section-preset_gallery .pg-sheet{position:fixed;bottom:0;left:0;right:0;z-index:1001;background:#0f172a;border-top:1px solid rgba(255,255,255,0.1);border-radius:16px 16px 0 0;padding:1rem 1rem 2rem;transform:translateY(100%);visibility:hidden;transition:transform .3s ease,visibility 0s linear .3s;max-height:70vh;overflow:auto}
.section-preset_gallery .pg-sheet.open{transform:translateY(0);visibility:visible;transition:transform .3s ease,visibility 0s}
.section-preset_gallery .pg-sheet-handle{width:40px;height:4px;background:rgba(255,255,255,0.2);border-radius:2px;margin:0 auto .75rem}
.section-preset_gallery .pg-sheet-title{font-size:.9rem;font-weight:600;color:#e2e8f0;text-align:center;margin-bottom:.75rem}
.section-preset_gallery .pg-sheet-close{position:absolute;top:.75rem;right:1rem;background:none;border:none;color:rgba(255,255,255,0.5);font-size:1.25rem;cursor:pointer;padding:4px;line-height:1}
@keyframes pgFadeIn{from{opacity:0}to{opacity:1}}
@media(max-width:767px){
  .section-preset_gallery .pg-layout{grid-template-columns:1fr}
  .section-preset_gallery .pg-preview{display:none}
  .section-preset_gallery .pg-grid{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:768px){
  .section-preset_gallery .pg-sheet-overlay,.section-preset_gallery .pg-sheet{display:none !important}
}

/* ── Readers who ask for less motion: no endless or decorative movement, changes happen at once ── */
@media (prefers-reduced-motion: reduce){
  .mb,.mb *,.mh-stage,.mh-pill,
  .section-design_gallery *,.section-effects_playground *,.section-animations_demo *,.section-before_after *,.section-preset_gallery *{animation:none !important;transition:none !important}
  .mb--i:hover,.section-design_gallery .sp-card:hover,.section-preset_gallery .pg-card:hover{transform:none}
  .section-effects_playground .ps-fx-shimmer .ps-fx-btn::after,.section-before_after .ba-premium .ba-btn::after{animation:none !important}
}
