/* ============================================================
   Atölye — PHP Theme Marketplace · Homepage
   Vanilla CSS. No build step. Self-hosted fonts.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
    unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "InterVar";
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
    font-family: "InterVar";
    src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The `hidden` attribute must always win — component rules like
   `.tsearch__panel { display: grid }` would otherwise re-show a
   closed panel. JS toggles visibility via the attribute, never inline style. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 3px; }

/* ---------- Tokens ---------- */
:root {
    --bg:        #0c0c0e;
    --bg-1:      #101013;
    --bg-2:      #17171b;
    --surface:   #1b1b20;
    --surface-2: #222228;
    --line:      color-mix(in srgb, #ffffff 9%, transparent);
    --line-2:    color-mix(in srgb, #ffffff 15%, transparent);
    --text:      #f3f2ee;
    --text-1:    #b7b6bd;
    --text-2:    #85848d;
    /* Global Public Site Canonical Design pass: the site accent is now
       violet, matching /temalar's own real, verified gradient exactly
       (#a98bff is the same hex already used dark-mode-side by --violet
       below — reused here rather than inventing a second dark violet).
       Was lime (#c7f94b) — see git history if that's ever needed again. */
    --accent:    #a98bff;
    --accent-ink:#12140a;
    --coral:     #ff6a45;
    --violet:    #a98bff;

    --font-display: "Bricolage Grotesque", "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-sans: "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

    /* 1152px / flat 24px gutter: matches /temalar's real container
       (Tailwind max-w-6xl) and horizontal padding (px-6) exactly — was
       1240px / a fluid clamp(1.25rem,5vw,4rem) gutter. */
    --maxw: 1152px;
    --gutter: 1.5rem;
    --radius: 14px;
    /* 16px: matches /temalar's real card radius (rounded-2xl) — was 22px/30px. */
    --radius-lg: 16px;
    --radius-xl: 16px;

    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.5);
    --shadow-2: 0 30px 80px -30px rgba(0,0,0,.7), 0 8px 30px -12px rgba(0,0,0,.5);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --dur-micro: .18s;
    --dur-ui: .38s;
    --dur-section: .7s;

    --hero-glow-1: color-mix(in srgb, var(--violet) 14%, transparent);
    --hero-glow-2: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ---------- Light theme — header toggle (cookie) OR system preference ---------- */
:root[data-theme="light"] {
    --bg: #ffffff; --bg-1: #f7f7f4; --bg-2: #eeeeea;
    --surface: #ffffff; --surface-2: #f4f4f0;
    --line: color-mix(in srgb, #0c0c0e 12%, transparent);
    --line-2: color-mix(in srgb, #0c0c0e 20%, transparent);
    --text: #14140f; --text-1: #45443d; --text-2: #605f57;
    --accent: #6237e0; --accent-ink: #ffffff; --coral: #cf4a2c; --violet: #6237e0;
    --shadow-1: 0 1px 2px rgba(17,17,15,.05), 0 10px 30px -16px rgba(17,17,15,.16);
    --shadow-2: 0 30px 80px -34px rgba(17,17,15,.20), 0 8px 24px -14px rgba(17,17,15,.10);
    --hero-glow-1: color-mix(in srgb, var(--violet) 7%, transparent);
    --hero-glow-2: color-mix(in srgb, var(--accent) 8%, transparent);
    color-scheme: light;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #ffffff; --bg-1: #f7f7f4; --bg-2: #eeeeea;
        --surface: #ffffff; --surface-2: #f4f4f0;
        --line: color-mix(in srgb, #0c0c0e 12%, transparent);
        --line-2: color-mix(in srgb, #0c0c0e 20%, transparent);
        --text: #14140f; --text-1: #45443d; --text-2: #605f57;
        --accent: #6237e0; --accent-ink: #ffffff; --coral: #cf4a2c; --violet: #6237e0;
        --shadow-1: 0 1px 2px rgba(17,17,15,.05), 0 10px 30px -16px rgba(17,17,15,.16);
        --shadow-2: 0 30px 80px -34px rgba(17,17,15,.20), 0 8px 24px -14px rgba(17,17,15,.10);
        --hero-glow-1: color-mix(in srgb, var(--violet) 7%, transparent);
        --hero-glow-2: color-mix(in srgb, var(--accent) 8%, transparent);
        color-scheme: light;
    }
}

/* ---------- Base ---------- */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    font-feature-settings: "cv05", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(1000px 600px at 82% -8%, var(--hero-glow-1), transparent 60%),
        radial-gradient(900px 500px at -10% 8%, var(--hero-glow-2), transparent 55%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; font-optical-sizing: auto; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
    position: fixed; top: -100px; left: 16px; z-index: 999;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 14px; }

/* ---------- Primitives ---------- */
.section {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: clamp(3.5rem, 7vw, 6.25rem) var(--gutter);
    position: relative;
}
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.15rem); max-width: 16ch; }
.section__head--center .section__title { max-width: 20ch; }
.section__intro { color: var(--text-1); max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.section__head--center .section__intro { max-width: 52ch; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-1); margin-bottom: 1.15rem;
}
.eyebrow__pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 560; font-family: var(--font-sans);
    padding: .8rem 1.3rem; border-radius: 999px;
    border: 1px solid transparent; white-space: nowrap;
    transition: transform var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #7c5cfa; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: var(--text-2); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: var(--text-1); }
.btn--sm { padding: .58rem .95rem; font-size: .9rem; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -0.01em; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; }

/* ============================================================
   Navbar — canonical structure/measurements mirror the real
   Next.js MarketplaceHeader (web/src/app/(marketplace)/_components/
   MarketplaceHeader.tsx, the /temalar + /ozellikler reference).
   PUBLIC HEADER / FOOTER HARD CANONICALIZATION pass: this used to
   be a fixed floating pill nav with its own dark-first token set;
   it is now the same sticky full-width bar, pinned to the light
   token set the same way `.band--light` already pins the hero —
   the canonical header has no dark variant to switch to.
   ============================================================ */
.nav {
    --bg: #ffffff; --bg-1: #ffffff; --bg-2: #eeeeea;
    --surface: #ffffff; --surface-2: #f4f4f0;
    --line: #e5e5e5; --line-2: #e5e5e5;
    --text: #171717; --text-1: #525252; --text-2: #a3a3a3;
    --accent: #6237e0; --accent-ink: #ffffff; --violet: #6237e0;
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav__inner {
    width: 100%; max-width: var(--maxw); height: 64px;
    margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-inline: var(--gutter);
}
.nav__logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-family: var(--font-display); flex: none; }
.nav__mark { color: #7c5cfa; }
.nav__wordmark { font-weight: 600; font-size: 1rem; letter-spacing: normal; }
.nav__dot { color: #7c5cfa; }
.nav__links { display: none; align-items: center; gap: 1.25rem; font-size: .875rem; font-weight: 500; }
@media (min-width: 1280px) { .nav__links { display: flex; } }
.nav__links a {
    color: var(--text-1);
    transition: color var(--dur-micro) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--violet); font-weight: 600; }
/* AI Site Oluştur — the platform's primary product, visually distinguished
   from its plain-text neighbours (real --violet token, resolved against
   the light values pinned on `.nav`/`.footer` above). Used in both
   `.nav__links` (desktop) and `.nav__drawer` (mobile) — both ancestor
   selectors are repeated so this reliably out-specificities each context's
   own base/hover rule regardless of source order, without !important. */
.nav__links a.nav__ai, .nav__drawer a.nav__ai {
    display: inline-flex; align-items: center; gap: .375rem; color: var(--violet); font-weight: 600;
}
.nav__links a.nav__ai:hover, .nav__drawer a.nav__ai:hover { color: #7c5cfa; }
.nav__ai .pi { width: .95em; height: .95em; }
.nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
@media (min-width: 640px) { .nav__actions { gap: .75rem; } }
.nav__login { display: none; font-size: .875rem; font-weight: 500; color: var(--text-1); transition: color var(--dur-micro) var(--ease); }
@media (min-width: 1024px) { .nav__login { display: inline-block; } }
.nav__login:hover { color: var(--text); }
.nav__burger {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--text-1); background: transparent;
}
@media (min-width: 1280px) { .nav__burger { display: none; } }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform var(--dur-ui) var(--ease), opacity var(--dur-micro); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { bottom: 17px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Primary CTA — deliberately its own class, not `.btn--primary`: the
   canonical header's CTA is a fixed violet-gradient pill regardless of
   `.btn--primary`'s own (unrelated, site-wide) shape/colour, so this
   can't just reuse that class without also changing every other
   `.btn--primary` on the site — out of scope for a header/footer pass. */
.nav__cta {
    display: none; align-items: center; gap: .375rem;
    border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #7c5cfa, #6237e0);
    transition: filter var(--dur-micro) var(--ease);
}
.nav__cta:hover { filter: brightness(1.1); }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

.nav__drawer { display: none; flex-direction: column; gap: .25rem; border-top: 1px solid var(--line); background: #fff; padding: 1rem var(--gutter); }
.nav__drawer[hidden] { display: none; }
.nav__drawer:not([hidden]) { display: flex; }
@media (min-width: 1280px) { .nav__drawer { display: none !important; } }
.nav__drawer a { padding: .6rem 0; color: var(--text-1); font-size: .875rem; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.nav__drawer a:hover { color: var(--text); }
.nav__drawer hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.nav__drawer .nav__cta { display: inline-flex; justify-content: center; margin-top: 4px; }

/* Özellikler mega-menu — desktop dropdown ---------------------- */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .875rem; font-weight: 500; color: var(--text-1);
    background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit;
    transition: color var(--dur-micro) var(--ease);
}
.nav__dropdown-trigger:hover { color: var(--text); }
.nav__dropdown-trigger.is-active { color: var(--violet); font-weight: 600; }
.nav__chevron { transition: transform var(--dur-micro) var(--ease); }
.nav__dropdown-trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.nav__megamenu {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
    width: 640px; max-width: 90vw;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: 0 20px 40px -8px rgba(23,23,23,.12); z-index: 50;
}
/* Bridges the 12px gap above (the `top` offset) so it stays part of this
   element's hoverable/hit-testable box — otherwise the mouse transits a
   dead zone between the trigger and the panel and `.nav__dropdown`'s
   mouseleave (app.js) fires before the panel is ever reached. */
.nav__megamenu::before {
    content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav__megamenu[hidden] { display: none; }
.nav__megamenu-col h3 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); margin-bottom: .75rem; }
.nav__megamenu-col a { display: flex; align-items: flex-start; gap: .625rem; padding: .375rem .5rem; margin-inline: -.5rem; border-radius: 8px; }
.nav__megamenu-col a:hover { background: #fafafa; }
.nav__megamenu-icon { color: #7c5cfa; flex: none; margin-top: .1rem; }
.nav__megamenu-body { display: block; min-width: 0; }
.nav__megamenu-title { display: block; font-size: .875rem; font-weight: 500; color: var(--text); }
.nav__megamenu-col a:hover .nav__megamenu-title { color: var(--violet); }
.nav__megamenu-desc { display: block; font-size: .75rem; line-height: 1.35; color: var(--text-2); margin-top: .1rem; }
.nav__megamenu-all {
    grid-column: 1 / -1; margin: .25rem -1.5rem -1.5rem; padding: .75rem 1.5rem;
    border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: #fafafa;
    font-size: .875rem; font-weight: 500; color: var(--violet); text-align: right;
}
.nav__megamenu-all:hover { color: #7c5cfa; }

/* Özellikler mega-menu — mobile drawer accordion ---------------- */
.nav__drawer-accordion-trigger {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px;
    padding: .6rem 0; color: var(--text-1); font-size: .875rem; font-weight: 500;
    background: transparent; border: 0; cursor: pointer; font: inherit; text-align: left;
}
.nav__drawer-accordion-trigger:hover { color: var(--text); }
.nav__drawer-accordion-trigger.is-active { color: var(--violet); font-weight: 600; }
.nav__drawer-accordion-trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.nav__drawer-accordion-panel { display: flex; flex-direction: column; gap: 1rem; padding: .25rem 0 .5rem 1rem; }
.nav__drawer-accordion-panel[hidden] { display: none; }
.nav__drawer-accordion-panel .nav__megamenu-col a { padding: .35rem .5rem; }
.nav__drawer-accordion-panel .nav__megamenu-all { grid-column: auto; border-top: 0; margin: 0; padding: 0; background: transparent; text-align: left; display: block; }

/* ============================================================
   Viewport frames + Minisite
   ============================================================ */
.viewport {
    position: relative; width: 100%; max-width: 100%;
    display: flex; flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2);
    overflow: hidden;
    margin-inline: auto;
    transition: max-width var(--dur-ui) var(--ease);
}
.viewport__chrome {
    flex: none;
    display: flex; align-items: center; gap: 6px;
    padding: 9px 14px; background: var(--bg-1); border-bottom: 1px solid var(--line);
}
.viewport__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.viewport__dot:nth-child(1) { background: #ff5f57; }
.viewport__dot:nth-child(2) { background: #febc2e; }
.viewport__dot:nth-child(3) { background: #28c840; }
.viewport__url {
    margin-left: 10px; font-size: .72rem; color: var(--text-2);
    background: var(--surface); border-radius: 6px; padding: 3px 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.viewport__canvas {
    flex: 1; min-height: 0; width: 100%;
    overflow: hidden;
    background: var(--m-bg, #101014);
    container-type: inline-size;
    container-name: minisite;
}
.viewport__canvas > .minisite { height: 100%; overflow: hidden; }
/* Real demo screenshot inside a viewport frame — top-anchored so the theme's
   header + hero read first. */
.viewport__canvas > .theme-shot,
.viewport__canvas > img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.viewport--phone .viewport__canvas > .theme-shot,
.viewport--phone .viewport__canvas > img { object-fit: cover; object-position: top center; }
.theme-shot { display: block; }
.viewport__glow { position: absolute; inset: auto -20% -30% -20%; height: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); filter: blur(24px); z-index: -1; pointer-events: none; }
/* Narrow screens: keep the decorative glow inside the viewport width so it
   never widens the document (the -20% side bleed has nothing to clip it). */
@media (max-width: 700px) { .viewport__glow { inset: auto 0 -24% 0; } }

/* device sizes — the whole frame resizes, minisite reflows via @container */
.viewport[data-device="tablet"] { max-width: 600px; }
.viewport[data-device="mobile"] { max-width: 330px; border-radius: var(--radius-xl); }
.viewport[data-device="mobile"] .viewport__chrome { justify-content: center; }
.viewport[data-device="mobile"] .viewport__url { max-width: 55%; }

.viewport--phone { max-width: 300px; padding: 10px; background: #16161a; border-radius: 34px; }
.viewport--phone .viewport__chrome { display: none; }
.viewport--phone .viewport__canvas { border-radius: 24px; }
.viewport--phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 46px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.16); z-index: 2; }
.viewport--bare { box-shadow: none; border-radius: 0; border: 0; }

/* Standalone viewports get a definite aspect so the minisite clips cleanly */
.featured__browser .viewport { aspect-ratio: 16 / 10.5; }
.featured__phone .viewport--phone { aspect-ratio: 42 / 86; }
.collection__lead-media .viewport { aspect-ratio: 16 / 10; }
.minicard__media .viewport,
.tcard__preview .viewport { height: 100%; }

/* ---- minisite ---- */
.minisite {
    --pad: 4.2cqi;
    background: var(--m-bg);
    color: var(--m-ink);
    font-family: var(--font-sans);
    font-size: 1.9cqi;
    line-height: 1.5;
    text-align: left;
    display: flex; flex-direction: column;
    min-height: 100%;
}
.ms-bar {
    display: flex; align-items: center; gap: 2.4cqi;
    padding: 2.3cqi var(--pad);
    border-bottom: 1px solid color-mix(in srgb, var(--m-ink) 12%, transparent);
}
.ms-brand { font-family: var(--font-display); font-weight: 640; font-size: 2.5cqi; letter-spacing: -0.02em; }
.ms-nav { display: flex; gap: 2.6cqi; margin-left: auto; color: var(--m-muted); font-size: 1.75cqi; }
.ms-nav span:nth-child(n+5) { display: none; }
.ms-pill { padding: 1cqi 2.2cqi; border-radius: 999px; background: var(--m-accent); color: var(--m-bg); font-weight: 600; font-size: 1.7cqi; white-space: nowrap; }

.ms-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5cqi; padding: 5cqi var(--pad) 4.5cqi; align-items: center; }
.ms-eyebrow { font-size: 1.5cqi; text-transform: uppercase; letter-spacing: .16em; color: var(--m-accent); font-weight: 700; }
.ms-headline { font-family: var(--font-display); font-size: 4.3cqi; line-height: 1.08; margin: 1.6cqi 0 1.4cqi; letter-spacing: -0.02em; }
.ms-sub { color: var(--m-muted); font-size: 1.9cqi; max-width: 32ch; }
.ms-actions { display: flex; gap: 1.6cqi; margin-top: 2.6cqi; }
.ms-btn { padding: 1.4cqi 3cqi; border-radius: 999px; font-size: 1.75cqi; font-weight: 600; }
.ms-btn--solid { background: var(--m-accent); color: var(--m-bg); }
.ms-btn--ghost { border: 1px solid color-mix(in srgb, var(--m-ink) 26%, transparent); color: var(--m-ink); }
.ms-hero__media { position: relative; aspect-ratio: 1 / 1; }
.ms-media-a, .ms-media-b, .ms-media-c { position: absolute; border-radius: 2.4cqi; }
.ms-media-a { inset: 0 16% 24% 0; background: linear-gradient(140deg, var(--m-accent), color-mix(in srgb, var(--m-accent) 18%, var(--m-surface))); }
.ms-media-b { inset: 32% 0 0 36%; background: var(--m-surface); border: 1px solid color-mix(in srgb, var(--m-ink) 14%, transparent); }
.ms-media-c { width: 24%; aspect-ratio: 1; right: 6%; bottom: 4%; border-radius: 50%; background: var(--m-accent2); }

.ms-band { padding: 3.5cqi var(--pad) 4cqi; display: grid; gap: 2.2cqi; }
.ms-band--stats { grid-template-columns: repeat(3, 1fr); }
.ms-stat { background: var(--m-surface); border: 1px solid color-mix(in srgb, var(--m-ink) 10%, transparent); border-radius: 2cqi; padding: 2.4cqi; font-size: 1.7cqi; color: var(--m-muted); }
.ms-band--products { grid-template-columns: repeat(4, 1fr); }
.ms-product__img { aspect-ratio: 3 / 4; border-radius: 1.6cqi; background: linear-gradient(160deg, var(--m-surface), color-mix(in srgb, var(--m-accent) 16%, var(--m-surface))); margin-bottom: 1cqi; }
.ms-product__name { display: block; font-size: 1.6cqi; }
.ms-product__price { display: block; font-size: 1.7cqi; font-weight: 700; color: var(--m-accent); }
.ms-band--work { grid-template-columns: repeat(3, 1fr); }
.ms-work__img { aspect-ratio: 4 / 3; border-radius: 1.8cqi; background: linear-gradient(150deg, color-mix(in srgb, var(--m-accent) 38%, var(--m-surface)), var(--m-surface)); margin-bottom: 1.1cqi; }
.ms-work__label { font-size: 1.6cqi; color: var(--m-muted); }
.ms-band--articles { grid-template-columns: repeat(3, 1fr); }
.ms-article { border-top: 1.5px solid var(--m-accent); padding-top: 1.6cqi; display: flex; flex-direction: column; gap: .8cqi; }
.ms-article__kicker { font-size: 1.35cqi; text-transform: uppercase; letter-spacing: .12em; color: var(--m-accent); }
.ms-article__title { font-family: var(--font-display); font-size: 2.3cqi; line-height: 1.15; }
.ms-article__meta { font-size: 1.4cqi; color: var(--m-muted); }
.ms-band--menu { grid-template-columns: 1fr; gap: 1.8cqi; }
.ms-dish { display: flex; align-items: baseline; gap: 1.5cqi; font-size: 1.95cqi; }
.ms-dish__dots { flex: 1; border-bottom: 1.2px dotted color-mix(in srgb, var(--m-ink) 30%, transparent); }
.ms-dish__price { color: var(--m-accent); font-weight: 700; }

.ms-foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 2.4cqi var(--pad); border-top: 1px solid color-mix(in srgb, var(--m-ink) 12%, transparent);
    font-size: 1.5cqi; color: var(--m-muted); font-family: var(--font-display);
}

/* container reflow for tablet/phone widths */
@container minisite (max-width: 480px) {
    .ms-hero { grid-template-columns: 1fr; padding-block: 4cqi; }
    .ms-hero__media { display: none; }
    .ms-nav { display: none; }
    .ms-band--products { grid-template-columns: repeat(2, 1fr); }
    .ms-band--work, .ms-band--articles { grid-template-columns: 1fr; }
    .ms-band--stats { grid-template-columns: 1fr; }
    .minisite { font-size: 3cqi; --pad: 5.5cqi; }
    .ms-brand { font-size: 4cqi; }
    .ms-headline { font-size: 6.4cqi; }
    .ms-eyebrow { font-size: 2.4cqi; }
    .ms-sub { font-size: 3cqi; }
    .ms-pill { font-size: 2.6cqi; padding: 1.6cqi 3.4cqi; }
    .ms-btn { font-size: 2.7cqi; padding: 2cqi 4cqi; }
    .ms-stat { font-size: 2.6cqi; }
}
@container minisite (max-width: 330px) {
    .ms-actions { flex-direction: column; align-items: stretch; }
    .ms-btn { text-align: center; }
}

/* ============================================================
   Discovery
   ============================================================ */
.filterbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filterbar__btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .62rem 1rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg-1); color: var(--text-1);
    font-size: .92rem; font-weight: 520;
    transition: border-color var(--dur-micro), background var(--dur-micro), color var(--dur-micro), transform var(--dur-micro);
}
.filterbar__btn:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-1px); }
.filterbar__btn.is-active { background: var(--text); color: #111; border-color: var(--text); }
.filterbar__count { font-size: .74rem; padding: .05rem .4rem; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }

.discovery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tcard {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--bg-1); overflow: hidden;
    transition: transform var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), opacity var(--dur-ui), scale var(--dur-ui);
}
.tcard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.tcard.is-hidden { display: none; }
.tcard.is-filtering { opacity: 0; scale: .96; }
.tcard__preview {
    display: block; position: relative; width: 100%;
    aspect-ratio: 16 / 11; overflow: hidden;
    background: var(--bg-2); border: 0; border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.tcard__preview .viewport { border: 0; border-radius: 0; box-shadow: none; height: 100%; }
.tcard__preview .viewport__canvas { min-height: 100%; }
.tcard__preview .viewport__glow { display: none; }
/* Real demo screenshot — top-anchored so the theme's header/hero shows. */
.tcard__shot {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transition: transform var(--dur-ui) var(--ease);
}
.tcard--shot:hover .tcard__shot { transform: scale(1.03); }
.tcard__preview-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, var(--bg-1) 8%, transparent); pointer-events: none; }
.tcard--shot .tcard__preview-fade { height: 38%; background: linear-gradient(to top, color-mix(in srgb, var(--bg-1) 92%, transparent) 4%, transparent); }
.tcard__preview-cta {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600; color: #111;
    background: color-mix(in srgb, var(--text) 88%, transparent); padding: .4rem .75rem; border-radius: 999px;
    backdrop-filter: blur(4px);
    transition: background var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease);
}
.tcard:hover .tcard__preview-cta,
.tcard__preview:focus-visible .tcard__preview-cta { background: var(--text); transform: translateY(-1px); }
.tcard__preview:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tcard__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; color: inherit; text-decoration: none; }
.tcard__body:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.tcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tcard__name { font-size: 1.18rem; transition: color var(--dur-micro) var(--ease); }
.tcard__brand, .tp-hero__brand { display: inline-block; margin-left: .35em; font-size: .62em; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); vertical-align: .18em; }
.tcard:hover .tcard__name, .tcard__body:focus-visible .tcard__name { color: var(--tc-accent, var(--accent)); }
.tcard__price { font-weight: 600; font-size: 1rem; color: var(--accent); white-space: nowrap; }
.tcard__price s { color: var(--text-2); font-weight: 400; margin-right: .3rem; }
.tcard__tagline { color: var(--text-1); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__meta { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-2); margin-top: .15rem; flex-wrap: wrap; }
.tcard__responsive { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-1); }
.discovery__empty { text-align: center; color: var(--text-1); padding: 3rem 0 0; }

/* ============================================================
   Footer
   ============================================================ */
/* Canonical structure/measurements mirror the real Next.js
   MarketplaceFooter (web/src/app/(marketplace)/_components/
   MarketplaceFooter.tsx). Pinned to the light token set for the same
   reason `.nav` is above — the canonical footer has no dark variant. */
.footer {
    --bg: #ffffff; --bg-1: #ffffff; --surface: #ffffff;
    --line: #e5e5e5; --line-2: #e5e5e5;
    /* --text-2: #737373 (neutral-500), not #a3a3a3 (neutral-400) — the
       canonical MarketplaceFooter.tsx hit this exact issue first (see its
       own comment): a live axe scan measured neutral-400 on this
       background at 4.24:1, under the 4.5:1 AA minimum for normal text.
       This footer's own .is-soon/.footer__bar text uses --text-2 too, so
       it needs the same safe value, not the raw token this file's other
       (hidden-by-default) contexts use. */
    --text: #171717; --text-1: #525252; --text-2: #737373;
    --accent: #6237e0; --accent-ink: #ffffff; --violet: #6237e0;
    border-top: 1px solid var(--line); background: #fafafa;
}
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding: 4rem var(--gutter); display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1.1fr 2.4fr; } }
.footer__brand p { color: var(--text-1); font-size: .875rem; margin-top: .75rem; max-width: 20rem; }
.footer__brand .nav__cta { margin-top: 1rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer__cols { grid-template-columns: repeat(6, 1fr); } }
.footer__cols h3 { font-family: var(--font-sans); font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .75rem; }
.footer__cols a { display: block; padding: 0 0 .5rem; font-size: .875rem; color: var(--text-1); transition: color var(--dur-micro); }
.footer__cols a:hover { color: var(--text); }
/* Text-only entries — a real page doesn't exist yet for these, so they're
   never rendered as a link (never a 404 in waiting). Same rhythm as a real
   link, visually muted so it doesn't read as an inactive/broken control. */
.footer__cols span.is-soon { display: block; padding: 0 0 .5rem; font-size: .875rem; color: var(--text-2); }
.footer__bar { max-width: var(--maxw); margin-inline: auto; padding: 1.5rem var(--gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; color: var(--text-2); flex-wrap: wrap; }

/* ============================================================
   Quick View modal
   ============================================================ */
.qv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2rem); }
.qv[hidden] { display: none; }
.qv__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, #05050a 78%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-ui); }
.qv.is-open .qv__backdrop { opacity: 1; }
.qv__dialog {
    position: relative; z-index: 1;
    width: min(1080px, 100%); height: min(86vh, 780px); max-height: 86vh; min-height: 0; overflow: hidden;
    display: grid; grid-template-columns: 1.35fr .9fr; grid-template-rows: minmax(0, 1fr);
    background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    transform: scale(.94) translateY(14px); opacity: 0;
    transition: transform var(--dur-ui) var(--ease), opacity var(--dur-ui);
}
.qv.is-open .qv__dialog { transform: none; opacity: 1; }
.qv__close { position: absolute; top: 12px; right: 12px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-1); }
.qv__close:hover { color: var(--text); background: var(--surface-2); }
.qv__stage { padding: 1.4rem; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; min-width: 0; min-height: 0; overflow: hidden; }
.qv__devices { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
/* .qv__preview device-preview sizing lives in assets/css/preview.css */
.qv__section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); font-weight: 600; margin-top: .6rem; }
.qv__addons-hint { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--text-1); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; margin-top: .4rem; }
.qv__addons-hint svg { flex: 0 0 auto; margin-top: .1rem; color: var(--accent); }
.qv__meta { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.qv__eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.qv__name { font-size: 1.9rem; }
.qv__desc { color: var(--text-1); font-size: .93rem; margin-top: .3rem; }
.qv__spec { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem .5rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.qv__spec dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.qv__spec dd { font-size: .9rem; }
.qv__features { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.qv__features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .87rem; color: var(--text-1); }
.qv__features li::before { content: ""; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--accent); flex: none; }
.qv__actions { margin-top: auto; display: grid; gap: .5rem; }
.qv__actions-row { display: flex; gap: .5rem; }
.qv__actions-row .btn { flex: 1; }
.qv__actions-row .btn[hidden] { display: none; }
.qv__hint { font-size: .74rem; color: var(--text-2); margin-top: .7rem; text-align: center; }

/* ============================================================
   Reveal animation
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .discovery__grid { grid-template-columns: repeat(2, 1fr); }
    .qv__dialog { display: flex; flex-direction: column; grid-template-columns: none; max-height: min(92vh, 760px); }
    .qv__stage { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; }
    .qv__meta { flex: 1 1 auto; }
}

@media (max-width: 860px) {
    .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .discovery__grid { grid-template-columns: 1fr; }
    .qv__meta { padding: 1.5rem 1.3rem; }
    .section { padding-inline: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Theme search / filter (discovery)
   ============================================================ */
.tsearch { margin: 1.6rem 0 2rem; display: flex; flex-direction: column; gap: .85rem; }
.tsearch__bar {
    display: flex; align-items: center; gap: .5rem;
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: var(--radius); padding: .35rem .35rem .35rem .9rem;
    transition: border-color var(--dur-ui), box-shadow var(--dur-ui);
}
.tsearch__bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tsearch__icon { display: grid; place-items: center; color: var(--text-2); flex: 0 0 auto; }
.tsearch__input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    color: var(--text); font: inherit; font-size: 1rem; padding: .7rem .2rem;
}
.tsearch__input::placeholder { color: var(--text-2); }
.tsearch__input::-webkit-search-cancel-button { display: none; }
.tsearch__clear {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 0;
    background: var(--surface-2); color: var(--text-1); display: grid; place-items: center;
}
.tsearch__clear:hover { color: var(--text); }
.tsearch__toggle { flex: 0 0 auto; }
.tsearch__toggle.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.tsearch__panel {
    position: relative;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem 1.4rem;
    padding: 1.15rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
/* Close control — hidden on desktop (block-flow panel), shown in the mobile drawer. */
.tsearch__close {
    display: none;
    position: absolute; top: .85rem; right: .85rem; z-index: 2;
    width: 34px; height: 34px; place-items: center;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--surface); color: var(--text-1); cursor: pointer;
}
.tsearch__close:hover { color: var(--text); }
.tsearch__group { display: flex; flex-direction: column; gap: .55rem; }
.tsearch__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 600; }
.tsearch__chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .42rem .7rem; border-radius: 999px; font: inherit; font-size: .84rem;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--text-1); cursor: pointer;
    transition: background var(--dur-ui), color var(--dur-ui), border-color var(--dur-ui);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.chip__count { font-size: .74rem; opacity: .7; font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { opacity: .85; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tsearch__status { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; font-size: .88rem; color: var(--text-1); }
.tsearch__status strong { color: var(--text); font-variant-numeric: tabular-nums; }
.tsearch__active { color: var(--text-2); }
.tsearch__sort { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; }
.tsearch__sort-label { font-size: .78rem; color: var(--text-2); }
.tsearch__sort select {
    font: inherit; font-size: .84rem; color: var(--text-1);
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px;
    padding: .4rem 1.8rem .4rem .6rem; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='m3 5 3 3 3-3' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .55rem center;
}
.tsearch__sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.linklike { background: 0; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--text); }

.discovery__grid .tcard.is-hidden { display: none; }

@media (max-width: 720px) {
    .tsearch__bar { flex-wrap: wrap; }
    .tsearch__toggle { width: 100%; justify-content: center; order: 3; }
    .tsearch__sort { margin-left: 0; }
    /* filter panel becomes a bottom drawer */
    .tsearch__panel:not([hidden]) {
        position: fixed; inset: auto 0 0 0; z-index: 210;
        grid-template-columns: 1fr; gap: 1.2rem;
        max-height: 82vh; overflow-y: auto;
        border-radius: 18px 18px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
        box-shadow: 0 -18px 50px -12px rgba(0,0,0,.5);
        padding: 1.3rem 1.15rem calc(1.3rem + env(safe-area-inset-bottom));
        animation: tsearchUp .22s var(--ease, ease);
    }
    .tsearch--open::after {
        content: ""; position: fixed; inset: 0; z-index: 205;
        background: color-mix(in srgb, #05050a 55%, transparent);
    }
    .tsearch__panel:not([hidden])::before {
        content: "Filtreler"; display: block; font-weight: 700; font-size: 1rem;
        margin-bottom: .2rem; padding-right: 2.4rem;
    }
    .tsearch__close { display: grid; }
}
@keyframes tsearchUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tsearch__panel:not([hidden]) { animation: none; } }

/* ============================================================
   Content pages — /blog, /referanslar, /iletisim, legal
   (/temalar has its own catalogue.css)
   ============================================================ */
.prose-page { padding-top: 5.5rem; }
.prose-page__head {
    border-bottom: 1px solid var(--line);
    background: var(--bg-1);
}
.prose-page__head-inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(2rem, 5vw, 3rem);
}
.prose-page__head h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.75rem); letter-spacing: -.02em; margin: .6rem 0 .5rem;
}
.prose-page__head p { color: var(--text-1); max-width: 46ch; margin: 0; }

.prose-page__body {
    max-width: var(--container, 1120px); margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--gutter, 1.25rem) clamp(3rem, 8vw, 5rem);
}
.prose-page__body--narrow { max-width: 760px; }
.prose-page__body--article { max-width: 720px; }
.prose-page__empty { color: var(--text-2); }
.prose-page__meta, .prose-page__back { color: var(--text-2); font-size: .9rem; }
.prose-page__cover { border-radius: var(--radius-lg); margin: 1.5rem 0; border: 1px solid var(--line); }

.prose { color: var(--text-1); line-height: 1.75; }
.prose h2 { color: var(--text); font-size: 1.25rem; margin: 2rem 0 .7rem; letter-spacing: -.01em; }
.prose h3 { color: var(--text); font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); }

.crumbs { font-size: .85rem; color: var(--text-2); margin-bottom: 1rem; }
.crumbs a { color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }

/* Blog list */
.postlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.postcard {
    display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 1.3rem;
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    background: var(--surface); transition: border-color var(--dur-micro) var(--ease);
}
/* No cover image → single column, so the card doesn't reserve an empty gutter. */
.postcard:not(:has(.postcard__media)) { grid-template-columns: 1fr; }
.postcard:hover { border-color: var(--line-2); }
.postcard__media { display: block; }
.postcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postcard__body { padding: 1.3rem 1.4rem; }
.postcard__cat {
    display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--accent); margin-bottom: .5rem;
}
.postcard__body h2 { font-size: 1.15rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.postcard__body h2 a { color: var(--text); text-decoration: none; }
.postcard__body h2 a:hover { color: var(--accent); }
.postcard__body p { color: var(--text-2); margin: 0 0 .6rem; font-size: .93rem; }
.postcard__body time { color: var(--text-2); font-size: .82rem; }
@media (max-width: 640px) { .postcard { grid-template-columns: 1fr; } .postcard__media img { max-height: 200px; } }

/* References */
.reflist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.refcard {
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem;
    background: var(--surface); display: flex; flex-direction: column; gap: .6rem;
}
.refcard__tag {
    align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-2); border: 1px solid var(--line-2);
    border-radius: 999px; padding: .2rem .6rem;
}
.refcard h2 { font-size: 1.05rem; margin: 0; letter-spacing: -.01em; }
.refcard p { color: var(--text-2); font-size: .9rem; margin: 0; flex: 1; }
.refcard .btn { align-self: flex-start; margin-top: .3rem; }

/* Simple stacked form (contact) */
.stack-form { display: grid; gap: 1.1rem; max-width: 520px; }
.stack-form .field { display: grid; gap: .35rem; }
.stack-form label { font-size: .9rem; font-weight: 600; color: var(--text); }
.stack-form .field__opt { font-weight: 400; color: var(--text-2); }
.stack-form input, .stack-form textarea {
    width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--bg-1); color: var(--text); font: inherit;
}
.stack-form input:focus, .stack-form textarea:focus {
    outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.stack-form [aria-invalid="true"] { border-color: var(--coral); }
.field__err { color: var(--coral); font-size: .82rem; }
.formnote { border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1.4rem; font-size: .92rem; }
.formnote--ok {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Product platform primitives — violet accent, colour bands, icons,
   header density, shared card badges. Used by the homepage and every
   marketplace page that shares the header / theme cards.
   ============================================================ */
:root {
    /* The ONE brand accent for calls-to-action, active states and key
       highlights.
       Global Public Site Canonical Design pass: was a single lime value
       (#c7f94b) kept CONSTANT across both colour modes — lime is bright
       enough to read at 15:1 on near-black AND stay legible on near-white,
       a property that doesn't hold for a mid-saturation violet (a single
       violet hex either fails ~3:1 outline contrast on a dark background
       or fails ~4.5:1 text contrast on a light one — checked both ways
       before rejecting a flat replacement). Aliased to --accent/
       --accent-ink instead: those tokens already correctly swap between
       the light-mode-safe violet (#6237e0 + white ink) and the
       dark-mode-safe one (#a98bff + dark ink) — CSS custom properties
       resolve `var()` live in the actual cascade context, so this tracks
       whichever mode is active rather than freezing one value.
       Token names kept as `--lime`/`--lime-ink` rather than renamed
       everywhere: same reasoning as web/src/app/(marketplace)/_lib/
       brand.ts's own note — a value change, not a mechanical rename
       across every call site. */
    --lime: var(--accent);
    --lime-ink: var(--accent-ink);
}
.btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--primary:hover { background: #7c5cfa; }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--dark:hover { background: var(--text-1); transform: translateY(-1px); }
.btn.is-disabled { opacity: .55; pointer-events: none; }
.skip-link { background: var(--lime); color: var(--lime-ink); }
.eyebrow__pip { background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 22%, transparent); }

/* inline icon sprite (partials/home/icons.php) */
.pi { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .pi { width: 16px; height: 16px; }

/* Colour bands: a full-bleed wrapper that PINS a complete token set so a
   section keeps its intended ground in either colour mode. `.band` alone
   follows the page theme. Every component inside reads tokens, so nothing
   needs a per-band override. */
.band { background: var(--bg); color: var(--text); }
.band + .band { border-top: 1px solid var(--line); }
.band--dark {
    --bg: #0b0b0d; --bg-1: #101013; --bg-2: #17171b; --surface: #1b1b20; --surface-2: #222228;
    --line: color-mix(in srgb, #ffffff 9%, transparent); --line-2: color-mix(in srgb, #ffffff 15%, transparent);
    --text: #f3f2ee; --text-1: #b7b6bd; --text-2: #8b8a93;
    --accent: #a98bff; --accent-ink: #12140a; --coral: #ff6a45; --violet: #a98bff;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.5);
    --shadow-2: 0 30px 80px -30px rgba(0,0,0,.7), 0 8px 30px -12px rgba(0,0,0,.5);
    color-scheme: dark;
}
.band--light {
    --bg: #f5f5f0; --bg-1: #fbfbf8; --bg-2: #ecece6; --surface: #ffffff; --surface-2: #f2f2ec;
    --line: color-mix(in srgb, #0c0c0e 12%, transparent); --line-2: color-mix(in srgb, #0c0c0e 20%, transparent);
    --text: #14140f; --text-1: #45443d; --text-2: #5e5d55;
    --accent: #6237e0; --accent-ink: #ffffff; --coral: #cf4a2c; --violet: #6237e0;
    --shadow-1: 0 1px 2px rgba(17,17,15,.05), 0 10px 30px -16px rgba(17,17,15,.16);
    --shadow-2: 0 30px 80px -34px rgba(17,17,15,.20), 0 8px 24px -14px rgba(17,17,15,.10);
    color-scheme: light;
}
/* the page ground itself follows the theme; bands paint their own */
body.has-bands, .home { background: var(--bg); }

/* Header: product navigation is denser (6 links) */
.nav__links { gap: .15rem; }
.nav__links a { padding: .48rem .7rem; font-size: .9rem; }
@media (max-width: 1240px) { .nav__login { display: none; } }
@media (max-width: 1080px) {
    .nav__links { display: none; }
    .nav__burger { display: block; }
    .nav__actions .btn--primary { display: none; }
    .nav__drawer:not([hidden]) { display: flex; }
}

/* Theme card: what every licence includes, and whether a live demo exists */
.tcard__badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0 .2rem; }
.tcard__badges li { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-1); }
.tcard__badge--live { display: inline-flex; align-items: center; gap: .3rem; border-color: color-mix(in srgb, var(--lime) 50%, transparent) !important; color: var(--text) !important; }
.tcard__badge--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.tcard__price { color: var(--text); }
