:root {
    --primary: #ff4d6d;
    --accent: #9b5de5;
    --bg: #0d0b14;
    --surface: #171320;
    --surface-2: #211b30;
    --text: #f5f1fa;
    --muted: #a79fb8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 18px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100%;
}

body {
    background:
        radial-gradient(900px 600px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        radial-gradient(800px 500px at -10% 10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%),
        var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.brand-logo { height: 30px; width: 30px; border-radius: 8px; object-fit: cover; }
.brand-name { font-size: 1.15rem; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-nav { display: flex; align-items: center; gap: 0.9rem; }
.nav-link { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav-link:hover { color: var(--text); }
.nav-link.muted { opacity: 0.75; }

.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.9rem;
}
.credit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 35%, transparent);
    transition: transform 0.15s ease, opacity 0.15s ease;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.02rem; }
.btn-glow { position: relative; }
.btn-glow::after {
    content: ""; position: absolute; inset: -3px; border-radius: 999px; z-index: -1;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    filter: blur(14px); opacity: 0.55;
    transition: opacity 0.2s ease;
}
.btn-glow:hover::after { opacity: 0.85; }
.btn-ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn-block { width: 100%; }

/* Messages */
.messages { max-width: 1100px; margin: 0.8rem auto 0; padding: 0 1rem; display: grid; gap: 0.5rem; }
.message { padding: 0.7rem 1rem; border-radius: 12px; font-size: 0.92rem; border: 1px solid var(--border); }
.message-success { background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.4); }
.message-error { background: rgba(231, 76, 60, 0.12); border-color: rgba(231, 76, 60, 0.4); }
.message-info { background: rgba(155, 93, 229, 0.12); border-color: rgba(155, 93, 229, 0.4); }

/* Main */
.site-main { flex: 1; width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 1rem 3rem; }
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 70% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 65%),
        radial-gradient(500px 380px at 25% 70%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
    filter: blur(10px);
}
.hero-inner {
    position: relative;
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
    font-size: 0.83rem; font-weight: 700; color: var(--text);
    margin-bottom: 1.1rem;
}
.pulse-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #43d17a;
    box-shadow: 0 0 0 0 rgba(67, 209, 122, 0.6);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 209, 122, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(67, 209, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 209, 122, 0); }
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 0.9rem;
    letter-spacing: -0.02em;
    background: linear-gradient(100deg, var(--text) 30%, color-mix(in srgb, var(--primary) 80%, #fff) 70%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin: 0 0 1.6rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-trust {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 1.4rem; flex-wrap: wrap;
    color: var(--muted); font-size: 0.88rem; font-weight: 600;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-ico { font-size: 1rem; }

/* Hero visual — fanned persona cards + chat bubbles */
.hero-visual { position: relative; height: 420px; }
.hero-card {
    position: absolute; width: 200px; aspect-ratio: 3 / 4;
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    background: var(--surface);
}
.hero-card img, .hero-card-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-card-fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 800; color: #fff;
    background: linear-gradient(160deg, var(--accent), var(--primary));
}
.hero-card-1 { left: 4%; top: 12%; transform: rotate(-8deg); z-index: 1; animation: floaty 6s ease-in-out infinite; }
.hero-card-2 { left: 32%; top: 2%; transform: rotate(2deg); z-index: 2; box-shadow: 0 25px 60px color-mix(in srgb, var(--primary) 30%, transparent); animation: floaty 7s ease-in-out 0.6s infinite; }
.hero-card-3 { left: 60%; top: 16%; transform: rotate(9deg); z-index: 1; animation: floaty 6.5s ease-in-out 1.2s infinite; }
@keyframes floaty {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.hero-card-label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.6rem 0.8rem 0.7rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.hero-bubble {
    position: absolute; z-index: 3;
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 0.65rem 1rem; border-radius: 18px; border-bottom-left-radius: 6px;
    font-size: 0.88rem; box-shadow: var(--shadow); max-width: 240px;
}
.hero-bubble-1 { left: 8%; bottom: 6%; animation: bubblein 0.6s ease both 0.8s; }
.hero-bubble-2 { right: 4%; bottom: 22%; animation: bubblein 0.6s ease both 1.6s; }
@keyframes bubblein {
    from { opacity: 0; transform: translateY(12px) scale(0.9); }
    to { opacity: 1; transform: none; }
}
.typing-bubble { display: inline-flex; gap: 5px; align-items: center; padding: 0.8rem 1rem; }
.typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

.online-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #43d17a; box-shadow: 0 0 8px #43d17a; flex-shrink: 0;
}

/* Section headers */
.gallery-section { scroll-margin-top: 70px; }
.section-head { max-width: 1100px; margin: 2rem auto 0; padding: 0 1rem; text-align: center; }
.section-eyebrow {
    display: inline-block; margin-bottom: 0.5rem;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.grad-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { margin: 0; font-size: 1rem; }

/* Filter bar — glassy panel */
.filter-bar {
    max-width: 1060px; margin: 1.6rem auto 0; padding: 0.4rem 1.3rem;
    display: grid;
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
@media (min-width: 1060px) { .filter-bar { margin-left: auto; margin-right: auto; } }
.filter-group {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 0;
    min-width: 0;
}
.filter-group + .filter-group { border-top: 1px solid var(--border); }
.filter-label {
    flex-shrink: 0; width: 52px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--muted);
}
.filter-row { display: flex; gap: 0.45rem; flex-wrap: wrap; min-width: 0; }
.filter-row.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-row.scroll::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 0.5rem 1.05rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
    background: color-mix(in srgb, var(--surface-2) 80%, transparent);
    border: 1px solid transparent; color: var(--muted);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.chip.small { padding: 0.42rem 0.9rem; font-size: 0.82rem; }
.chip:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 45%, transparent);
    transform: translateY(-1px);
}
.chip.active {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-color: transparent;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* Persona gallery */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 1rem 3rem;
}
.persona-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: block;
}
.persona-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary) 55%, transparent);
    box-shadow: 0 22px 55px color-mix(in srgb, var(--primary) 25%, rgba(0,0,0,0.5));
}
.persona-card .card-media { position: absolute; inset: 0; overflow: hidden; }
.persona-card .avatar, .persona-card .avatar-fallback {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s ease;
}
.persona-card:hover .avatar { transform: scale(1.06); }
.persona-card .avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; font-weight: 800;
    background: linear-gradient(160deg, var(--accent), var(--primary));
    color: #fff;
}
.persona-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1rem;
}
.persona-card .p-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 700; color: #7fe3a8;
    margin-bottom: 0.25rem;
}
.persona-card .p-name { font-size: 1.2rem; font-weight: 800; margin: 0; }
.persona-card .p-tag {
    color: rgba(255,255,255,0.82); font-size: 0.85rem; margin: 0.2rem 0 0.55rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.persona-card .p-niches { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.persona-card .p-niche {
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}
.persona-card .p-cta {
    align-self: flex-start;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 40%, transparent);
    transition: transform 0.2s ease;
}
.persona-card:hover .p-cta { transform: scale(1.04); }
.persona-card .cost-badge {
    position: absolute; top: 0.7rem; right: 0.7rem;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
    border: 1px solid var(--border);
}

/* Chat — locked to the viewport so the input bar is ALWAYS visible. */
body.chat-body { height: 100dvh; overflow: hidden; }
body.chat-body .site-footer { display: none; }
body.chat-body .site-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-wrap {
    max-width: 820px; margin: 0 auto; width: 100%;
    display: flex; flex-direction: column;
    flex: 1; min-height: 0;
}
.chat-header {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem 1rem; border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.chat-header .avatar-sm, .chat-header .avatar-sm-fallback {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.chat-header .avatar-sm-fallback {
    display: flex; align-items: center; justify-content: center; font-weight: 800;
    background: linear-gradient(160deg, var(--accent), var(--primary)); color: #fff;
}
.chat-header .ch-name { font-weight: 700; }
.chat-header .ch-sub { font-size: 0.8rem; color: var(--muted); }
.chat-header .back { color: var(--muted); font-size: 1.4rem; margin-right: 0.2rem; }

.chat-log { flex: 1; overflow-y: auto; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.bubble {
    max-width: 78%; padding: 0.7rem 1rem; border-radius: 18px; line-height: 1.45;
    white-space: pre-wrap; word-wrap: break-word; font-size: 0.97rem;
}
.bubble.user { align-self: flex-end; background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.system-note { align-self: center; background: transparent; color: var(--muted); font-size: 0.85rem; text-align: center; }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-input-bar {
    display: flex; gap: 0.6rem; align-items: flex-end;
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(10px);
}
.chat-input-bar textarea {
    flex: 1; resize: none; background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 22px; padding: 0.7rem 1rem;
    font-family: inherit; font-size: 0.97rem; max-height: 120px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-input-bar textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.chat-send {
    border: none; border-radius: 50%; width: 46px; height: 46px; flex-shrink: 0;
    cursor: pointer; color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    font-size: 1.2rem;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 40%, transparent);
    transition: transform 0.15s ease;
}
.chat-send:hover:not(:disabled) { transform: scale(1.06); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.out-of-credits {
    margin: 0.5rem 1rem; padding: 0.9rem 1rem; border-radius: 12px;
    background: rgba(231, 76, 60, 0.12); border: 1px solid rgba(231, 76, 60, 0.4);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
/* display:flex above would otherwise override the hidden attribute. */
.out-of-credits[hidden] { display: none; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.pkg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; position: relative; }
.pkg-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.pkg-card .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), var(--accent)); padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.pkg-card .credits-num { font-size: 2.4rem; font-weight: 800; }
.pkg-card .price { font-size: 1.4rem; font-weight: 700; margin: 0.3rem 0; }
.pkg-card .per-credit { color: var(--muted); font-size: 0.8rem; margin-bottom: 1rem; }

/* Panels / forms */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.panel.narrow { max-width: 460px; margin: 2.5rem auto; }
.panel h1 { margin-top: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 600; }
.field input[type="email"], .field input[type="text"] {
    width: 100%; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--primary); }
.field textarea {
    width: 100%; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 1rem;
    resize: vertical; min-height: 90px;
}
.field textarea:focus { outline: none; border-color: var(--primary); }

/* Companion builder */
.builder { max-width: 760px; margin: 1.6rem auto 3rem; display: grid; gap: 1.1rem; }
.builder-step { padding: 1.4rem 1.5rem; }
.step-title { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.1rem; font-size: 1.1rem; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 0.9rem; font-weight: 800;
}
.avatar-groups { display: grid; gap: 1rem; }
.avatar-group-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 0.06em; }
.avatar-row { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
.avatar-row::-webkit-scrollbar { display: none; }
.avatar-option { position: relative; flex-shrink: 0; cursor: pointer; }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option img {
    width: 108px; aspect-ratio: 3 / 4; object-fit: cover; display: block;
    border-radius: 14px; border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar-option:hover img { transform: translateY(-2px); }
.avatar-option input:checked + img {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent), 0 10px 25px color-mix(in srgb, var(--primary) 30%, transparent);
}
.option-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.option-chip { cursor: pointer; }
.option-chip input { position: absolute; opacity: 0; pointer-events: none; }
.option-chip span {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 0.5rem 1.05rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
    background: color-mix(in srgb, var(--surface-2) 80%, transparent);
    border: 1px solid transparent; color: var(--muted);
    transition: all 0.15s ease;
}
.option-chip:hover span { color: var(--text); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.option-chip input:checked + span {
    color: #fff; background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 40%, transparent);
}
.builder-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.2rem 1.5rem; border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
}
.builder-price strong { font-size: 1.15rem; }

/* Create-your-own gallery tile */
.create-card {
    position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
    text-align: center; padding: 1.2rem;
    background:
        radial-gradient(320px 220px at 50% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%),
        var(--surface);
    border: 1.5px dashed color-mix(in srgb, var(--primary) 55%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.create-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px color-mix(in srgb, var(--primary) 25%, rgba(0,0,0,0.5));
}
.create-card .plus {
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 2rem; font-weight: 700; color: #fff;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 45%, transparent);
}
.create-card .cc-title { font-size: 1.15rem; font-weight: 800; }
.create-card .cc-sub { color: var(--muted); font-size: 0.85rem; }
.create-card .cc-price {
    padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
}

.owner-badge {
    position: absolute; top: 0.7rem; left: 0.7rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
}
.checkrow { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.checkrow input { margin-top: 0.2rem; }
.checkrow a { color: var(--primary); }

/* Checkout */
.checkout-grid {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.2rem;
    max-width: 900px; margin: 2rem auto;
}
.panel-title { margin: 0 0 1rem; font-size: 1.15rem; }
.secure-list {
    list-style: none; margin: 1.2rem 0 0; padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    display: grid; gap: 0.5rem;
    color: var(--muted); font-size: 0.85rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.card-input { position: relative; }
.card-input input { padding-right: 3rem; }
.card-brands { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
@media (max-width: 760px) {
    .checkout-grid { grid-template-columns: 1fr; margin: 1rem auto; }
}

.order-summary { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.order-summary.total { font-weight: 800; font-size: 1.15rem; border-bottom: none; }

.prose { line-height: 1.7; }
.prose h1 { margin-bottom: 1rem; }

.table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.table th, .table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table th { color: var(--muted); font-weight: 600; }
.pos { color: #43d17a; }
.neg { color: #ff7a90; }

/* CTA banner */
.cta-banner { padding: 1rem 1rem 4rem; }
.cta-inner {
    position: relative; overflow: hidden;
    max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem;
    text-align: center; border-radius: 26px;
    background:
        radial-gradient(500px 260px at 50% -20%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
}
.cta-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.cta-inner p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; }
.cta-perks {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    margin-top: 1.4rem; color: var(--muted); font-size: 0.86rem; font-weight: 600;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 60%, #000 8%); margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem 1rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-content: flex-start; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-disclosure { max-width: 1100px; margin: 0 auto; padding: 1rem; color: var(--muted); font-size: 0.82rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-copy { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 0.5rem 1rem 1.5rem; }

.badge-18 { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; border-radius: 8px; padding: 0.1rem 0.4rem; font-size: 0.75rem; flex-shrink: 0; }
.badge-18.large { font-size: 1.1rem; padding: 0.3rem 0.6rem; border-radius: 12px; margin-bottom: 0.5rem; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(5, 3, 10, 0.92); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.age-gate[hidden] { display: none; }
.age-gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.age-gate-card h2 { margin: 0.3rem 0 0.5rem; }
.age-gate-card p { color: var(--muted); font-size: 0.92rem; }
.age-gate-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }

@media (max-width: 900px) {
    .hero { padding: 2.2rem 1rem 2rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { height: 340px; max-width: 480px; margin: 0 auto; width: 100%; }
    .hero-card { width: 160px; }
    .hero-copy { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
}

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; gap: 1.2rem; }
    .bubble { max-width: 88%; }
    .persona-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
    .filter-group { flex-direction: column; gap: 0.35rem; }
    .filter-label { width: auto; }
    .hero-visual { height: 300px; }
    .hero-card { width: 140px; }
    .hero-bubble { max-width: 190px; font-size: 0.8rem; }
}
