/* Design Studio storefront — dark showcase skin, house structure */
/* [hidden] must beat class display rules (RCB lesson: .pl-dl-ov{display:grid}
   overrides the UA hidden rule → overlay shows on every load) */
[hidden]{display:none!important}
* { box-sizing: border-box; margin: 0; }
body {
  background: #0B0E14; color: #C7CDDC;
  font: 400 15px/1.6 ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}
.pl-wrap { max-width: 1560px; margin: 0 auto; padding: 0 28px; }

.pl-header {
  position: sticky; top: 0; z-index: 50;
  background: #0B0E14E6; backdrop-filter: blur(10px);
  border-bottom: 1px solid #1E2330;
}
.pl-header-in { display: flex; align-items: center; gap: 20px; height: 58px; }
.pl-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.pl-brand .mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid;
  place-items: center; font: 800 14px/1 inherit;
  background: linear-gradient(160deg, #F59E0B, #6D64F0); color: #0B0E14;
}
.pl-brand .word {
  font-weight: 700; font-size: 15px;
  background: linear-gradient(100deg, #F5F1E8 38%, #FDE68A 50%, #F5F1E8 62%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pl-brand-shine 4.5s ease-in-out infinite;
  text-shadow: 0 0 22px rgba(253, 230, 138, .12);
}
@keyframes pl-brand-shine {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -90% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-brand .word { animation: none; background: none; color: #F5F1E8; }
}
.pl-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.pl-nav a { color: #9AA3B8; text-decoration: none; font-size: 13.5px; }
.pl-nav a:hover { color: #F5F1E8; }
.pl-header .pl-searchbar--hdr { flex: 0 1 480px; margin: 0 auto; align-self: center; }
.pl-nav a.pl-home {
  position: relative; overflow: hidden; white-space: nowrap;
  border: 1px solid #3A4152; border-radius: 9px; padding: 7px 13px;
  background: #181D29; color: #E8ECF5; font-weight: 600;
}
.pl-nav a.pl-home:hover { border-color: #FDE68A; color: #FDE68A; }
.pl-nav a.pl-home::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; left: -50%;
  width: 36%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 180, .16), transparent);
  animation: pl-home-shine 4.2s ease-in-out infinite;
}
@keyframes pl-home-shine { 0% { left: -50%; } 55%, 100% { left: 135%; } }
@media (prefers-reduced-motion: reduce) { .pl-nav a.pl-home::after { animation: none; } }
.pl-zip {
  font: 700 12px/1 inherit; color: #422006; background: #FDE68A;
  border: 0; border-radius: 99px; padding: 8px 15px; cursor: pointer;
}
.pl-zip:hover { background: #FCD34D; }
.pl-zip b { margin-left: 4px; }
@media (max-width: 900px) {
  .pl-header .pl-searchbar--hdr { flex: 0 0 auto; width: auto; padding: 11px; }
  .pl-header .pl-searchbar--hdr .q, .pl-header .pl-searchbar--hdr kbd { display: none; }
}
@media (max-width: 640px) {
  .pl-header-in { gap: 12px; }
  .pl-nav { gap: 12px; }
  .pl-nav a { font-size: 12.5px; }
  .pl-nav a[href="license"] { display: none; }
  .pl-brand .word { display: none; }
}
@media (max-width: 700px) {
  .pl-kits-head { flex-direction: column; gap: 6px; }
  .pl-kits-note { margin-left: 0; }
}

.pl-hero { padding: 30px 0 18px; max-width: 720px; }
.pl-hero-row {
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: 26px; align-items: start;
}
.pl-hero-row .pl-hero { padding-bottom: 0; max-width: none; }
.pl-hero-row .pl-searchbar { margin-top: 16px; }
.pl-hero-r { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.pl-mini {
  padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(160deg, #1A1E2B 0%, #161926 100%);
  border: 1px solid #3A4152; color: #8B93A7; font-size: 12.5px; line-height: 1.6;
}
.pl-mini b { color: #F5F1E8; }
.pl-mini code { color: #8B84EA; font-family: ui-monospace, monospace; font-size: 11.5px; }
.pl-mini em {
  display: block; color: #565D72; font-style: normal;
  font-size: 11.5px; margin-top: 4px;
}
.pl-mini em::before { content: '→ '; color: #F59E0B; }
@media (max-width: 940px) {
  .pl-hero-row { grid-template-columns: 1fr; }
  .pl-hero-r { margin-top: 4px; }
}
.pl-hero h1 {
  font-size: clamp(19px, 3.2vw, 30px); color: #F5F1E8; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px;
}
.pl-hero .grad {
  background: linear-gradient(90deg, #F59E0B, #F472B6, #8B84EA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pl-hero p { color: #9AA3B8; font: 400 13.5px/1.6 Georgia, 'Times New Roman', serif; }

.pl-strip {
  margin: 6px 0 24px; padding: 12px 16px;
  background: #12161F; border: 1px solid #232A3A; border-radius: 10px;
  color: #6B7386; font-size: 12.5px; line-height: 1.7;
}
.pl-strip b { color: #F5F1E8; }
.pl-strip code { color: #8B84EA; font-family: ui-monospace, monospace; }
.pl-strip em { display: block; color: #565D72; font-style: normal;
  font-size: 11.5px; margin-top: 4px; }
.pl-strip em::before { content: '→ '; color: #F59E0B; }

.pl-grid {
  display: grid; gap: 28px; padding-bottom: 50px;
  grid-template-columns: repeat(3, 1fr);
}
.pl-card {
  background: #12161F; border: 1px solid #232A3A; border-radius: 16px;
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.pl-card:hover { border-color: #3A4152; transform: translateY(-2px); }
.pl-card .shot {
  position: relative; height: 330px; overflow: hidden;
  background: #0B0E14; border-bottom: 1px solid #1E2330;
}
/* crop-and-zoom: demo page is 900px wide; scale .72 → visible logical
   width ~480px centered on the component, top 40px of empty hero
   cropped. Demos center their content, so this lands on the part. */
.pl-card .shot iframe {
  position: absolute; left: 50%; top: -40px; margin-left: -450px;
  width: 900px; height: 760px; border: none;
  transform: scale(.72); transform-origin: center top;
}
.pl-card .meta { padding: 16px 18px 18px; }
.pl-card h3 { color: #F5F1E8; font-size: 16.5px; font-weight: 700; }
.pl-card h3 .en { color: #C7CDDC; font-size: 13px; font-weight: 600;
  margin-left: 6px; }
.pl-card h3 .what { color: #4E5669; font-size: 12px; font-weight: 500;
  margin-left: 6px; }
.pl-card h3 .desi { color: #FB923C; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; margin-left: 6px;
  padding: 2.5px 7px; border-radius: 99px;
  background: rgba(251,146,60,.12); border: 1px solid rgba(251,146,60,.35);
  vertical-align: 2px; }

/* ---- ⌘K button + search-flash + dark palette tokens ---- */
.pl-k { font:700 11px/1 inherit; color:#6B7386; cursor:pointer;
  padding:6px 9px; border-radius:7px;
  background:#12151E; border:1px solid rgba(255,255,255,.14);
  transition:color .15s, border-color .15s; }
.pl-k:hover { color:#F5F1E8; border-color:rgba(255,255,255,.35); }

.pl-searchbar { display:flex; align-items:center; gap:10px; width:100%;
  margin:0 0 14px; padding:12px 14px; cursor:text; text-align:left;
  font:400 13.5px/1 inherit; color:#6B7386;
  background:#12151E; border:1px solid rgba(255,255,255,.14);
  border-radius:12px; transition:border-color .15s, color .15s; }
.pl-searchbar:hover { border-color:rgba(255,255,255,.3); color:#9AA1B5; }
.pl-searchbar svg { flex:none; opacity:.7; }
.pl-searchbar .q { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pl-searchbar kbd { flex:none; font:700 10.5px/1 inherit; color:#8A90A2;
  padding:4px 7px; border-radius:6px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); }

.pl-card.pl-flash { animation:pl-flash 1.1s ease-out; }
@keyframes pl-flash {
  0% { box-shadow:0 0 0 0 rgba(165,180,252,.55); }
  100% { box-shadow:0 0 0 18px rgba(165,180,252,0); }
}

:root {
  --cmdk-bg:#12151E; --cmdk-line:rgba(255,255,255,.12);
  --cmdk-ink:#F5F1E8; --cmdk-faint:#6B7386;
  --cmdk-chip:#1A2030; --cmdk-accent:#3B4FD8;
}
#cmdk-root .cmdk-box { border-radius:16px; }
.cmdk-item.on { background:linear-gradient(90deg,#3B4FD8,#6D5BD8); }
.pl-card p { color: #6B7386; font-size: 13px; line-height: 1.55;
  margin: 7px 0 13px; min-height: 40px; }
.pl-card .acts { display: flex; align-items: center; gap: 10px; }
.pl-card .demo {
  font: 600 12px/1 inherit; color: #A5B4FC; text-decoration: none;
  padding: 8px 12px; border: 1px solid #3A4152; border-radius: 8px;
}
.pl-card .demo:hover { border-color: #8B84EA; }
.pl-card .price {
  margin-left: auto; color: #F5F1E8; font: 700 14px/1 inherit;
}
.pl-card .add {
  font: 700 12px/1 inherit; color: #F5F1E8; cursor: pointer;
  border: 1px solid #3A4152; border-radius: 8px; padding: 8px 14px;
  background: #181D29; transition: border-color .15s, background .15s;
}
.pl-card .add:hover { border-color: #F59E0B; }
.pl-card .add.in {
  background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.55);
  color: #FBBF24;
}

/* ---- catalog shelves ---- */
.pl-cats {
  margin: 26px 0 8px; padding: 14px 18px 16px;
  background: #12161F; border: 1px solid #232A3A; border-radius: 14px;
}
.pl-cats-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pl-cats-h {
  color: #F5F1E8; font: 700 12px/1 inherit;
  letter-spacing: .14em; text-transform: uppercase;
}
.pl-cats-sub { color: #8B93A7; font-size: 12px; }
.pl-cats-clear {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: #FDE68A; font: 600 12px/1 inherit; padding: 2px 0;
}
.pl-cats-clear:hover { color: #FCD34D; }
.pl-cat-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.pl-cat {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  background: #181D29; border: 1px solid #2A3142; border-radius: 10px;
  padding: 10px 14px; cursor: pointer; text-align: left;
  transition: border-color .15s;
}
.pl-cat:hover { border-color: #4A5470; }
.pl-cat .n { color: #F5F1E8; font-size: 13px; font-weight: 600; }
.pl-cat .h { color: #5C6478; font-size: 11px; flex: 1; }
.pl-cat .c { color: #FDE68A; font: 700 11px/1 ui-monospace, monospace; }
.pl-cat.on { border-color: rgba(253, 230, 138, .55); background: rgba(253, 230, 138, .06); }
.pl-cat.on .n { color: #FDE68A; }
@media (max-width: 980px) { .pl-cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pl-cat-list { grid-template-columns: 1fr; } }

/* ---- curated kits ---- */
.pl-kits { margin: 26px auto 8px; }
.pl-kits-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pl-kits-h {
  color: #F5F1E8; font: 700 12px/1 inherit;
  letter-spacing: .14em; text-transform: uppercase;
}
.pl-kits-h .dim {
  color: #8B93A7; font-weight: 400; letter-spacing: 0; text-transform: none;
}
.pl-kits-note { margin-left: auto; color: #5C6478; font-size: 12px; }
.pl-kits-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.pl-kit {
  background: linear-gradient(160deg, #1A1E2B 0%, #161926 100%);
  border: 1px solid #3A4152; border-radius: 16px; padding: 22px;
  transition: border-color .15s;
}
.pl-kit:hover { border-color: #FDE68A; }
.pl-kit-tag {
  color: #FDE68A; font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .16em; margin-bottom: 9px;
}
.pl-kit-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pl-kit h3 { color: #F5F1E8; font-size: 16px; font-weight: 700; }
.pl-kit-price { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.pl-kit-price .p { color: #F5F1E8; font: 800 19px/1 inherit; }
.pl-kit-price .w { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pl-kit-price .s { color: #5C6478; font-size: 11px; text-decoration: line-through; }
.pl-kit-price .v { color: #4ADE80; font-size: 11px; font-weight: 600; }
.pl-kit-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px;
  list-style: none; padding: 0; margin: 0 0 16px;
  font-size: 12px; line-height: 1.35;
}
.pl-kit-list b { color: #E8ECF5; font-weight: 600; }
.pl-kit-list li span { display: block; color: #5C6478; font-size: 10.5px; }
.pl-kit-add {
  width: 100%; font: 700 13px/1 inherit; cursor: pointer; color: #422006;
  background: #FDE68A; border: none; border-radius: 9px; padding: 12px 16px;
}
.pl-kit-add:hover { background: #FCD34D; }
.pl-kit-add.in {
  background: rgba(74,222,128,.15); color: #4ADE80;
  border: 1px solid rgba(74,222,128,.5);
}

/* ---- sticky cart bar ---- */
.pl-cart.pl-pulse { animation: pl-cart-pulse 1s ease-out; }
@keyframes pl-cart-pulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 230, 138, .5); }
  100% { box-shadow: 0 0 0 16px rgba(253, 230, 138, 0); }
}
.pl-cart {
  position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 60;
  width: min(520px, calc(100vw - 32px));
}
.pl-cart-in {
  display: flex; align-items: center; gap: 14px;
  background: #161B27F2; backdrop-filter: blur(12px);
  border: 1px solid #2E3550; border-radius: 14px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.pl-cart-in #pl-cart-n { color: #C7CDDC; font-size: 13px; font-weight: 600; }
.pl-cart-total {
  margin-left: auto; color: #F5F1E8; font: 800 16px/1 inherit;
}
#pl-checkout {
  font: 700 13px/1 inherit; cursor: pointer; color: #0B0E14;
  background: linear-gradient(160deg, #F59E0B, #F97316);
  border: none; border-radius: 10px; padding: 11px 22px;
}
#pl-checkout:disabled { opacity: .55; cursor: wait; }
.pl-cart-note {
  margin-top: 8px; text-align: center; color: #FBBF24;
  font-size: 12px; background: #161B27E6; border: 1px solid #2E3550;
  border-radius: 10px; padding: 8px 12px;
}
.pl-cart-xs {
  margin-top: 8px; text-align: center; color: #8B93A7;
  font-size: 12px; background: #161B27E6; border: 1px dashed #2E3550;
  border-radius: 10px; padding: 8px 12px;
}
.pl-cart-xs a, .pl-xnudge a {
  color: #FBBF24; font-weight: 600; text-decoration: none;
  border-bottom: 1px dotted rgba(251,191,36,.45);
}
.pl-cart-xs a:hover, .pl-xnudge a:hover { border-bottom-style: solid; }
.pl-cart-xs .dot, .pl-xnudge .dot { color: #3D4557; }

/* ---- shelf cross-sell nudge (inside the catalog panel) ---- */
.pl-xnudge {
  margin: 14px 0 0; padding: 10px 14px; text-align: center;
  color: #8B93A7; font-size: 12.5px;
  background: #12161DE8; border: 1px dashed #2E3550; border-radius: 10px;
}

/* ---- download + recover overlays ---- */
.pl-dl-ov {
  position: fixed; inset: 0; z-index: 80; display: grid;
  place-items: center; padding: 20px;
  background: rgba(6,8,12,.72); backdrop-filter: blur(6px);
}
.pl-dl {
  position: relative; width: min(560px, 100%);
  max-height: 82vh; overflow: auto;
  background: #12161F; border: 1px solid #2E3550; border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.pl-dl h2 { color: #F5F1E8; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.pl-dl .ord { color: #8B93A7; font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.pl-dl .ord code { color: #FBBF24; font-family: ui-monospace, monospace; }
.pl-dl .fine { color: #565D72; font-size: 11.5px; margin-top: 12px; }
.pl-x {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: #181D29; border: 1px solid #2E3550; color: #8B93A7;
  font: 600 13px/1 inherit;
}
.pl-x:hover { color: #F5F1E8; border-color: #3A4152; }
.pl-dl-list { display: grid; gap: 8px; }
.pl-dl-item {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; padding: 11px 14px;
  background: #181D29; border: 1px solid #2A3140; border-radius: 10px;
  transition: border-color .15s;
}
.pl-dl-item:hover { border-color: #F59E0B; }
.pl-dl-item b { color: #F5F1E8; font-size: 13.5px; text-transform: capitalize; }
.pl-dl-item span { color: #FBBF24; font: 600 11.5px/1 inherit; }

/* ---- recover form ---- */
.pl-rs-f {
  display: block; color: #8B93A7; font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
}
.pl-rs-f input {
  display: block; width: 100%; margin-top: 5px;
  background: #0B0E14; border: 1px solid #2A3140; border-radius: 9px;
  color: #F5F1E8; font: 400 13.5px/1 inherit; padding: 11px 12px;
}
.pl-rs-f input:focus { outline: none; border-color: #F59E0B; }
.pl-rs-go {
  margin-top: 6px; width: 100%; cursor: pointer;
  font: 700 13px/1 inherit; color: #0B0E14;
  background: linear-gradient(160deg, #F59E0B, #F97316);
  border: none; border-radius: 10px; padding: 12px;
}
#pl-rs-out { min-height: 16px; color: #FBBF24; }
.pl-bundle {
  margin: -8px 0 24px; padding: 12px 16px;
  background: linear-gradient(90deg, rgba(245,158,11,.09), rgba(109,100,240,.09));
  border: 1px solid #2E3550; border-radius: 10px;
  color: #9AA3B8; font-size: 12.5px; line-height: 1.7;
}
.pl-bundle b { color: #F5F1E8; }
.pl-bundle i { font-style: normal; color: #565D72; font-size: 11.5px; }
.pl-bundle .fx { display: block; margin-top: 3px; }
.pl-card .price i { font-style: normal; color: #565D72; font-size: 11px; }

.pl-faq { max-width: 860px; padding: 10px 0 44px; }
.pl-faq h2 {
  color: #F5F1E8; font-size: 17px; font-weight: 800;
  letter-spacing: -.01em; margin-bottom: 14px;
}
.pl-faq details {
  background: #12161F; border: 1px solid #232A3A; border-radius: 10px;
  margin-bottom: 8px; padding: 0 16px;
}
.pl-faq summary {
  cursor: pointer; list-style: none; padding: 13px 26px 13px 0;
  color: #C7CDDC; font-weight: 600; font-size: 13.5px;
  position: relative; user-select: none;
}
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  translate: 0 -50%; color: #8B84EA; font-weight: 700; font-size: 16px;
}
.pl-faq details[open] summary::after { content: '–'; }
.pl-faq details[open] summary { color: #F5F1E8; }
.pl-faq details p {
  color: #6B7386; font-size: 13px; line-height: 1.65;
  padding-bottom: 14px; max-width: 72ch;
}
.pl-faq details p code {
  color: #8B84EA; font-family: ui-monospace, monospace; font-size: 12px;
}
.pl-faq details p a { color: #A5B4FC; }

.pl-foot {
  border-top: 1px solid #1E2330; padding: 26px 0 40px;
  color: #6B7386; font-size: 12.5px; text-align: center;
}
.pl-foot a { color: #9AA3B8; }

@media (max-width: 1000px) {
  .pl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .pl-grid { grid-template-columns: 1fr; }
}
