/* spacing & text review (15 Oct 2026): type scale 12/14/16/18/22/28/36/48, spacing 4/8/12/16/24/32/48/64/96 */
:root{--fs-xs:12px;--fs-sm:14px;--fs-base:16px;--fs-lg:18px;--fs-xl:22px;--fs-2xl:28px;--fs-3xl:36px;--fs-4xl:48px}
body{font-size:16px;line-height:1.625}
h1{font-size:var(--fs-3xl);line-height:1.17}
h2{font-size:var(--fs-2xl);line-height:1.25}
h3{font-size:var(--fs-lg);line-height:1.45}
.lead{font-size:var(--fs-lg);line-height:1.45}
.hint,.small,small{font-size:var(--fs-sm);line-height:1.5}
.hero h1{font-size:var(--fs-4xl);line-height:1.08}
@media (max-width:640px){h1{font-size:28px}h2{font-size:22px}}
/* 1 + 6: heading rhythm and listing hierarchy */
main section h2,main .sec-head h2,.pg-listing h2,.pg-fees h2,.pg-cat h2{margin-top:48px;margin-bottom:16px}
main .sec-head h2,main .sec-head .eyebrow+h2{margin-top:8px}
main .sec-head{margin-top:0}
main section:first-child h2:first-child{margin-top:0}
@media (max-width:640px){main section h2,.pg-listing h2,.pg-fees h2,.pg-cat h2{margin-top:32px}}
.pg-listing h1{font-size:var(--fs-4xl);line-height:1.1}
@media (max-width:640px){.pg-listing h1{font-size:28px}}
.pg-listing h2{font-size:var(--fs-2xl);line-height:1.25}
.pg-listing table,.pg-listing .tablewrap,.pg-listing .panel{margin-bottom:24px}
/* 2 + 14: line length */
.pg-fees p,.pg-fees li,.pg-listing .about p,.pg-listing section p,.legal p,.legal li{max-width:65ch}
.iframe-note{font-size:var(--fs-sm);max-width:65ch}
/* 3: tags, badges, creator line */
.tag,.card .tags .tag,.ribbon,.hc-badge,.at-st,.spot-pill{font-size:var(--fs-xs)!important;letter-spacing:.04em}
.card .tags{min-height:28px;flex-wrap:nowrap;overflow:hidden}
.card .tags .tag{white-space:nowrap;padding:4px 8px}
.card .by{font-size:var(--fs-sm)!important}
.card h3{font-size:var(--fs-lg)!important;line-height:1.35}
.card p{font-size:var(--fs-sm)!important;line-height:1.5}
.card .body{padding:16px!important;gap:8px!important}
.card .price{font-size:var(--fs-lg)!important}
/* 5: category hierarchy */
.pg-cat h2{font-size:var(--fs-2xl)}
.pg-cat h3{font-size:var(--fs-lg)}
/* 7: shared section padding */
main>section{padding-top:64px;padding-bottom:64px}
main>section+section{padding-top:0}
@media (max-width:640px){main>section{padding-top:48px;padding-bottom:48px}main>section+section{padding-top:0}}
/* 8: compact mobile header (account links live in the menu) */
@media (max-width:899px){
  .site-head .head-auth{display:none}
  .site-head>.wrap{min-height:56px;padding-top:8px;padding-bottom:8px;flex-wrap:wrap}
  .site-head .shop-bar .wrap{padding-top:0;padding-bottom:8px}
  .hsearch input{font-size:16px;padding-left:12px}
}
/* 9: mobile cards two per row, compact */
@media (max-width:519px){
  .cards,.cards.three,.res-layout .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
  .card .thumb{max-height:160px}
  .card .body{padding:12px!important;gap:6px!important}
  .card h3{font-size:var(--fs-base)!important}
  .card p{display:none}
  .card .tags .tag+.tag{display:none}
  .card .by{font-size:var(--fs-xs)!important}
  .card .rating .n,.card .rating.none{font-size:var(--fs-xs)}
  .card .meta{flex-wrap:wrap;gap:4px}
}
/* 10: login */
.pg-login h1,main .wrap.narrow>h1{font-size:var(--fs-3xl)}
/* 11: seller card */
.pg-listing .hint{font-size:var(--fs-sm);line-height:1.5}
.pg-listing .seller h3,.pg-listing .seller-card h3{margin-bottom:8px}
/* 12: eyebrow */
.eyebrow{font-size:var(--fs-xs)!important;letter-spacing:.08em;line-height:1.4}
/* 13: footer */
.site-foot{margin-top:0!important;padding-top:48px}
.site-foot h4{font-size:var(--fs-sm)!important;line-height:1.4}
.site-foot ul{display:flex;flex-direction:column;gap:12px}
.site-foot li{margin:0}
.pg-login>section{padding-bottom:48px}
/* Live demo frame: cover + loading state (visual fault #3) */
.demo-frame .demo-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--inset) center/cover no-repeat}
.demo-frame .demo-cover::before{content:"";position:absolute;inset:0;background:rgba(15,23,42,.35)}
.demo-frame .demo-loading{position:relative;font:600 14px/1.2 system-ui,sans-serif;color:#fff;background:rgba(15,23,42,.7);border-radius:999px;padding:8px 16px}
.demo-frame .demo-play{position:relative}
.demo-frame iframe{position:absolute;inset:0}

/* ===== Visual faults review (15 Oct) ===== */
/* #1 tag contrast (light theme): darker text, pale fills kept */
:root:not([data-theme="dark"]) .card[data-dept=business-tools]{--a1:#c2410c}
:root:not([data-theme="dark"]) .card[data-dept=ai-automation]{--a1:#7e22ce}
:root:not([data-theme="dark"]) .card[data-dept=themes]{--a1:#a14f0a}
:root:not([data-theme="dark"]) .card[data-dept=templates]{--a1:#047857}
:root:not([data-theme="dark"]) .card[data-dept=software]{--a1:#1d4ed8}
:root:not([data-theme="dark"]) .card[data-dept=data-visuals]{--a1:#4f3fd8}
:root:not([data-theme="dark"]) .tag.a{color:#8a5a12}
/* #5 one-line tag row so titles align across a row */
.card .tags{height:28px;min-height:0;flex-wrap:nowrap;overflow:hidden;align-items:center}
.card .tags .tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.card .tags .tag:last-child{flex:none}
/* #6 listing: sticky buy box sits lower under the two-row header */
@media (min-width:980px){.buybox{top:120px}}
/* #9 one-border search field with inline icon; matched 44px controls */
.res-bar{align-items:center}
.res-bar .search{min-height:44px;padding:0 6px 0 16px;border-radius:999px}
.res-bar .search input{border:0!important;box-shadow:none!important;outline:none;min-height:42px;padding:0;background:transparent}
.res-bar .search-go{border:0;background:none;color:var(--mute);width:36px;height:36px;display:grid;place-items:center;border-radius:999px;cursor:pointer}
.res-bar .search-go:hover{color:var(--text);background:var(--surf2)}
.res-bar select,.res-bar .filt-btn{min-height:44px;height:44px;border-radius:999px}
/* #10 mobile filter bar: full-width search, then Sort + Filters as two equal buttons */
@media (max-width:700px){
  .res-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .res-bar .search{grid-column:1/-1;min-width:0}
  .res-bar .sort-form,.res-bar .sort-form select,.res-bar .filt-btn{width:100%;min-width:0}
}
/* #8 empty state */
.empty-rich{display:block;text-align:center;padding:48px 16px}
.empty-rich .empty-ic{fill:none;stroke:var(--dim);stroke-width:1.5;stroke-linecap:round;margin-bottom:16px}
.empty-rich h2{margin:0 0 8px;font-size:22px}
.empty-rich p{margin:0 0 24px;color:var(--mute)}
.empty-rich .btn-row{justify-content:center;align-items:center;gap:16px}
.empty-rich h3{margin:48px 0 16px;text-align:left;font-size:18px}
.empty-rich .cards{text-align:left}
/* #11 one primary action in the header */
.site-head .head-join{background:transparent;color:var(--text);border:1px solid var(--line2)}
.site-head .head-join:hover{border-color:rgba(var(--acc-rgb),.6)}
.site-head .head-signin{font-weight:600}
/* #4 mobile header: logo + Start selling + menu on row 1, full-width search on row 2 */
@media (max-width:700px){
  .site-head .head-auth{display:none}
  .site-head .shop-bar .wrap{display:grid;grid-template-columns:auto 1fr;gap:8px}
  .site-head .shop-bar .shop-btn .shop-s{display:none}
  .site-head .hsearch{min-width:0}
  .site-head .hsearch .hs-d{display:none}
}
/* #12 mobile breadcrumb: one scrolling line, no orphan separator */
@media (max-width:700px){
  .crumbs ol{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  .crumbs ol::-webkit-scrollbar{display:none}
  .crumbs li{flex:none}
}
/* #13 spotlight: inset the screenshot instead of clipping at the card edge */
.spot-slide{padding-right:48px}
.spot-stage{margin-right:0}
@media (max-width:900px){.spot-slide{padding-right:24px}}
/* #14 phone sticky buy bar */
.mbuy{display:none}
@media (max-width:700px){
  .mbuy{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surf);border-top:1px solid var(--line2);box-shadow:0 -8px 24px rgba(0,0,0,.12);transform:translateY(110%);transition:transform .2s ease}
  .mbuy.show{transform:none}
  .mbuy b{font-size:18px}
  .mbuy .btn{flex:1;max-width:220px}
}
.site-head .theme-toggle{border-radius:999px;height:36px}
/* #5 refined: category tag wins; the type tag drops out (wraps into the hidden 2nd line) when both don't fit */
.card .tags{height:24px;flex-wrap:wrap;row-gap:24px;overflow:hidden}
.card .tags .tag,.card .tags .tag:last-child{flex:0 1 auto;max-width:100%;line-height:18px}
/* Phone menu regression fix (QA 15 Oct): the open menu takes its own full-width row under the header bar */
@media (max-width:899px){
  .site-head>.wrap{flex-wrap:wrap}
  .site-head .mnav.open{flex:1 0 100%;width:100%;order:10;box-sizing:border-box;padding:8px 0 16px;max-height:calc(100vh - 140px);overflow-y:auto}
  .site-head .mnav .mnav-auth{display:flex;gap:16px;align-items:center;padding:8px 6px 16px}
  .site-head .mnav .mnav-auth a{border:0;padding:10px 6px}
  .site-head .mnav .mnav-auth .head-join{padding:10px 18px;border:1px solid var(--line2);border-radius:999px}
}
/* Cookie consent (draft) */
.cc{position:fixed;left:16px;right:16px;bottom:16px;z-index:200;display:flex;justify-content:center;pointer-events:none}
.cc-in{pointer-events:auto;max-width:720px;width:100%;background:var(--surf);color:var(--text);border:1px solid var(--line2);border-radius:16px;box-shadow:0 16px 48px rgba(15,23,42,.18);padding:16px 24px}
.cc-bar{display:flex;align-items:center;gap:16px}
.cc-bar p{margin:0;font-size:14px;flex:1}
.cc-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cc-eq{min-width:96px;justify-content:center}
.cc-set{font-size:14px;padding:8px}
.cc h2{font-size:18px;margin:0 0 12px}
.cc-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.cc-row p{margin:4px 0 0;font-size:14px;color:var(--mute)}
.cc-on{font-size:12px;color:var(--mute);white-space:nowrap}
.cc-switch{display:flex;gap:8px;align-items:center;font-size:14px;white-space:nowrap}
.cc-switch input{width:20px;height:20px}
.cc-in .cc-btns{margin-top:16px}
.cc-bar .cc-btns{margin-top:0}
.cc-note{margin:12px 0 0;font-size:14px}
.foot-cookie{font:inherit;color:inherit;padding:0;background:none;border:0;cursor:pointer;text-decoration:none}
.foot-cookie:hover{text-decoration:underline}
@media (max-width:700px){.cc{left:8px;right:8px;bottom:8px}.cc-bar{flex-direction:column;align-items:stretch}.cc-bar .cc-btns{display:grid;grid-template-columns:1fr 1fr;}.cc-set{grid-column:1/-1}}

/* live34 polish (16 Oct 2026, Jake live20 re-check) */
button,input,select,textarea{font-size:var(--fs-sm)}
.about-seller h3{margin:0 0 8px}
.pg-listing .crumbs{padding-bottom:0;margin-bottom:0}
.pg-listing .p-hero{padding-top:16px}
.pg-listing .p-details .at-glance{margin:0 0 16px}
.pg-listing .p-details .ticks{margin:0}
@media (min-width:980px){
  .pg-listing .p-hero{grid-template-columns:1.35fr 1fr;grid-template-areas:"media buy" "details buy";grid-template-rows:auto 1fr;row-gap:24px}
  .pg-listing .p-hero>.mg{grid-area:media}
  .pg-listing .p-hero>.buybox{grid-area:buy}
  .pg-listing .p-hero>.p-details{grid-area:details;align-self:start}
}
@media (max-width:700px){.pg-listing h2{font-size:24px;line-height:1.25}}
#faq .faq details p{max-width:65ch}
@media (max-width:700px){.hero h1{font-size:var(--fs-3xl)}}
