:root {
  --bg: #FBF8F3;
  --bg-2: #F4EFE7;
  --surface: #FFFFFF;
  --ink: #17151C;
  --muted: #5B5562;
  --line: #E6DFD4;
  --line-strong: #CFC6B8;
  --violet: #5B33D6;
  --violet-ink: #4524B0;
  --violet-soft: #EEE8FD;
  --lime: #C6F062;
  --lime-ink: #1A2208;
  --danger: #B42318;
  --ok: #1E7A4C;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 21, 28, .05), 0 6px 20px rgba(23, 21, 28, .05);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--violet);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding-block: clamp(28px, 4vw, 56px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--violet-ink); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.65rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.wordmark .dot, .wordmark .wm-my { color: var(--violet); }
.wordmark.small { font-size: 1.35rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-inline { display: none; gap: 4px; align-items: center; }
.nav-inline a, .nav-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-inline a:hover, .nav-inline a[aria-current="page"] { background: var(--violet-soft); color: var(--violet-ink); }
.nav-account { border: 1px solid var(--line-strong); }
.nav-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; }
.nav-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.nav-menu ul { position: absolute; right: 16px; top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; }
.nav-menu ul a { width: 100%; border-radius: 10px; }
@media (min-width: 1000px) { .nav-menu { display: none; } .nav-inline { display: flex; } }
.promo-bar { background: var(--ink); color: #fff; font-size: .9rem; padding: 7px 0; }
.promo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; text-align: center; }
.promo-bar span { font-weight: 600; }
.promo-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 14px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none; }
.promo-cta:hover { background: #b5e24a; color: var(--lime-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--violet); background: var(--violet); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--violet-ink); border-color: var(--violet-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-lime:hover { background: #b5e24a; border-color: #b5e24a; color: var(--lime-ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-ink); text-decoration: underline; cursor: pointer; min-height: 44px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* hero */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(16px, 3vw, 32px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.search { display: flex; gap: 8px; max-width: 560px; background: var(--surface); padding: 6px; border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); }
.search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 0 14px; min-height: 44px; }
.search input[type=search]:focus { outline: none; box-shadow: none; }
.search:focus-within { box-shadow: var(--focus); }
.stats { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); }
.stats strong { color: var(--ink); font-family: var(--display); font-size: 1.3rem; }
.hero-art { position: relative; min-height: 380px; }
.hero-shot { position: absolute; width: 78%; border-radius: 14px; box-shadow: 0 24px 60px rgba(23, 21, 28, .18); border: 1px solid var(--line); background: var(--surface); }
.hs0 { top: 0; right: 0; transform: rotate(2deg); }
.hs1 { top: 34%; left: 0; transform: rotate(-3deg); z-index: 1; }
.hs2 { bottom: -6%; right: 6%; width: 52%; transform: rotate(1deg); z-index: 2; }
@media (max-width: 899px) { .hero-art { display: none; } }

/* paths */
.paths { display: grid; gap: 20px; }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.path-request { border-top: 6px solid var(--violet); }
.path-sale { border-top: 6px solid var(--lime); }
.steps { padding-left: 1.3em; display: grid; gap: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.note-preview { font-size: .9rem; }

/* badges & chips */
.badge { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
.badge-request { background: var(--violet-soft); color: var(--violet-ink); border-color: #D6C9FA; }
.badge-sale { background: var(--lime); color: var(--lime-ink); border-color: #A9D63F; }
.badge-stage { background: var(--bg-2); }
.badge-sold { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-featured { background: var(--lime); color: var(--lime-ink); border: 0; }
.badge-lg { font-size: .85rem; padding: 5px 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); border: 1px dashed var(--line-strong); }
.declared-label { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }

/* grid & cards */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card:focus-within { box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.media-tag { position: absolute; left: 10px; bottom: 10px; font-size: .7rem; font-weight: 700; background: rgba(23, 21, 28, .82); color: #fff; padding: 3px 8px; border-radius: 6px; }
.media-sold { left: auto; right: 10px; top: 10px; bottom: auto; background: var(--ink); font-size: .8rem; }
.media-demo { left: auto; right: 10px; bottom: 10px; background: var(--lime); color: var(--lime-ink); }
.is-sold .card-media img { filter: grayscale(.6); opacity: .8; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-cat { font-size: .8rem; color: var(--muted); text-decoration: none; }
.card-title { font-size: 1.08rem; margin: 2px 0 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-title a:focus-visible { box-shadow: none; }
.card:has(.card-title a:focus-visible) { box-shadow: var(--focus); }
.card-text { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; position: relative; z-index: 1; }
.card-cta { font-weight: 600; font-size: .92rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.sold-note { font-family: var(--font); font-size: .85rem; color: var(--muted); font-weight: 600; }

/* heart */
.heart-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; position: relative; z-index: 1; }
.heart { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.heart:hover { border-color: var(--violet); }
.heart-icon { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill .2s ease, stroke .2s ease; }
.heart.is-liked { background: var(--violet-soft); border-color: #D6C9FA; color: var(--violet-ink); }
.heart.is-liked .heart-icon { fill: var(--violet); stroke: var(--violet); }
.heart.pop .heart-icon { animation: pop .35s ease; }
.heart[aria-busy="true"] { opacity: .7; }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.heart-lg .heart { min-height: 52px; padding: 0 18px; font-size: 1rem; }
.sample-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--lime); color: var(--lime-ink); padding: 2px 6px; border-radius: 6px; }

/* categories */
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.cat-pill:hover { border-color: var(--violet); color: var(--violet-ink); }
.cat-pill .n { font-size: .8rem; color: var(--muted); font-weight: 500; }
.cat-grid { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-card a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); }
.cat-card a:hover { border-color: var(--violet); }
.cat-card h2 { font-size: 1.2rem; }
.cat-card p { color: var(--muted); font-size: .95rem; }
.sell-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.sell-cta p { color: #D9D4E0; max-width: 60ch; }

/* explore */
.page-head { padding-bottom: 8px; }
.intro p { max-width: 75ch; color: var(--muted); }
.type-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.type-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.type-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters .field { margin: 0; min-width: 130px; flex: 1 1 130px; }
.filters .grow { flex: 3 1 240px; }
.filters .filter-submit { flex: 0 0 auto; min-width: 0; }
.result-count { font-weight: 600; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.pagination a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: var(--surface); }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; }

/* forms */
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
label, legend { font-weight: 600; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91, 51, 214, .2); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }
.field-error { color: var(--danger); font-weight: 600; font-size: .9rem; margin: 0; }
.form-errors { border: 2px solid var(--danger); background: #FDF1F0; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
.form-errors ul { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 6px 0; min-height: 32px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
fieldset.card-panel { border: 1px solid var(--line); }
legend { font-family: var(--display); font-size: 1.2rem; padding: 0 4px; }
.chip-field { margin-bottom: 16px; }
.chip-field legend { font-family: var(--font); font-size: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-input { position: relative; }
.chip-input input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip-input span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 500; }
.chip-input input:checked + span { background: var(--violet); color: #fff; border-color: var(--violet); }
.chip-input input:focus-visible + span { box-shadow: var(--focus); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.card-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.privacy-note { font-size: .88rem; color: var(--muted); }
.success { border: 2px solid var(--ok); }
.note { background: var(--violet-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; }
.test-banner, .test-mode-note { background: var(--lime); color: var(--lime-ink); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.preview-banner { background: var(--ink); color: #fff; padding: 10px 16px; text-align: center; }
.preview-banner a { color: var(--lime); }
.flash { padding: 12px 0; font-weight: 600; }
.flash-ok { background: #E8F6EE; color: #13502F; }
.flash-info { background: var(--violet-soft); color: var(--violet-ink); }
.flash-error { background: #FDF1F0; color: var(--danger); }
.fee-preview { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; }
.fee-preview dl, dl.summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 0 8px; }
dl.summary dd, .fee-preview dd { margin: 0; text-align: right; }
.img-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.img-edit { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start; }
.img-edit img { border-radius: 8px; border: 1px solid var(--line); }

/* detail pages */
.crumbs { padding-top: 20px; font-size: .9rem; color: var(--muted); }
.detail { padding-block: 16px 40px; }
.detail-head { max-width: 860px; }
.detail-labels { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0 24px; }
.concept-visual { margin: 0 0 32px; }
.visual-frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; max-width: 1100px; background: var(--bg-2); }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.visual-frame .media-tag { font-size: .8rem; left: 16px; bottom: 16px; padding: 5px 10px; }
.concept-visual figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.detail-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; } .detail-side { position: sticky; top: 88px; } }
.detail-main section { margin-bottom: 28px; }
.ticks, .dots { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.ticks li, .dots li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%231A2208' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.dots li::before { content: ""; position: absolute; left: 7px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.scope { background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px 16px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .88rem; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.gallery { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 8px; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.buy-box.sold { background: var(--bg-2); }
.price-lg { font-family: var(--display); font-weight: 800; font-size: 2.2rem; margin: 0; }
.sold-label { display: inline-block; background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.seller-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.seller-box h2 { font-size: 1.1rem; }
.report-link { font-size: .9rem; color: var(--muted); }
.approval-note { border-top: 1px solid var(--line); padding-top: 16px; }
.pre { white-space: pre-wrap; font: .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border-radius: var(--radius-sm); padding: 12px; margin: 0 0 12px; }
.status-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0 24px; }
.status-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; }
.events, .notes, ul.plain { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist { padding-left: 1.2em; }

/* tables & admin */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg); font-weight: 700; }
.row-bad td { background: #FDF6F5; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
.s-published, .s-won, .n-sent { background: #E3F4EA; color: #13502F; }
.s-pending, .s-new, .n-pending, .n-dev_outbox { background: #FFF4D6; color: #6B4B00; }
.s-changes_requested, .s-quoted, .s-contacted, .s-in_progress { background: var(--violet-soft); color: var(--violet-ink); }
.s-rejected, .s-suspended, .n-failed { background: #FDE8E6; color: var(--danger); }
.s-sold, .s-archived, .s-closed { background: var(--ink); color: #fff; }
.admin { display: grid; gap: 24px; padding-block: 24px 48px; }
@media (min-width: 960px) { .admin { grid-template-columns: 210px 1fr; } }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; align-content: start; }
@media (min-width: 960px) { .admin-nav { flex-direction: column; position: sticky; top: 88px; } }
.admin-nav a { min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.admin-nav a[aria-current="page"], .admin-nav a:hover { background: var(--violet-soft); color: var(--violet-ink); }
.admin-body { min-width: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.tile .n { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.tile-demo { background: var(--lime); color: var(--lime-ink); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.bulk-bar select { width: auto; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-visual img { border-radius: 12px; border: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input { width: auto; }
.inline-form .wide { flex: 1 1 260px; }
.inline-form .narrow { width: 80px; }
.inline { display: inline; }
.account-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.prose { max-width: 70ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0; margin-top: 40px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

.paypal-btn { background: #FFC439; border-color: #FFC439; color: #111; }
.paypal-btn:hover { background: #F2B52B; border-color: #F2B52B; color: #111; }
.card-media img, .visual-frame img { object-position: top center; }
.card-foot { flex-wrap: wrap; row-gap: 4px; }
.card-cta { white-space: nowrap; }

/* ---------- selling ---------- */
.h3 { font-size: 1.1rem; }
.nav-inline a.nav-sell, .nav-menu a.nav-sell { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.nav-inline a.nav-sell:hover, .nav-inline a.nav-sell[aria-current="page"] { background: #b5e24a; color: var(--lime-ink); }
@media (min-width: 1000px) { .paths-3 { grid-template-columns: repeat(3, 1fr); } }
.path-sell { border-top: 6px solid var(--ink); }
.badge-sell { background: var(--ink); color: #fff; border-color: var(--ink); }
.eyebrow-lime { color: var(--lime); }
.sell-points { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.sell-points li::before { content: "✓"; color: var(--violet); margin-right: 6px; font-weight: 800; }
.sell-points-dark li { color: #fff; } .sell-points-dark li::before { color: var(--lime); }
.sell-cta-sm { padding: clamp(20px, 3vw, 32px); }
.sell-cta-sm h2 { font-size: 1.3rem; }

.sell-hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding-block: clamp(32px, 6vw, 80px); }
.sell-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .sell-hero-grid { grid-template-columns: 1.3fr .9fr; } }
.sell-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.proceeds-card { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 60px rgba(23, 21, 28, .2); }
.proceeds-card .eyebrow { color: var(--lime); }
.proceeds-title { font-family: var(--display); font-size: 1.4rem; line-height: 1.25; }
.proceeds-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 12px; color: #D9D4E0; }
.proceeds-card dd { margin: 0; text-align: right; }
.proceeds-card .total { color: #fff; font-weight: 700; font-size: 1.25rem; border-top: 1px solid #3A3542; padding-top: 10px; }
.proceeds-card dd.total { color: var(--lime); }
.proceeds-card .hint { color: #B9B3C2; }
.step-tiles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 640px) { .step-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .step-tiles { grid-template-columns: repeat(3, 1fr); } }
.step-tiles li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-tiles .step-num::before { content: counter(st); }
.step-tiles p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-tiles small, .stepper small { font-family: var(--font); font-weight: 500; color: var(--muted); font-size: .75rem; }
.benefits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefits li { border-left: 4px solid var(--lime); padding: 4px 0 4px 16px; }
.benefits p { color: var(--muted); margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- step form ---------- */
.wizard-head { max-width: 760px; }
.wizard-head .lead { margin-bottom: 0; }
.stepper { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: none; }
.stepper .step > a, .stepper .step > span { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 600; padding: 4px 2px; border-radius: 10px; position: relative; }
.stepper .step > a:hover { color: var(--ink); background: var(--surface); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--muted); flex: none; }
.stepper .is-done .step-num { background: var(--violet); border-color: var(--violet); color: #fff; }
.stepper .is-current .step-num { background: var(--lime); border-color: var(--ink); color: var(--lime-ink); box-shadow: 0 0 0 4px rgba(198, 240, 98, .35); }
.stepper .is-current .step-label { color: var(--ink); }
.stepper .step-label small { display: block; }
@media (max-width: 699px) { .stepper .step-label { display: none; } .stepper .is-current .step-label { display: none; } }
.progress-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 24px; }
.progress-fill { display: block; height: 100%; background: var(--violet); border-radius: 999px; transition: width .3s ease; }
.progress-fill.p1 { width: 16.66%; } .progress-fill.p2 { width: 33.33%; } .progress-fill.p3 { width: 50%; } .progress-fill.p4 { width: 66.66%; } .progress-fill.p5 { width: 83.33%; } .progress-fill.p6 { width: 100%; }
.wizard-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .wizard-grid { grid-template-columns: minmax(0, 1fr) 340px; } .wizard-aside { position: sticky; top: 88px; } }
.wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.wizard-card .two-col, .card-panel .two-col { gap: 0 20px; }
.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-actions > :first-child { order: 3; margin-left: auto; }
.wizard-actions .link-btn { order: 2; }
@media (max-width: 559px) { .wizard-actions > :first-child { order: -1; width: 100%; margin-left: 0; } }
.wizard-preview .card { box-shadow: var(--shadow); }
.wizard-preview .card-title { overflow-wrap: anywhere; }
.has-error > .chip-row, .has-error .stage-grid, .dropzone.has-error { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 12px; }
fieldset.chip-field, fieldset.stage-field, fieldset.decl { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
fieldset.chip-field legend, fieldset.stage-field legend, fieldset.decl legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.stage-grid { display: grid; gap: 10px; margin-top: 6px; }
@media (min-width: 560px) { .stage-grid { grid-template-columns: 1fr 1fr; } }
.stage-card { position: relative; display: block; cursor: pointer; }
.stage-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.stage-card > span { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); height: 100%; }
.stage-card small { color: var(--muted); font-size: .85rem; }
.stage-card input:checked + span { border-color: var(--violet); background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet); }
.stage-card input:focus-visible + span { box-shadow: var(--focus); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 18px; padding: 22px; background: var(--bg); display: grid; gap: 8px; justify-items: start; margin-bottom: 20px; }
.dropzone label { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; cursor: pointer; }
.dz-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; }
.dropzone input[type="file"] { max-width: 100%; }
.shot-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shot { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-cover { position: absolute; top: 8px; left: 8px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.shot-meta { padding: 10px 12px 4px; }
.shot-meta .field { margin-bottom: 4px; }
.shot-meta label { font-size: .85rem; }
.more-fields { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.more-fields summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: 6px; }
.more-fields[open] summary { margin-bottom: 12px; }
.profile-pitch { background: var(--violet-soft); border-radius: 16px; padding: 16px 18px; margin-bottom: 20px; }
.profile-pitch .ticks { margin: 0 0 8px; }
.avatar-field { display: flex; gap: 16px; align-items: flex-start; }
.avatar-field .field { flex: 1; }
.review-grid { display: grid; gap: 12px; margin-bottom: 24px; }
.review-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.review-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-card h2 { font-size: 1rem; display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font); }
.review-card .step-num { width: 26px; height: 26px; font-size: .8rem; background: var(--violet); border-color: var(--violet); color: #fff; }
.review-card.has-error { border-color: var(--danger); background: #FFF8F7; }
.review-card.has-error .step-num { background: var(--danger); border-color: var(--danger); }
.review-card p { margin: 0 0 4px; }
.review-problems { color: var(--danger); font-weight: 600; font-size: .9rem; margin: 0 0 6px; padding-left: 1.2em; }
.review-thumbs { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.review-thumbs img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.timeline li { padding-left: 30px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.timeline li.is-done { color: var(--ink); font-weight: 600; } .timeline li.is-done::before { background: var(--ok); border-color: var(--ok); }
.nudges { list-style: none; padding: 0; display: grid; gap: 10px; }
.nudges li { background: var(--violet-soft); border-radius: 12px; padding: 12px 16px; }
.my-listings { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.my-listing { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.my-thumb { aspect-ratio: 16 / 10; background: var(--bg-2); border-radius: 10px; overflow: hidden; }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.my-main h2 { margin: 0 0 4px; } .my-main p { margin: 0; }
.my-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (min-width: 760px) { .my-listing { grid-template-columns: 140px 1fr auto; } .my-actions { grid-column: auto; justify-content: flex-end; } }

/* ---------- profiles ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--violet-soft); color: var(--violet-ink); font-family: var(--display); font-weight: 800; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.avatar-sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar-md { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.6rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.4rem; }
.seller-mini { display: flex; gap: 10px; align-items: center; margin-top: 10px; line-height: 1.35; }
.seller-bio { margin: 12px 0 8px; color: var(--muted); }
.seller-box .chips { margin-bottom: 8px; }
.profile-hero { display: grid; gap: 28px; }
@media (min-width: 900px) { .profile-hero { grid-template-columns: 1fr 1fr; align-items: start; } }
.profile-card { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.profile-id { flex: 1 1 260px; }
.profile-id h1 { margin-bottom: .2em; }
.profile-facts { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .92rem; }
.profile-about { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.seller-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.seller-tile { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.seller-tile:hover { border-color: var(--ink); color: var(--ink); }
.seller-tile > span { display: grid; gap: 2px; line-height: 1.35; }

/* "Buy, get or sell an app" cards end in a full button, aligned across cards. */
.paths-3 .path { display: flex; flex-direction: column; align-items: flex-start; }
.paths-3 .path p { flex: 1; }
.paths .path > .badge { margin-bottom: 14px; }
.path-cta { margin-top: 4px; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; border-color: #000; color: #fff; }
@media (max-width: 559px) { .path-cta { width: 100%; } }

/* Listing flow: senior-developer note only when that chip is chosen; declarations "confirm all". */
.wizard-card .senior-field:not(.is-open) { display: none; }
.wizard-card:has(input[name="builder"][value="senior"]:checked) .senior-field { display: block; }
.decl-all { background: var(--violet-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.decl-list { padding-left: 14px; border-left: 2px solid var(--line); margin-bottom: 10px; }

/* "Free to sign up / Free to list" */
.free-badges { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.free-badges li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
.free-badges li::before { content: "✓"; font-weight: 800; }
.narrow .free-badges { margin: 0 0 16px; }
.free-callout { background: var(--lime); color: var(--lime-ink); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }
.free-callout p { margin: 0 0 4px; }
.free-callout .link-arrow { color: var(--lime-ink); font-weight: 700; }
.footer-free { font-weight: 700; margin: 10px 0 4px; }

/* Ad spots: clearly labelled, reserved height to avoid layout jumps. */
.ad-slot { margin: 24px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-label { margin: 0 0 6px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
ins.adsbygoogle { display: block; min-height: 100px; }
.ad-box { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-weight: 600; background: var(--bg-2); }

/* Home search, at the top of "Popular app ideas". */
.search-wide { max-width: none; margin-bottom: 28px; align-items: center; padding-left: 16px; }
.search-icon { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.search-wide input[type=search] { padding-left: 8px; font-size: 1.05rem; min-height: 50px; }

/* "Free to sign up / Free to list": quiet text with checks, so it doesn't compete with the lime button. */
.free-badges { gap: 6px 18px; margin-top: 18px; }
.free-badges li { background: none; padding: 0; border-radius: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.free-badges li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%234524B0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Home hero: a small looping "your app sells, you get paid" animation. Base styles are the end state, so reduced motion shows it still. */
.sale-anim { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; max-width: 560px; }
.sa-card, .sa-pay { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 9px 14px 9px 9px; box-shadow: var(--shadow); min-width: 0; }
.sa-card { flex: 1 1 auto; }
.sa-pay { flex: 0 0 auto; border-color: #A9D63F; }
.sa-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--violet); flex: none; }
.sa-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sa-icon-lime { background: var(--lime); } .sa-icon-lime svg { stroke: var(--lime-ink); stroke-width: 3; }
.sa-text { display: grid; line-height: 1.2; min-width: 0; }
.sa-text b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sa-amount { font-family: var(--display); font-size: 1.05rem !important; color: var(--ok); }
.sa-stamp { position: absolute; top: -10px; left: -8px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; transform: rotate(-8deg); }
.sa-track { position: relative; flex: 0 0 56px; height: 24px; }
.sa-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line-strong); }
.sa-coin { position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-size: .72rem; font-weight: 800; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .sa-card { animation: sa-card 6s ease-in-out infinite; }
  .sa-stamp { animation: sa-stamp 6s ease-out infinite; }
  .sa-coin { animation: sa-coin 6s ease-in-out infinite; }
  .sa-coin.c2 { animation-delay: .18s; } .sa-coin.c3 { animation-delay: .36s; }
  .sa-pay { animation: sa-pay 6s ease-out infinite; }
  .sa-amount { animation: sa-amount 6s ease-out infinite; }
}
@keyframes sa-card { 0%, 100% { transform: none; } 22% { transform: none; } 26% { transform: scale(1.03); } 30% { transform: none; } }
@keyframes sa-stamp { 0%, 22% { opacity: 0; transform: rotate(-8deg) scale(2.2); } 28% { opacity: 1; transform: rotate(-8deg) scale(.9); } 32%, 90% { opacity: 1; transform: rotate(-8deg) scale(1); } 97%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }
@keyframes sa-coin { 0%, 32% { opacity: 0; left: 0; } 36% { opacity: 1; } 52% { opacity: 1; left: calc(100% - 22px); } 56%, 100% { opacity: 0; left: calc(100% - 22px); } }
@keyframes sa-pay { 0%, 50% { opacity: .35; transform: translateY(6px); } 58% { opacity: 1; transform: translateY(-3px); } 62%, 92% { opacity: 1; transform: none; } 100% { opacity: .35; transform: translateY(6px); } }
@keyframes sa-amount { 0%, 54% { opacity: 0; } 60%, 92% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 559px) {
  .sale-anim { gap: 6px; margin: 2px 0 14px; }
  .sa-track { flex-basis: 20px; }
  .sa-card, .sa-pay { padding: 7px 10px 7px 7px; gap: 8px; border-radius: 14px; }
  .sa-icon { width: 30px; height: 30px; border-radius: 9px; } .sa-icon svg { width: 16px; height: 16px; }
  .sa-text b { font-size: .82rem; } .sa-text small { font-size: .7rem; }
  .sa-amount { font-size: .9rem !important; }
}

/* "Buy, get or sell an app" cards: each has its own little story between the text and the button. */
.path .sale-anim { margin: 4px 0 18px; width: 100%; gap: 6px; }
.path .sa-card, .path .sa-pay { padding: 7px 10px 7px 7px; gap: 8px; border-radius: 14px; box-shadow: none; }
.path .sa-icon { width: 30px; height: 30px; border-radius: 9px; } .path .sa-icon svg { width: 16px; height: 16px; }
.path .sa-text b { font-size: .8rem; } .path .sa-text small { font-size: .68rem; }
.path .sa-amount { font-size: .88rem !important; }
.path .sa-track { flex-basis: 20px; }
.path .sa-stamp { font-size: .62rem; padding: 2px 7px; }
.buy-anim .sa-coin { width: auto; padding: 0 4px; border-radius: 6px; background: var(--violet); color: #fff; font-size: .55rem; height: 18px; top: 3px; }
.buy-anim .sa-amount { color: var(--violet-ink); }
@media (prefers-reduced-motion: no-preference) {
  /* The two stories take turns. */
      .sell-anim .sa-card, .sell-anim .sa-stamp, .sell-anim .sa-pay, .sell-anim .sa-amount, .sell-anim .sa-coin { animation-delay: -3s; }
  .sell-anim .sa-coin.c2 { animation-delay: -2.82s; } .sell-anim .sa-coin.c3 { animation-delay: -2.64s; }
}

/* "Buy, get or sell an app": short, scannable cards of equal shape. */
.section-intro { margin-bottom: 20px; } .section-intro h2 { margin-bottom: 4px; } .section-intro p { margin: 0; }
@media (min-width: 760px) and (max-width: 999px) { .paths-3 { grid-template-columns: 1fr; max-width: 560px; } }
.paths-3 .path { padding: clamp(18px, 2.4vw, 26px); }
.paths-3 .path h3 { font-size: 1.25rem; margin-bottom: 4px; }
.paths-3 .path > p { flex: 0 0 auto; margin-bottom: 10px; color: var(--muted); }
.path-points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; flex: 1; align-content: start; font-size: .92rem; font-weight: 500; }
.path-points li { display: flex; gap: 8px; align-items: baseline; }
.path-points li::before { content: "✓"; font-weight: 800; color: var(--violet); flex: none; }
.path-sale .path-points li::before { color: #5C7F12; } .path-sell .path-points li::before { color: var(--ink); }
.paths-3 .path .sale-anim { background: var(--bg); border-radius: 16px; padding: 14px 10px 10px; margin: 0 0 16px; }
.paths-3 .path .path-cta { width: 100%; margin-top: 0; }
.path .sa-pay { flex: 0 1 auto; min-width: 0; }
.path .sa-text small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 559px) {
  .paths-3 .path .sale-anim { padding: 12px 6px 8px; gap: 4px; }
  .paths-3 .path .sa-track { flex-basis: 14px; }
  .paths-3 .path .sa-card, .paths-3 .path .sa-pay { padding: 6px 8px 6px 6px; gap: 6px; }
}

/* Two cards side by side from tablet width up. */
@media (min-width: 760px) { .paths-3.paths-2 { grid-template-columns: 1fr 1fr; max-width: none; } }
.paths-2 .sale-anim { justify-content: center; }
.paths-2 .sa-card { flex: 0 1 auto; }
@media (min-width: 760px) { .paths-2 .sa-track { flex-basis: 64px; } }

.api-key { display: block; padding: 10px 12px; background: var(--bg-2); border-radius: 8px; font-size: .95rem; word-break: break-all; user-select: all; }

/* Admin: sign-ups per day (bar height classes h0–h10, since inline styles are blocked by the CSP). */
.signup-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 8px; margin: 0 0 28px; }
.signup-chart figcaption { font-weight: 600; margin-bottom: 10px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 140px; }
.bars li { position: relative; background: var(--violet); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars li.h0 { background: var(--line); }
.bars b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); padding-bottom: 2px; }
.bars .h1 { height: 10%; } .bars .h2 { height: 20%; } .bars .h3 { height: 30%; } .bars .h4 { height: 40%; } .bars .h5 { height: 50%; }
.bars .h6 { height: 60%; } .bars .h7 { height: 70%; } .bars .h8 { height: 80%; } .bars .h9 { height: 85%; } .bars .h10 { height: 88%; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin: 6px 0 0; }

/* Compact marketplace / ideas search. Advanced filters start collapsed. */
.catalog-search { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 8px; }
.catalog-search-row { display: flex; gap: 16px; align-items: center; }
.catalog-search-row input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 42px; border: 0; background: transparent; padding: 8px 12px; }
.catalog-search-row .btn { flex: 0 0 auto; min-height: 42px; }
.catalog-search-row .catalog-filter-toggle { margin-left: 6px; border: 1px solid var(--line); }
.catalog-filter-options { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; border-top: 1px solid var(--line); padding: 14px 8px 6px; margin-top: 8px; }
.catalog-filter-options[hidden] { display: none; }
.catalog-filter-options .field { margin: 0; flex: 1 1 160px; min-width: 140px; }
.catalog-filter-options .filter-submit { flex: 0 0 auto; display: flex; gap: 8px; }
@media (max-width: 540px) { .catalog-search-row { gap: 10px; flex-wrap: wrap; } .catalog-search-row input[type="search"] { flex: 1 1 100%; border-bottom: 1px solid var(--line); } .catalog-search-row .btn { padding: 8px 14px; font-size: .875rem; } .catalog-search-row .catalog-filter-toggle { margin-left: auto; } .catalog-filter-options .field { flex-basis: 100%; } }
