/* ============================================================
   recreateme.ai — Marketing CSS
   Shared by: landing, features, pricing, customers
   ============================================================ */

/* === 1. DESIGN TOKENS === */
:root {
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --border: #d2d2d7;
    --border-soft: rgba(0, 0, 0, 0.08);
    --surface: #f5f5f7;
    --surface-2: #fafafa;
    --surface-3: #ffffff;
    --accent: #1d1d1f;
    --accent-bg: rgba(0, 0, 0, 0.04);
    --highlight: #00C48C;

    --scrollbar: #C0C0C0;

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(0, 0, 0, 0.04);
    --glass-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px -12px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.22);
    --shadow-xl: 0 30px 80px -20px rgba(0, 0, 0, 0.32);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-brand: 'Alata', var(--font-sans);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #0a0a0a;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #86868b;
    --border: #2c2c2e;
    --border-soft: rgba(255, 255, 255, 0.08);
    --surface: #1d1d1f;
    --surface-2: #141414;
    --surface-3: #1d1d1f;
    --accent: #f5f5f7;
    --accent-bg: rgba(255, 255, 255, 0.06);

    --scrollbar: #444444;

    --glass-bg: rgba(10, 10, 10, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}

/* === 2. RESET + BASE === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul, ol { list-style: none; }

/* Brand wordmark + landing-section titles all share Source Sans 3 as the
   brand typeface. Body copy + subtitles keep --font-sans for legibility.
   Source Sans 3 has real italics (loaded in 1,400 / 1,500), so <em>
   emphasis spans render properly without synthesized obliques. */
.mk-logo,
.hero-headline,
.brand-title,
.feature-trio-title,
.feature-tile-title,
.showcase-title,
.ap-card h3,
.ld-headline,
.closing-cta-headline,
.final-cta-title,
.feature-section h2,
.feature-sub-card h3 {
    font-family: var(--font-brand);
    font-synthesis-weight: none;
}

::selection { background: var(--text); color: var(--bg); }

/* === 3. LAYOUT UTILS === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 760px; }
.container-medium { max-width: 900px; }
.container-wide   { max-width: 1320px; }

.section {
    padding: 120px 24px;
}

.section-tight { padding: 80px 24px; }
.section-flush { padding: 0; }

@media (max-width: 900px) {
    .section { padding: 80px 20px; }
    .section-tight { padding: 56px 20px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 16px; }
    .section-tight { padding: 40px 16px; }
}

.text-center { text-align: center; }

/* === 4. NAV ===
   Full-width frosted-glass header — visually matches the logged-in app
   (.header / .main-nav-tabs pattern) so users feel at home before and after login.
   ======================================================================= */
.mk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    font-family: 'Alata', sans-serif;
}

.mk-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

@media (max-width: 600px) {
    .mk-header-inner { padding: 0 16px; }
}

.mk-header-left,
.mk-header-right {
    display: flex;
    align-items: center;
    z-index: 2;
}

.mk-header-right { gap: 10px; }

.mk-logo {
    font-family: 'Alata', sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: var(--text);
    white-space: nowrap;
}

.mk-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mk-nav-tabs {
    display: inline-flex;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 2px;
}

.mk-nav-tab {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.mk-nav-tab:hover {
    color: var(--text);
    background: var(--accent-bg);
}

.mk-nav-tab.active {
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .mk-nav-tab.active {
    background: var(--bg-alt);
}

.mk-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
}

.mk-theme-toggle:hover { color: var(--text); background: var(--accent-bg); }

.mk-theme-toggle .sun  { display: block; }
.mk-theme-toggle .moon { display: none; }
[data-theme="dark"] .mk-theme-toggle .sun  { display: none; }
[data-theme="dark"] .mk-theme-toggle .moon { display: block; }

.mk-nav-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.mk-nav-login:hover { background: var(--accent-bg); }

.mk-nav-signup {
    font-size: 14px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--bg);
    transition: transform 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

[data-theme="dark"] .mk-nav-signup { color: #1a1a1a; }

.mk-nav-signup:hover { opacity: 0.9; }

/* Logged-in CTA mirrors the signup style; only shown when html[data-auth=user]
   per the bootstrap in _marketing_base.html. The data-auth toggle is the
   single source of truth: anon (default) renders Log in + Get started, user
   renders Open app. Pre-paint synchronous so there's no flash on either path. */
.mk-nav-app {
    font-size: 14px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--bg);
    transition: transform 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    display: none;
}
[data-theme="dark"] .mk-nav-app { color: #1a1a1a; }
.mk-nav-app:hover { opacity: 0.9; }

html[data-auth="user"] .mk-nav-login,
html[data-auth="user"] .mk-nav-signup,
html[data-auth="user"] .mk-mobile-login,
html[data-auth="user"] .mk-mobile-signup {
    display: none !important;
}
html[data-auth="user"] .mk-nav-app { display: inline-flex; align-items: center; }
.mk-mobile-app { display: none; }
html[data-auth="user"] .mk-mobile-app { display: inline-flex; }

/* Hamburger — mobile only */
.mk-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text);
    transition: background 0.2s ease;
}

.mk-hamburger:hover { background: var(--accent-bg); }

/* Mobile breakpoints: hide tabs + login, show hamburger; center logo. */
@media (max-width: 960px) {
    .mk-header-center { display: none; }
    .mk-nav-login { display: none; }
    .mk-theme-toggle { display: none; }
    .mk-hamburger { display: flex; }
}

@media (max-width: 600px) {
    .mk-header { height: 58px; }
    .mk-header-inner { padding: 0 16px; }
    .mk-logo { font-size: 16px; }
    .mk-nav-signup { padding: 8px 14px; font-size: 13px; }
}

/* Hero sections handle their own top padding (140/160px)
   to clear the 64px fixed header + provide breathing room —
   this keeps hero backgrounds flowing edge-to-edge behind the nav. */

/* Mobile menu — fullscreen overlay */
.mk-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    background: var(--bg);
    padding: 80px 24px 40px;
    overflow-y: auto;
    font-family: 'Alata', sans-serif;
}

.mk-mobile-menu.open { display: flex; }

.mk-mobile-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text);
    background: transparent;
    transition: background 0.2s ease;
}

.mk-mobile-close:hover { background: var(--surface); }

.mk-mobile-link {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.mk-mobile-link.active { color: var(--text); }
.mk-mobile-link:not(.active) { color: var(--text-secondary); }

.mk-mobile-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mk-mobile-actions .btn { width: 100%; justify-content: center; }

/* === 5. FOOTER === */
.mk-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 48px 24px 24px;
}

.mk-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 2fr 1fr 1fr;
    gap: 40px;
}

/* Photography column carries more entries than the others, so it spans wider
   and flows into two sub-columns at desktop. Two-class selector to beat the
   later `.mk-footer-col ul { display: flex }` rule on specificity — column-count
   is silently ignored when the parent is a flex container, so display:block must
   win. Falls back to a single column at tablet/mobile breakpoints below. */
.mk-footer-col.mk-footer-col-wide ul {
    display: block;
    column-count: 2;
    column-gap: 24px;
}
.mk-footer-col.mk-footer-col-wide li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.mk-footer-brand-col h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mk-footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.005em;
    margin-bottom: 14px;
}

.mk-footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mk-footer-col a {
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s ease;
}

.mk-footer-col a:hover { color: var(--text-secondary); }

.mk-footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mk-footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 1080px) {
    .mk-footer-inner {
        grid-template-columns: 1fr 2fr 1fr 1fr;
        gap: 32px;
    }
    .mk-footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .mk-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .mk-footer-col.mk-footer-col-wide ul {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .mk-footer { padding: 40px 20px 20px; }
    .mk-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    /* Items flow horizontally within each category (wraps to next line as
       needed) so each category is compact instead of one item per line. */
    .mk-footer-col ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 14px;
    }
    /* Override the wide column's multi-column layout so Photography items
       also flow horizontally like the rest. */
    .mk-footer-col.mk-footer-col-wide ul {
        display: flex;
        column-count: initial;
    }
    .mk-footer-col.mk-footer-col-wide li { margin-bottom: 0; }
    .mk-footer-col h4 { margin-bottom: 10px; }
    .mk-footer-bottom { margin-top: 28px; flex-direction: column-reverse; align-items: flex-start; }
}

/* === 6. BUTTONS === */
.btn {
    font-family: var(--font-brand);
    font-synthesis-weight: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-secondary {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--text-secondary);
}

.btn-ghost {
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    gap: 8px;
}

.btn-ghost:hover {
    border-color: var(--text);
    gap: 12px;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-large {
    padding: 16px 30px;
    font-size: 17px;
}

@media (max-width: 480px) {
    .btn { font-size: 15px; padding: 12px 22px; }
    .btn-large { padding: 14px 26px; font-size: 16px; }
}

/* === 7. SECTION COMPONENTS === */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
}

.section-eyebrow.live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--highlight);
    animation: livePulse 2.2s var(--ease-in-out) infinite;
    flex-shrink: 0;
}

.section-eyebrow-plain {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.06;
    color: var(--text);
}

.section-title-large {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.section-subtitle {
    font-size: clamp(17px, 2vw, 19px);
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 640px;
    margin: 18px auto 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .section-header { margin-bottom: 40px; }
}

/* === 8. HERO === */
.hero {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 40px;
    position: relative;
    isolation: isolate;
}

.hero:not(.hero-compact)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1188px, 92vw);
    aspect-ratio: 1;
    background: url('/static/images/pinkwash.png') center/contain no-repeat;
    transform: translate(-50%, -52%) rotate(12.7deg);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.hero-tagline {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 22px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
}

.hero-headline {
    font-family: 'Alata', sans-serif;
    font-size: clamp(42px, 7.7vw, 82px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 24px;
    max-width: 920px;
}

.hero-headline em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

/* Landing section headings (feature trio, brand showcase, live showcase,
   demo) share the same Playfair Display italic treatment as the hero. The
   closing-cta headline has its own rule lower in the file with a heavier
   500 weight. */
.feature-trio-title em,
.brand-title em,
.showcase-title em,
.ld-headline em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.hero-subheadline {
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 620px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-meta {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-meta strong {
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 600px) {
    .hero { min-height: 72vh; padding: 100px 20px 32px; }
    .hero:not(.hero-compact)::before {
        width: min(1188px, 135vw);
        transform: translate(-50%, -44.5%);
    }
}

/* Compact hero variant for sub-pages */
.hero-compact {
    min-height: auto;
    padding: 160px 24px 80px;
}

@media (max-width: 600px) {
    .hero-compact { padding: 130px 20px 60px; }
}

/* === 9. MARQUEE === */
.marquee-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 48px;
}

.marquee-content {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    flex-shrink: 0;
}

.marquee-item {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    opacity: 0.4;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-item span {
    opacity: 0.3;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 48px)); }
}

@media (max-width: 480px) {
    .marquee-item { font-size: 15px; gap: 10px; }
    .marquee, .marquee-content { gap: 32px; }
}

/* === 10. USE CASES GRID === */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.use-case {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.use-case:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.use-case-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: inline-block;
}

.use-case-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.use-case-text {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .use-cases-grid { grid-template-columns: 1fr; gap: 14px; }
    .use-case { padding: 28px; }
    .use-case-title { font-size: 19px; }
    .use-case-text { font-size: 15px; }
}

/* === 11. STEPS === */
.steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 760px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    background: var(--surface);
    color: var(--text);
    border-radius: 50%;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.step-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .steps { gap: 32px; }
    .step { flex-direction: column; gap: 12px; }
    .step-number { width: 40px; height: 40px; font-size: 17px; }
    .step-content h3 { font-size: 19px; }
    .step-content p { font-size: 15px; }
}

/* === 12. TESTIMONIALS GRID (landing) === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s var(--ease-out);
}

.testimonial-card:hover { transform: translateY(-3px); }

.testimonial-quote {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--text);
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 28px;
    line-height: 1;
    margin-right: 4px;
    color: var(--text-secondary);
    vertical-align: -4px;
}

.testimonial-quote::after {
    content: '\201D';
    font-size: 28px;
    line-height: 1;
    margin-left: 2px;
    color: var(--text-secondary);
    vertical-align: -4px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #888 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0;
    flex-shrink: 0;
}

.testimonial-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.testimonial-author-role {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

@media (max-width: 760px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
    .testimonial-card { padding: 28px 24px; }
    .testimonial-quote { font-size: 17px; }
}

/* === 13. PRICING TEASER (landing) === */
.pricing-teaser {
    padding: 100px 24px;
    text-align: center;
    background: var(--surface);
}

.pricing-teaser-inner {
    max-width: 720px;
    margin: 0 auto;
}

.pricing-teaser-title {
    font-size: clamp(30px, 4.6vw, 44px);
    font-weight: 600;
    letter-spacing: -0.028em;
    margin-bottom: 14px;
}

.pricing-teaser-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.pricing-teaser-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-teaser-from {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
}

.pricing-teaser-from strong {
    color: var(--text);
    font-size: 16px;
    letter-spacing: -0.02em;
    text-transform: none;
}

@media (max-width: 600px) {
    .pricing-teaser { padding: 70px 20px; }
}

/* === 14. FINAL CTA === */
.final-cta {
    padding: 140px 24px;
    text-align: center;
}

.final-cta-title {
    font-size: clamp(36px, 6.5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin-bottom: 18px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

.final-cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.final-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .final-cta { padding: 90px 20px; }
}

/* === 15. SHOWCASE MASONRY (landing — preserves existing class names for JS) === */
.showcase {
    padding: 100px 24px 80px;
    max-width: 1320px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 56px;
}

.showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    padding: 8px 16px 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
}

.showcase-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 0 0 rgba(0, 196, 140, 0.4);
    animation: livePulse 2.2s var(--ease-in-out) infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 196, 140, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 196, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 196, 140, 0); }
}

.showcase-title {
    font-size: clamp(30px, 4.6vw, 46px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 14px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

.showcase-masonry {
    column-count: 4;
    column-gap: 14px;
}

@media (max-width: 1100px) { .showcase-masonry { column-count: 3; } }
@media (max-width: 760px)  { .showcase-masonry { column-count: 2; column-gap: 12px; } }

.showcase-card {
    position: relative;
    display: block;
    margin: 0 0 14px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    break-inside: avoid;
    opacity: 0;
    transform: translateY(48px) scale(0.96);
    transition: opacity 0.95s var(--ease-out),
                transform 0.95s var(--ease-out),
                box-shadow 0.4s var(--ease-in-out);
    will-change: transform, opacity;
    isolation: isolate;
}

@media (max-width: 760px) {
    .showcase-card { margin-bottom: 12px; border-radius: 16px; }
}

.showcase-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

[data-theme="light"] .showcase-card:hover {
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .showcase-card:hover {
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.showcase-card.revealed:hover {
    transform: translateY(-6px) scale(1);
}

.showcase-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.showcase-card:hover img { transform: scale(1.05); }

.showcase-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 38%,
        rgba(0, 0, 0, 0) 65%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-in-out);
    pointer-events: none;
}

.showcase-card:hover .showcase-card-overlay { opacity: 1; }

.showcase-card-prompt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-card-author {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.showcase-skeleton {
    display: block;
    margin: 0 0 14px;
    border-radius: 20px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    break-inside: avoid;
}

.showcase-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 127, 127, 0.08) 50%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 760px) {
    .showcase-skeleton { margin-bottom: 12px; border-radius: 16px; }
}

.showcase-cta-row {
    text-align: center;
    margin-top: 56px;
}

.showcase-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--border);
    transition: gap 0.3s var(--ease-out), border-color 0.3s ease;
}

.showcase-cta-link:hover {
    gap: 14px;
    border-color: var(--text);
}

.showcase-cta-link svg {
    width: 14px;
    height: 14px;
}


/* === 16. BRAND CAROUSEL (landing — preserves class names for JS) === */
.brand-showcase {
    padding: 100px 0 80px;
    overflow: hidden;
    position: relative;
}

.brand-showcase-header {
    text-align: center;
    margin: 0 auto 56px;
    padding: 0 24px;
    max-width: 800px;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
}

.brand-title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.06;
    margin-bottom: 18px;
}

.brand-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto;
}

.carousel-track-wrap {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: carousel-drift 60s linear infinite;
}

.carousel-track-wrap:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes carousel-drift {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track { animation: none; }
}

.carousel-card {
    flex: 0 0 auto;
    margin-right: 16px;
    height: clamp(380px, 62vh, 620px);
    aspect-ratio: var(--card-ratio, 4 / 5);
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
}

.carousel-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.carousel-card:hover img {
    filter: brightness(0.7);
}

@keyframes kenBurnsA {
    0%   { transform: scale(1.06) translate(-1.5%, 1%); }
    100% { transform: scale(1.12) translate(1.5%, -1.5%); }
}
@keyframes kenBurnsB {
    0%   { transform: scale(1.10) translate(1.5%, 1.2%); }
    100% { transform: scale(1.04) translate(-1.2%, -1%); }
}
@keyframes kenBurnsC {
    0%   { transform: scale(1.08) translate(0%, -1.5%); }
    100% { transform: scale(1.14) translate(-1.5%, 1.2%); }
}

.carousel-card-recreate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #0a0a0a;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.carousel-card:hover .carousel-card-recreate {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .brand-showcase { padding: 60px 0 50px; }
    .brand-showcase-header { margin-bottom: 36px; }

    /* User-controlled swipe on mobile, no auto-drift */
    .carousel-track-wrap {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 16px;
        scrollbar-width: none;
    }
    .carousel-track-wrap::-webkit-scrollbar { display: none; }
    .carousel-track {
        animation: none;
        width: max-content;
    }
    .carousel-card {
        height: 44vh;
        max-height: 360px;
        border-radius: 16px;
        margin-right: 10px;
        scroll-snap-align: start;
    }
}

/* === 17. FEATURES PAGE — alternating sections === */
.feature-section {
    padding: 100px 24px;
}

.feature-section + .feature-section {
    padding-top: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-text-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.feature-text h2 {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.06;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 28px;
}

.feature-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
    height: 100%;
    background: var(--surface);
}

.feature-visual-grid > * {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
}

.feature-visual-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.feature-sub-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform 0.3s var(--ease-out);
}

.feature-sub-card:hover { transform: translateY(-4px); }

.feature-sub-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-bottom: 18px;
}

.feature-sub-card-icon svg { width: 20px; height: 20px; }

.feature-sub-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.feature-sub-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .feature-section { padding: 70px 20px; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-text { order: 1; }
    .feature-row.reverse .feature-visual { order: 2; }
    .feature-sub-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
}

/* === 18. PRICING PAGE === */
.pricing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 48px;
}

.pricing-toggle {
    display: inline-flex;
    padding: 4px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    position: relative;
}

.pricing-toggle button {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-toggle button.active {
    color: var(--bg);
    background: var(--accent);
}

.pricing-save-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--highlight);
    color: white;
    letter-spacing: 0.02em;
}

.pricing-toggle button:not(.active) .pricing-save-badge {
    background: var(--accent-bg);
    color: var(--text-secondary);
}

/* 4 cards (Lite / Core / Max / Enterprise) sit on one row at desktop —
   Free is intentionally absent (every signup auto-grants 8 free credits,
   the "start free" message lives in the hero + comparison table instead).
   Wider cards = roomier content + matches Kive's 4-card pricing layout.
   Recommended-card styling mirrors /onboarding/plans: purple 2px border
   and a purple MOST POPULAR badge so the brand palette stays consistent
   across pricing surfaces (pricing page / onboarding / upgrade modal). */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.tier-card {
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.tier-card:hover { transform: translateY(-3px); }

.tier-card.popular {
    background: var(--bg);
    border: 2px solid #6d28d9;
    padding: 29px 25px;  /* compensate for the extra 1px border so outer dimensions match */
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .tier-card.popular {
    border-color: #8b5cf6;
}

.tier-popular-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: #6d28d9;
    color: #ffffff;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
[data-theme="dark"] .tier-popular-badge {
    background: #8b5cf6;
}

.tier-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tier-price-amount {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tier-price-period {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tier-billed {
    font-size: 12px;
    color: var(--text-muted);
    min-height: 16px;
}

.tier-credits {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 12px 14px;
    background: var(--bg);
    /* Transparent border matches .ob-dropdown-trigger's 1px border so single-
       option tiers (Free, Lite) line up pixel-for-pixel with multi-option
       tiers (Core, Max) that render the dropdown trigger instead. */
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
}

.tier-card.popular .tier-credits {
    background: var(--surface);
}

.tier-credits s {
    color: var(--text-muted);
    margin-right: 6px;
    text-decoration: line-through;
}

/* Custom dropdown — combobox + listbox pattern. Used inside tier cards
   (Core/Max within-tier credit volume) so the open menu can be themed
   (browsers won't theme native <select> options). Same visual language as
   /onboarding/profile. */
.ob-dropdown { position: relative; }
.ob-dropdown-trigger {
    width: 100%; padding: 12px 14px; padding-right: 36px;
    font-family: inherit; font-size: 14px; font-weight: 500; color: var(--text);
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: var(--radius-sm); outline: none; cursor: pointer;
    transition: all 0.2s ease; text-align: left;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tier-card.popular .ob-dropdown-trigger { background: var(--surface); }
.ob-dropdown-trigger:hover { background: var(--bg-alt, var(--surface-2, #fafafa)); }
.ob-dropdown.open .ob-dropdown-trigger,
.ob-dropdown-trigger:focus {
    background: var(--bg);
    border-color: var(--border);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.ob-dropdown-label {
    color: var(--text);
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ob-dropdown-caret {
    width: 12px; height: 12px; flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.18s ease;
}
.ob-dropdown.open .ob-dropdown-caret { transform: rotate(180deg); }
.ob-dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px; max-height: 280px; overflow-y: auto;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.10));
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.ob-dropdown.open .ob-dropdown-menu {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.ob-dropdown.flip-up .ob-dropdown-menu {
    top: auto; bottom: calc(100% + 6px); transform: translateY(4px);
}
.ob-dropdown.flip-up.open .ob-dropdown-menu { transform: translateY(0); }
.ob-dropdown-option {
    display: block; width: 100%; padding: 9px 12px;
    background: transparent; border: none; border-radius: 6px;
    color: var(--text); font-family: inherit; font-size: 14px;
    text-align: left; cursor: pointer; line-height: 1.35;
    transition: background 0.12s ease;
}
.ob-dropdown-option:hover,
.ob-dropdown-option.highlight { background: var(--surface, var(--bg-alt, #f5f5f5)); }
.ob-dropdown-option.selected { font-weight: 600; }
.ob-dropdown-menu::-webkit-scrollbar { width: 8px; }
.ob-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.ob-dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.ob-dropdown-menu::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.tier-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 4px;
}

.tier-features li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}

.tier-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

[data-theme="dark"] .tier-features li::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

.tier-cta {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.tier-cta-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.tier-cta-secondary:hover {
    background: var(--surface-2);
    opacity: 1;
}

.tier-card.popular .tier-cta-secondary {
    background: var(--surface);
}

/* Below ~960px the 4-col layout gets cramped — drop to 2 cols
   (Lite + Core in row 1, Max + Enterprise in row 2). Single col on
   phones. Padding tightens at each step so content stays readable. */
@media (max-width: 960px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tier-card { padding: 26px 22px; }
    .tier-card.popular { padding: 25px 21px; }
}

@media (max-width: 520px) {
    .tier-grid { grid-template-columns: 1fr; gap: 14px; }
    .tier-card { padding: 28px 24px; }
    .tier-card.popular { padding: 27px 23px; }
}

/* Top-up credits */
.topup-section {
    padding: 100px 24px;
    max-width: 760px;
    margin: 0 auto;
}

.topup-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.topup-display {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.topup-amount {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.topup-amount-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-left: 6px;
    font-weight: 500;
}

.topup-price {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.topup-price-detail {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.topup-slider {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: var(--bg);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    margin: 24px 0 16px;
}

.topup-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg);
    box-shadow: var(--shadow-sm);
}

.topup-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg);
}

.topup-marks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    padding: 0 2px;
}

.topup-savings {
    font-size: 13px;
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: 16px;
    min-height: 18px;
}

.topup-buy {
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .topup-section { padding: 70px 20px; }
    .topup-card { padding: 28px 20px; }
    .topup-amount, .topup-price { font-size: 32px; }
}

/* Comparison table */
.compare-section {
    padding: 100px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table thead th {
    padding: 18px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: bottom;
}

.compare-table thead th:first-child {
    width: 26%;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.compare-table thead th .compare-tier-price {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

.compare-group-row td {
    padding: 26px 12px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: none;
}

.compare-table tbody tr td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    vertical-align: top;
}

.compare-table tbody tr td:first-child {
    color: var(--text-secondary);
}

.compare-check {
    color: var(--text);
    font-weight: 600;
}

.compare-dash {
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .compare-section {
        padding: 70px 0;
        max-width: 100%;
    }
    .compare-table { font-size: 12px; }
    .compare-table thead th,
    .compare-table tbody tr td {
        padding: 12px 8px;
        font-size: 12px;
    }
    .compare-table thead th { font-size: 13px; }
}

/* Comparison-table footer — Kive-style closing CTA row. Mirrors the header
   (tier name + price) and adds a "Get started" button under each column.
   Lets buyers act after scrolling through the long feature comparison
   without scrolling all the way back to the cards. */
.compare-footer-row td {
    border-bottom: none;
    padding: 28px 12px 12px;
    vertical-align: top;
    text-align: center;
}

.compare-footer-row td:first-child { border-bottom: none; }

.compare-foot-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.compare-foot-popular { color: #6d28d9; }
[data-theme="dark"] .compare-foot-popular { color: #c4b5fd; }

.compare-foot-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.compare-foot-period {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.compare-foot-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill, 100px);
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
    white-space: nowrap;
}

.compare-foot-cta:hover {
    background: var(--bg-alt, var(--surface-2));
    opacity: 1;
}

/* Recommended (Core) gets the same purple-filled treatment as the
   "Continue with Core" button in the upgrade modal. Brand consistency
   across pricing surfaces (cards / table / modal). */
.compare-foot-cta-primary {
    background: #6d28d9;
    color: #ffffff;
    border-color: transparent;
}

.compare-foot-cta-primary:hover {
    background: #5b21b6;
    color: #ffffff;
}

[data-theme="dark"] .compare-foot-cta-primary {
    background: #8b5cf6;
}

[data-theme="dark"] .compare-foot-cta-primary:hover {
    background: #7c3aed;
}

@media (max-width: 760px) {
    .compare-footer-row td {
        padding: 20px 6px 10px;
    }
    .compare-foot-price { font-size: 18px; }
    .compare-foot-cta {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* FAQ */
.faq-section {
    padding: 100px 24px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 24px 0;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--text-secondary); }

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
    padding: 0 0 24px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

@media (max-width: 600px) {
    .faq-section { padding: 70px 20px; }
    .faq-item summary { font-size: 16px; padding: 20px 0; }
    .faq-answer { font-size: 15px; }
}

/* === 19. CUSTOMERS PAGE — testimonial blocks === */
.customer-stack {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 0 24px;
}

.customer-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.customer-images {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.customer-images > * {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    position: relative;
}

.customer-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.customer-images > *:hover img {
    transform: scale(1.04);
}

.customer-image-skeleton {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.customer-image-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 127, 127, 0.08) 50%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

.customer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.customer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.customer-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.015em;
}

.customer-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.customer-quote {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.018em;
    color: var(--text);
    max-width: 880px;
}

.customer-quote::before {
    content: '\201C';
    color: var(--text-secondary);
    margin-right: 4px;
}
.customer-quote::after {
    content: '\201D';
    color: var(--text-secondary);
    margin-left: 2px;
}

.customer-stat-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 60px 24px 0;
    flex-wrap: wrap;
}

.customer-stat {
    text-align: center;
}

.customer-stat-value {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.customer-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 10px;
}

@media (max-width: 760px) {
    .customer-stack { gap: 56px; padding: 0 20px; }
    .customer-images { grid-template-columns: 1fr 1fr; aspect-ratio: 4 / 3; }
    .customer-images > *:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
    .customer-quote { font-size: 19px; }
    .customer-stat-row { gap: 40px; }
}

/* === 20. CATEGORY TILES (used on landing & features) === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.category-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.category-tile:hover img {
    transform: scale(1.04);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 35%,
        rgba(0, 0, 0, 0) 65%);
}

.category-tile-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.category-tile-skeleton {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.category-tile-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 127, 127, 0.08) 50%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 20px; }
}

/* === 21. AVATAR PALETTE (deterministic colors per name) === */
.av-1 { background: linear-gradient(135deg, #FF6B6B 0%, #C93848 100%); }
.av-2 { background: linear-gradient(135deg, #4ECDC4 0%, #1A8E84 100%); }
.av-3 { background: linear-gradient(135deg, #FFD166 0%, #C99800 100%); }
.av-4 { background: linear-gradient(135deg, #A78BFA 0%, #5E3FBE 100%); }
.av-5 { background: linear-gradient(135deg, #F38BA8 0%, #B95677 100%); }
.av-6 { background: linear-gradient(135deg, #74C0FC 0%, #2778C4 100%); }
.av-7 { background: linear-gradient(135deg, #95D5B2 0%, #40916C 100%); }
.av-8 { background: linear-gradient(135deg, #FFB088 0%, #C2643A 100%); }

/* === 23. PRODUCT HERO COMPOSITE (landing fold-2) ===
   A static "product shot" that shows references → prompt → output at a glance.
   Two-column on desktop (big output left, app chrome right), stacked on mobile. */
.product-hero {
    padding: 40px 24px 100px;
}

.product-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.product-hero-frame {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.ph-main {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
}

.ph-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: kenBurnsA 22s ease-in-out infinite alternate;
    will-change: transform;
}

.ph-main-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ph-main-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--highlight);
}

.ph-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ph-block {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.ph-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.ph-ref-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ph-ref-row > * {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    display: block;
    position: relative;
}

.ph-ref-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.ph-ref-row a:hover img { transform: scale(1.06); }

.ph-prompt {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ph-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ph-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ph-studio {
    background: var(--accent);
    color: var(--bg);
}

.ph-mode {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.ph-prompt-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.005em;
}

.ph-var-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.ph-var-grid > * {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    display: block;
    position: relative;
}

.ph-var-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.ph-var-grid a:hover img { transform: scale(1.06); }

.ph-skeleton {
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.ph-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 127, 127, 0.08) 50%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

@media (max-width: 900px) {
    .product-hero { padding: 24px 16px 60px; }
    .product-hero-frame {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    .ph-main { aspect-ratio: 4 / 5; }
    .ph-var-grid { grid-template-columns: repeat(4, 1fr); }
}

/* === 22. REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .showcase-card { opacity: 1 !important; transform: none !important; }
    .carousel-card,
    .carousel-card img,
    .showcase-eyebrow::before,
    .showcase-skeleton::after,
    .carousel-skeleton::after,
    .customer-image-skeleton::after,
    .category-tile-skeleton::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* === 23. FEATURE TRIO (landing — Kive-style high-end visuals block) === */
.feature-trio {
    padding: 40px 24px 100px;
}

.feature-trio-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.feature-trio-header {
    margin: 0 auto 36px;
    max-width: 900px;
    text-align: center;
}

.feature-trio-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
}

.feature-trio-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-trio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    row-gap: 32px;
}

.feature-tile {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Progress bar overlaid inside the tile, inset from the edges for a more
   "designed" look (not edge-to-edge). The track is a subtle white-on-image
   line; a faint dark drop shadow underneath keeps it legible on light
   imagery. The fill is driven by a CSS animation (not a transition) so
   restarts are clean — remove the class, force reflow, re-add. No flicker. */
.feature-tile-bar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 1px;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.feature-tile-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: inherit;
}
.feature-tile-bar-fill.animating {
    animation: ftBarFill var(--ft-duration, 6s) linear forwards;
}
@keyframes ftBarFill {
    from { width: 0%; }
    to   { width: 100%; }
}

.feature-tile-media {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    margin-bottom: 18px;
}

.feature-tile-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.feature-tile-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dual-layer image crossfade. JS keeps two .ft-layer divs (each with an
   <img>) inside .feature-tile-media. Only the .active layer is visible; the
   incoming layer preloads its image and then fades in via the opacity
   transition while the previously-active one fades out. */
.ft-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 500ms var(--ease-out);
    pointer-events: none;
}
.ft-layer.active { opacity: 1; }
.ft-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title + description crossfade. .swapping is held for the fade-out window
   (~280ms); JS swaps the text content while opacity is 0, then drops
   .swapping to fade the new text back in. */
.feature-tile-title,
.feature-tile-desc {
    transition: opacity 280ms var(--ease-out);
}
.feature-tile.swapping .feature-tile-title,
.feature-tile.swapping .feature-tile-desc {
    opacity: 0;
}

.feature-tile-media a:hover img {
    transform: scale(1.03);
}

.feature-tile-skeleton {
    position: absolute;
    inset: 0;
    background: var(--surface-2);
    overflow: hidden;
}

.feature-tile-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 127, 127, 0.08) 50%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

.feature-tile-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 4px;
}

.feature-tile-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .feature-trio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .feature-trio { padding: 24px 20px 60px; }
    .feature-trio-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Editorial gradient overlay: title + desc stamped onto the media */
    .feature-tile { position: relative; }
    .feature-tile-media { margin-bottom: 0; }
    .feature-tile-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 55%);
        pointer-events: none;
        z-index: 1;
    }
    .feature-tile-title {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 62px;
        margin: 0;
        z-index: 2;
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    .feature-tile-desc {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 18px;
        margin: 0;
        z-index: 2;
        color: rgba(255, 255, 255, 0.82);
        font-size: 13px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* === 24. SCROLLBAR (matches app/discover — 6px thumb, transparent track) === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

::-webkit-scrollbar-button {
    display: none;
}

@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar) transparent;
    }
}

/* === 25. PROMPT LIBRARY (landing — /prompts and /prompts/<tag>) === */
.prompts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.prompts-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 60px 20px;
}

/* Tag index grid */
.prompts-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.prompts-tag-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 18px;
    min-height: 120px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out),
                background 0.25s ease,
                border-color 0.25s ease;
}

.prompts-tag-card:hover {
    transform: translateY(-2px);
    background: var(--surface);
    border-color: var(--text-secondary);
}

.prompts-tag-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.prompts-tag-count {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 480px) {
    .prompts-tag-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prompts-tag-card { min-height: 96px; padding: 22px 12px; }
    .prompts-tag-name { font-size: 15px; }
}

/* Per-tag post grid */
.prompts-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.prompts-post-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-in-out);
    text-decoration: none;
}

.prompts-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.prompts-post-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.prompts-cta-row {
    text-align: center;
    margin-top: 56px;
}

.prompts-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--border);
    transition: gap 0.3s var(--ease-out), border-color 0.3s ease;
}

.prompts-cta-link:hover {
    gap: 14px;
    border-color: var(--text);
}

@media (max-width: 600px) {
    .prompts-section { padding: 0 16px 60px; }
    .prompts-post-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============================================================
   Landing animated demo (admin-managed via /adm/landing).
   Replaces the static product-hero. Cycles through scenarios:
   types the prompt → swaps to References tab → fades refs in →
   swaps back to Prompt → clicks Generate → loading → results
   grid fades in → hold → advance.
   ============================================================ */
.landing-demo {
    padding: 60px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.ld-header {
    text-align: center;
    margin-bottom: 36px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.ld-headline {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 8px;
}
.ld-subhead {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.ld-box {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ld-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border-soft);
    padding: 0 8px;
}
.ld-tab {
    font-size: 13px;
    padding: 14px 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.ld-tab.active { color: var(--text); border-bottom-color: var(--text); }
.ld-tab svg { width: 14px; height: 14px; }

.ld-body {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: 580px;  /* Locked — sized to fit the longest expected prompt comfortably */
}

.ld-left {
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-alt);
}

/* Chips row — sits above the typed prompt, mirroring the composer state
   a real user would see. Holds an aesthetic chip (flower icon + name)
   plus N preset chips (label-only). Both are admin-set per scenario via
   /adm/landing; row collapses entirely when neither is configured. */
.ld-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 20px 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ld-chips-row.visible {
    opacity: 1;
    transform: translateY(0);
}
.ld-chips-row[hidden] {
    /* Reserve no layout space when scenario has no chips configured. */
    display: none;
}
.ld-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
/* Aesthetic chip: mirrors the in-app .aesthetic-chip pattern from style.css
   — green pill with a small circular thumb showing the aesthetic strip. */
.ld-chip-aesthetic {
    padding: 2px 10px 2px 2px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.40);
    color: #22c55e;
    font-weight: 600;
    cursor: default;
}
.ld-chip-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--surface);
    flex-shrink: 0;
}

/* Hover preview — appears above the aesthetic chip showing the full strip
   image + name. Same dimensions as the in-app preview, themed for both
   light + dark. */
.ld-aesthetic-preview {
    position: fixed;
    z-index: 1000;
    width: 280px;
    padding: 0;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.ld-aesthetic-preview.visible {
    opacity: 1;
    transform: translateY(0);
}
.ld-aesthetic-preview img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.ld-aesthetic-preview-label {
    padding: 8px 12px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

.ld-prompt-area {
    padding: 20px 20px 12px;
    height: 180px;          /* Locked — accommodates ~7-8 lines of typing without pushing refs */
    overflow: hidden;
}
.ld-prompt-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    white-space: pre-wrap;
}
.ld-typed { color: var(--text); }
/* @-muse mentions in the demo's typed prompt — matches the app's inline
   muse chip styling (rgba blue background + #4ea8ff text). */
.ld-muse {
    color: #4ea8ff;
    background: rgba(78, 168, 255, 0.10);
    padding: 0 5px;
    margin: 0 1px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}
.ld-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--text);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: ld-blink 1s infinite;
}
@keyframes ld-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Persistent reference visualiser — 2×2 thumbnail grid below the prompt.
   Always visible during a scenario (no tab-switching). Refs fade in
   sequentially when a scenario starts so the visitor sees them populate.
   2×2 layout makes each thumb noticeably bigger than a 4-wide row would. */
.ld-refs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 20px 76px;          /* 76px bottom = bar height + ~16px breathing room */
    margin-top: auto;              /* Push refs down toward the bar; empty space sits above */
}
.ld-refs-row img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.ld-refs-row img.show { opacity: 1; transform: scale(1); }

.ld-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-alt);
}
.ld-ratio {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: var(--accent-bg);
    border-radius: 8px;
}
.ld-gen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bg);
    background: var(--text);
    border-radius: 8px;
    padding: 10px 16px;
    transition: transform 0.15s;
}
.ld-gen.click { transform: scale(0.96); }
.ld-gen svg { width: 14px; height: 14px; }

.ld-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: var(--surface-2);
    height: 100%;  /* Inherit locked body height — no independent shifting */
    overflow: hidden;
}

.ld-placeholder {
    text-align: center;
    color: var(--text-muted);
    transition: opacity 0.25s;
}
.ld-placeholder svg { display: block; width: 36px; height: 36px; margin: 0 auto 8px; opacity: 0.5; }
.ld-placeholder p { font-size: 13px; margin: 0; }
.ld-placeholder.hidden { opacity: 0; pointer-events: none; position: absolute; }

.ld-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}
.ld-loading.show { display: flex; }
.ld-spinner {
    width: 28px; height: 28px;
    border: 2.5px solid var(--border-soft);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: ld-spin 0.8s linear infinite;
}
@keyframes ld-spin { to { transform: rotate(360deg); } }

/* Results panel — 2×2 grid of up to 4 generated takes. Cells stay 1fr/1fr
   to fill the panel evenly; each image preserves its natural aspect via
   max-width/max-height + object-fit: contain, then centers in its cell.
   No cropping, every result fully visible. */
.ld-results {
    display: none;
    width: 100%;
    height: 100%;
    gap: 8px;
    place-items: center;
    /* Internal scroll for the 3/4-result case where each row is taller than
       half the panel. align-content: start anchors the grid to the top so
       users see the first row first, then scroll down to the rest. */
    overflow-y: auto;
    align-content: start;
}
.ld-results.show { display: grid; }
.ld-results[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; align-content: stretch; }
.ld-results[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; align-content: stretch; }
.ld-results[data-count="3"], .ld-results[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.ld-results img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.ld-results img.show { opacity: 1; transform: scale(1); }

@media (max-width: 880px) {
    .ld-body { grid-template-columns: 1fr; min-height: auto; }
    .ld-left { border-right: none; border-bottom: 1px solid var(--border-soft); min-height: 360px; }
    .ld-right { min-height: 240px; height: auto; }

    /* Refs: small centered thumbs (scenarios use max 1-2 images) */
    .ld-refs-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 16px 80px;
    }
    .ld-refs-row img {
        width: 96px;
        height: 96px;
        aspect-ratio: 1;
    }

    .ld-results { height: 100%; }
}

/* ============================================================
   Audience picker — 2 cards, decides whether the visitor stays
   on the e-com landing or routes to /for-creators.
   ============================================================ */
.audience-picker {
    padding: 0 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.ap-eyebrow {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.ap-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}
.ap-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.ap-card:hover {
    transform: translateY(-1px);
    border-color: var(--border);
}
.ap-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.ap-icon svg { width: 18px; height: 18px; }
.ap-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.005em;
}
.ap-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}
@media (max-width: 720px) {
    .ap-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Closing CTA — Kive-style oversized centered headline + buttons.
   Echoes the hero/feature/demo `<em>` italic-emphasis pattern so
   the typography reads as one continuous voice top-to-bottom.
   ============================================================ */
.closing-cta {
    padding: 120px 24px 140px;
    text-align: center;
    background: var(--bg);
}
.closing-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.closing-cta-headline {
    font-size: clamp(38px, 6.8vw, 86px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 24px;
    color: var(--text);
}
.closing-cta-headline em {
    font-style: italic;
    font-family: 'Playfair Display', 'Times New Roman', 'Georgia', serif;
    font-weight: 500;
}
.closing-cta-sub {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0 0 36px;
    line-height: 1.5;
}
.closing-cta-highlight {
    color: var(--highlight);
    font-weight: 500;
}
.closing-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.closing-cta-buttons .btn {
    min-width: 180px;
    justify-content: center;
}
@media (max-width: 600px) {
    .closing-cta { padding: 80px 20px 100px; }
    .closing-cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
}

/* ===========================================================================
   COLLECTIONS PAGE (/collections, /editions legacy)
   Kive-style 4-tile cycler. Each tile carries N (vertical, image) frames;
   a thin top bar runs 0→100%, then label + image crossfade to the next
   frame in lockstep. Label sits INSIDE the tile (top-left overlay) instead
   of below it — the surface reads as image-first, like Kive's reference.
   =========================================================================== */
.editions-collections {
    padding: 16px 24px 90px;
}

.editions-collections-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.editions-collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.collections-hero {
    padding-bottom: 24px;
}

.collections-hero-headline {
    font-family: var(--font-brand);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text);
    margin: 0 auto;
    text-align: center;
    max-width: 920px;
}

.edition-card {
    display: flex;
    flex-direction: column;
}

/* Media block holds a stack of frames; only .active is visible. Cards have
   a fixed 3:4 aspect — slightly taller than 4:5 so the row matches Kive's
   vertical-leaning silhouette. */
.edition-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    isolation: isolate;
    text-decoration: none;
    color: inherit;
}

/* Top scrim — keeps the progress bar + category label legible regardless
   of how bright the underlying image gets. Fades out by ~90px so it
   never tints the main subject of the photo. */
.edition-card-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.18) 55%,
        rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Thin progress bar at the top of each card, mirrors the landing trio.
   Filled by a CSS animation; --ec-duration is set per-tick from JS so
   timing can vary slightly across cards. */
.edition-card-bar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 1px;
    overflow: hidden;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.edition-card-bar-fill {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    transform: scaleX(0);
    transform-origin: left center;
}
.edition-card-bar-fill.animating {
    animation: editionBarFill var(--ec-duration, 6000ms) linear forwards;
}
@keyframes editionBarFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Frames stack: only one .active at a time, others sit at opacity 0.
   Cross-fade is purely CSS — JS just adds/removes .active. Anchor + div
   variants both render as a frame; <a> stays clickable when active. */
.edition-card-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
    pointer-events: none;
    display: block;
}
.edition-card-frame.active {
    opacity: 1;
    pointer-events: auto;
}
.edition-card-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Label overlay (top-left, inside the tile). Stack matches the frames so
   the active label crossfades with its image. The top scrim above does
   the heavy lifting on readability; the text-shadow handles any sliver
   the scrim doesn't cover at the label's exact position. */
.edition-card-label-stack {
    position: absolute;
    top: 34px;
    left: 18px;
    right: 18px;
    z-index: 3;
    pointer-events: none;
    min-height: 22px;
}
.edition-card-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
    /* Source Sans 3 (brand typeface), explicitly set so the overlay
       matches the rest of the marketing surface even though body inherits
       the same family today. */
    font-family: var(--font-brand);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    opacity: 0;
    /* 280ms matches landing's title/desc swap — the discrete in/out beat
       reads more decisively than a slow crossfade, especially with the
       image crossfading underneath at 600ms (a separate, parallel motion). */
    transition: opacity 280ms var(--ease-out);
}
.edition-card-label.active {
    opacity: 1;
}
/* During the swap window the active label is forced to opacity 0 so the
   text disappears completely before the next cycle's label fades in.
   Mirrors `.feature-tile.swapping .feature-tile-title` on the landing
   page so the two surfaces feel like one product. */
.edition-card.swapping .edition-card-label.active {
    opacity: 0;
}

.edition-card-skeleton {
    position: absolute;
    inset: 0;
    background: var(--surface-2);
}
.edition-card-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 127, 127, 0.08) 50%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

/* Subtle hover lift on the active frame — only matters for tiles whose
   active vertical is live (anchor variant). The non-anchor variant has
   pointer-events:none on its frame so this rule is a no-op there. */
a.edition-card-frame.active:hover img {
    transform: scale(1.02);
    transition: transform 0.6s var(--ease-out);
}

@media (max-width: 1100px) {
    .editions-collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
@media (max-width: 600px) {
    .editions-collections-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .edition-card-label { font-size: 18px; }
    .edition-card-label-stack { top: 28px; }
}

/* ===========================================================================
   BRAND CONSISTENCY feature block (Kive-style). Left = big title +
   description; right = hero image with annotation-box overlays. The boxes
   are positioned with percentages so they ride along with any swapped-in
   hero image. Annotation labels match the in-app muse-chip aesthetic.
   =========================================================================== */
.editions-feature {
    padding: 80px 24px 80px;
}

.editions-feature-inner {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--surface-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    min-height: 480px;
}

.editions-feature-text {
    padding: 60px 56px;
}
.editions-feature-title {
    font-family: var(--font-brand);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.04;
    margin-bottom: 18px;
    color: var(--text);
}
.editions-feature-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 420px;
}

.editions-feature-visual {
    position: relative;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

/* Hero image area — admin replaces /static/editions/brand-consistency.jpg.
   While there's no image, the skeleton shows a neutral fill so the layout
   doesn't collapse during dev. */
.editions-feature-image {
    position: absolute;
    inset: 0;
    background: var(--surface);
    overflow: hidden;
}
.editions-feature-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/editions/brand-consistency.jpg') center / cover no-repeat;
}
.editions-feature-image-skeleton {
    position: absolute;
    inset: 0;
    background: var(--surface-2);
    z-index: -1;
}

/* Annotation rectangles. Subtle white outline + small chip-style label in
   the top-left corner — mirrors Kive's hero treatment. Positions are
   tuned for the placeholder image; swap or repositioning is a CSS tweak. */
.editions-feature-anno {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.editions-feature-anno-label {
    position: absolute;
    bottom: 100%;
    left: -1.5px;
    margin-bottom: 6px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.editions-feature-anno-1 { top: 18%; left: 38%; width: 22%; height: 26%; }
.editions-feature-anno-2 { top: 32%; left: 56%; width: 18%; height: 22%; }
.editions-feature-anno-3 { top: 58%; left: 60%; width: 20%; height: 30%; }

@media (max-width: 900px) {
    .editions-feature-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .editions-feature-text { padding: 40px 32px 24px; }
    .editions-feature-visual { min-height: 360px; }
}

/* === Behind every edition (mechanics section) === */
.editions-mechanics {
    padding: 80px 24px 100px;
    background: var(--bg-alt);
}

.editions-mechanics-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.editions-mechanics-header {
    text-align: center;
    margin: 0 auto 56px;
    max-width: 720px;
}

.editions-mechanics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.editions-mechanic {
    text-align: left;
}

.editions-mechanic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.editions-mechanic-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text);
}

.editions-mechanic h3 {
    font-family: var(--font-brand);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.editions-mechanic p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .editions-mechanics { padding: 60px 24px 80px; }
    .editions-mechanics-grid { grid-template-columns: 1fr; gap: 28px; }
    .editions-mechanics-header { margin-bottom: 36px; }
}
