/* Royal AI — premium design system
 * deep onyx + royal purple + gold. serif display + humanist sans body.
 * restrained, confident, cinematic. no emoji except 👑 in the logo.
 */

/* ---------- design tokens ---------- */
:root {
    --bg:          #0a0612;
    --bg-elev:     #15091f;
    --bg-card:     #1d0f2b;
    --bg-hover:    #281342;
    --line:        rgba(212, 175, 55, 0.18);
    --line-soft:   rgba(212, 175, 55, 0.08);
    --ink:         #f4ebd0;
    --ink-strong:  #ffffff;
    --ink-dim:     #a89c80;
    --ink-faint:   #6b6354;
    --gold:        #d4af37;
    --gold-bright: #f0c651;
    --gold-deep:   #a88623;
    --purple:      #6b2d8b;
    --purple-deep: #3d1a4e;
    --burgundy:    #800020;
    --danger:      #cc4a4a;
    --success:     #5da670;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.6);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.75);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.18);

    --font-display: 'Cinzel', 'Playfair Display', 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-bright); }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% -10%, rgba(107, 45, 139, 0.28), transparent 40%),
        radial-gradient(ellipse at 85% 30%, rgba(128, 0, 32, 0.18), transparent 45%),
        radial-gradient(ellipse at 50% 110%, rgba(212, 175, 55, 0.10), transparent 55%),
        linear-gradient(180deg, #0a0612 0%, #0c0516 50%, #0a0612 100%);
    z-index: -2;
}
/* Film grain + subtle vignette for cinematic feel */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.45) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.55  0 0 0 0.035 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    z-index: -1;
    mix-blend-mode: overlay;
    opacity: 0.8;
}
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    color: var(--gold);
    opacity: 0.04;
}
.bg-decor-svg { width: 100%; height: 100%; }

/* ---------- typography ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--ink-strong);
}
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}
.lead {
    font-size: 1.125rem;
    color: var(--ink-dim);
    line-height: 1.7;
    max-width: 560px;
}

/* ---------- layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
section {
    padding: clamp(64px, 8vw, 120px) 0;
    position: relative;
}
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { display: inline-block; margin-bottom: 16px; }
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}
.section-head p {
    color: var(--ink-dim);
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0 auto;
}

.flourish {
    display: block;
    margin: 32px auto 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: relative;
}
.flourish::before {
    content: "❖";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--gold);
    background: var(--bg);
    padding: 0 8px;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 6, 18, 0.75);
    border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-strong);
}
.brand-crown {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.wallet-chip {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-strong);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.wallet-chip:hover { border-color: var(--gold); background: var(--bg-hover); }
.wallet-chip.on { display: inline-flex; }
.wallet-gem { color: var(--gold); font-size: 14px; }

.user-chip {
    position: relative;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s var(--ease);
    user-select: none;
}
.user-chip:hover, .user-chip[aria-expanded="true"] { border-color: var(--gold); }
.user-chip.on { display: inline-flex; }
.user-chip img {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg-card);
}
.user-chip-caret {
    color: var(--ink-dim);
    font-size: 10px;
    transition: transform .2s var(--ease);
}
.user-chip[aria-expanded="true"] .user-chip-caret { transform: rotate(180deg); }

.user-menu {
    position: fixed;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .15s var(--ease), transform .15s var(--ease);
    z-index: 120;
}
.user-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.user-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    color: var(--ink);
    font-size: 13px;
    border-radius: var(--radius-sm);
    background: none;
    border: 0;
    cursor: pointer;
}
.user-menu button:hover { background: var(--bg-hover); color: var(--ink-strong); }
.user-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: all .2s var(--ease);
    white-space: nowrap;
    user-select: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    color: #1a0b1f;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost {
    background: transparent;
    color: var(--ink-strong);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: var(--bg-card); }
.btn-link {
    background: transparent;
    color: var(--gold);
    padding: 0;
    font-weight: 500;
}
.btn-link:hover { color: var(--gold-bright); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
    padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
    position: relative;
    overflow: hidden;
}
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 24px 0 24px;
    color: var(--ink-strong);
}
.hero-copy h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-copy .lead { margin-bottom: 36px; font-size: 1.1875rem; }
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-meta {
    margin-top: 24px;
    font-size: 13px;
    color: var(--ink-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-meta::before {
    content: "";
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* ---------- before/after comparison ---------- */
.compare {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-soft);
    touch-action: none;
}
.compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.compare .after { clip-path: inset(0 0 0 50%); }
.compare .handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}
.compare .handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px; height: 48px;
    background: var(--gold);
    border: 3px solid var(--bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-gold);
}
.compare .handle::after {
    content: "‹›";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -2px;
}
.compare-label {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-strong);
    border: 1px solid var(--line-soft);
}
.compare-label.left  { left: 16px; }
.compare-label.right { right: 16px; color: var(--gold); border-color: var(--line); }

/* ---------- process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.process-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}
.process-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 18px;
    display: inline-block;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.process-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 12px;
}
.process-card p {
    color: var(--ink-dim);
    font-size: 0.9375rem;
    max-width: 260px;
    margin: 0 auto;
}

/* ---------- gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    transition: all .3s var(--ease);
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--line);
    box-shadow: var(--shadow-gold);
}
.gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s var(--ease);
}
.gallery-card .before { opacity: 1; }
.gallery-card .after { opacity: 0; }
.gallery-card:hover .before, .gallery-card.flipped .before { opacity: 0; }
.gallery-card:hover .after,  .gallery-card.flipped .after  { opacity: 1; }
.gallery-card .caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--ink-strong);
    letter-spacing: 0.02em;
}
.gallery-card .caption small {
    display: block;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ---------- create widget (studio) ---------- */
.studio {
    max-width: 760px;
    margin: 0 auto;
}
.studio-frame {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.studio-inner { padding: clamp(24px, 4vw, 48px); }

.auth-gate { text-align: center; padding: 24px 0; }
.auth-gate h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 12px;
}
.auth-gate p { color: var(--ink-dim); margin: 0 0 28px; }
.auth-gate .gift {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--gold-bright);
    margin-bottom: 20px;
}

.dropzone {
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s var(--ease);
    background: rgba(212, 175, 55, 0.02);
}
.dropzone:hover, .dropzone.drag {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
}
.dropzone-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 24px;
}
.dropzone h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 8px;
}
.dropzone p { font-size: 14px; color: var(--ink-dim); margin: 0 0 16px; }
.dropzone .small { font-size: 12px; color: var(--ink-faint); margin: 16px 0 0; }

.photo-tips {
    margin-top: 20px;
    padding: 18px 22px;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}
.photo-tips-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px;
}
.photo-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}
.photo-tips-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.4;
}
.photo-tips-list li span {
    flex-shrink: 0;
    width: 16px;
    color: var(--gold);
    font-weight: 700;
    text-align: center;
}
.photo-tips-list li:has(span:only-child) { color: var(--ink-dim); }
.photo-tips-list li:last-child span { color: var(--ink-faint); }
@media (max-width: 600px) {
    .photo-tips-list { grid-template-columns: 1fr; }
}

/* Reveal animation on result */
.result .reveal {
    animation: revealIn 0.6s var(--ease-out);
}
.result .reveal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5), transparent 60%);
    pointer-events: none;
    animation: revealShine 0.9s var(--ease-out);
    z-index: 1;
}
@keyframes revealIn {
    from { opacity: 0; transform: scale(0.96); filter: blur(8px); }
    to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
@keyframes revealShine {
    0%   { opacity: 1; }
    60%  { opacity: 0.4; }
    100% { opacity: 0; }
}

.preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.preview-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
}
.preview-frame img, .preview-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.face-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
    border: 1px solid rgba(93, 166, 112, 0.3);
}
.face-badge.warn { color: var(--gold); border-color: var(--line); }
.face-badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}
.preview-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.loader { text-align: center; padding: 48px 24px; }
.loader-orb {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold), var(--purple) 70%, transparent);
    animation: pulse 2s var(--ease) infinite, spin 3s linear infinite;
    box-shadow: 0 0 40px var(--gold), 0 0 80px var(--purple);
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
.loader h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 6px;
}
.loader p { color: var(--ink-dim); margin: 0; font-size: 14px; }
.loader .steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.loader .steps span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-faint);
    animation: blink 1.4s infinite;
}
.loader .steps span:nth-child(2) { animation-delay: 0.2s; }
.loader .steps span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.9); }
    40% { opacity: 1; transform: scale(1.2); background: var(--gold); }
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.result h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0;
    text-align: center;
}
.result .reveal {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.result .reveal img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.result .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.insufficient {
    padding: 16px 20px;
    background: rgba(204, 74, 74, 0.08);
    border: 1px solid rgba(204, 74, 74, 0.3);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-size: 14px;
    text-align: center;
    max-width: 500px;
}

/* ---------- pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    text-align: center;
    transition: all .3s var(--ease);
    display: flex;
    flex-direction: column;
}
.price-card:hover { border-color: var(--line); transform: translateY(-4px); }
.price-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), var(--bg-elev));
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
}
.price-card.featured:hover { transform: translateY(-12px); }
.ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}
.price-card .pack-icon { font-size: 28px; margin-bottom: 8px; }
.price-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 4px;
}
.price-card .tagline { font-size: 13px; color: var(--ink-dim); margin: 0 0 24px; }
.price-card .price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin: 0 0 8px;
    line-height: 1;
}
.price-card .price sub {
    font-size: 0.875rem;
    color: var(--ink-dim);
    font-family: var(--font-body);
    font-weight: 400;
    vertical-align: baseline;
    margin-left: 4px;
}
.price-card .credits {
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 24px;
    letter-spacing: 0.02em;
}
.price-card .credits strong {
    color: var(--gold-bright);
    font-size: 1.125rem;
    font-weight: 600;
}
.price-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    flex: 1;
}
.price-card .features li {
    padding: 8px 0 8px 24px;
    font-size: 14px;
    color: var(--ink);
    position: relative;
}
.price-card .features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.price-card .btn { width: 100%; }

/* ---------- trust / social proof ---------- */
.trust-section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: clamp(48px, 6vw, 72px);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: clamp(48px, 6vw, 72px);
}
.trust-stat {
    text-align: center;
    padding: 12px 8px;
}
.trust-num {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.trust-num span {
    font-size: 0.55em;
    color: var(--ink-dim);
    font-weight: 400;
    margin-left: 2px;
}
.trust-stat p {
    font-size: 14px;
    color: var(--ink-dim);
    margin: 0;
    line-height: 1.5;
}
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial {
    margin: 0;
    padding: 28px 26px;
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    position: relative;
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 2px;
    left: 18px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
}
.testimonial blockquote {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.65;
    padding-top: 10px;
}
.testimonial figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}
.testimonial figcaption strong {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
}
.testimonial figcaption span {
    color: var(--ink-faint);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@media (max-width: 960px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; }
}

/* ---------- legal pages (cgu/cgv/confidentialite/contact) ---------- */
.legal-page {
    padding: clamp(48px, 8vw, 96px) 0;
    min-height: 100vh;
}
.legal-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 5vw, 56px);
    box-shadow: var(--shadow-md);
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-dim);
    margin-bottom: 32px;
    transition: color .15s var(--ease);
}
.legal-back:hover { color: var(--gold); }
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
}
.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--ink-strong);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.legal-header .legal-meta {
    color: var(--ink-faint);
    font-size: 13px;
    margin: 0;
}
.legal-content {
    color: var(--ink);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 32px 0 12px;
    letter-spacing: 0.005em;
}
.legal-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin: 20px 0 8px;
}
.legal-content p, .legal-content ul, .legal-content ol {
    color: var(--ink);
    margin: 0 0 14px;
}
.legal-content ul, .legal-content ol { padding-left: 20px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--ink-strong); }
.legal-content .placeholder {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--line-soft);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.875em;
    font-family: 'SF Mono', Consolas, monospace;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.875rem;
}
.legal-content th, .legal-content td {
    border: 1px solid var(--line-soft);
    padding: 10px 14px;
    text-align: left;
}
.legal-content th {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.legal-content a { color: var(--gold); }
.legal-content a:hover { color: var(--gold-bright); }

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
}
.faq-item {
    border-top: 1px solid var(--line-soft);
    padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink-strong);
    text-align: left;
    cursor: pointer;
}
.faq-q::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform .2s var(--ease);
    flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
    color: var(--ink-dim);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 48px 0 40px;
    color: var(--ink-faint);
    font-size: 13px;
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}
.site-footer nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.site-footer nav a { color: var(--ink-dim); }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .fine {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 2, 8, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s var(--ease);
}
.modal.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    max-width: 420px;
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--ink-dim);
    font-size: 18px;
    transition: all .15s var(--ease);
}
.modal-close:hover { background: var(--bg-hover); color: var(--ink-strong); }
.modal-card.modal-wide {
    max-width: 720px;
    text-align: left;
    padding: 32px 28px;
}
.modal-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 12px;
}
.modal-card p { color: var(--ink-dim); margin: 0 0 24px; }
.modal-card .g-slot { display: flex; justify-content: center; margin-top: 8px; }

/* User gallery grid (inside gallery modal) */
.user-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 4px 2px;
}
.user-gallery-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    cursor: pointer;
    transition: all .2s var(--ease);
    background: var(--bg-card);
}
.user-gallery-tile:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.user-gallery-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-gallery-meta {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 11px;
    color: var(--ink);
}
.user-gallery-meta .badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.user-gallery-meta .badge.dim {
    background: transparent;
    color: var(--ink-dim);
    border: 1px solid var(--line-soft);
}

/* Account modal */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 8px;
    text-align: left;
}
.account-info {
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}
.account-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}
.account-row:last-child { border-bottom: 0; }
.account-row span { color: var(--ink-dim); }
.account-row strong { color: var(--ink-strong); font-weight: 500; font-family: var(--font-body); }
.account-rgpd h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink-strong);
    margin: 0 0 8px;
}
.account-rgpd p {
    font-size: 14px;
    color: var(--ink-dim);
    margin: 0 0 16px;
}
.account-rgpd .small { font-size: 12px; color: var(--ink-faint); margin-top: 12px; }
.account-rgpd .btn { margin-bottom: 10px; }
.acct-danger {
    color: var(--danger) !important;
    border-color: rgba(204, 74, 74, 0.35) !important;
}
.acct-danger:hover {
    border-color: var(--danger) !important;
    background: rgba(204, 74, 74, 0.08) !important;
    color: var(--danger) !important;
}
.acct-danger-btn {
    background: linear-gradient(135deg, #d85555, var(--danger)) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(204, 74, 74, 0.25) !important;
}
.acct-del-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}
.input-field {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink-strong);
    font-size: 15px;
    outline: none;
    transition: border-color .15s var(--ease);
}
.input-field:focus { border-color: var(--gold); }

@media (max-width: 600px) {
    .account-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- toasts ---------- */
.toast-stack {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}
.toast {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--ink);
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    animation: slideIn 0.3s var(--ease-out);
    max-width: 360px;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.toast.error   { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }

/* ---------- util ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-layout { grid-template-columns: 1fr; gap: 36px; }
    .hero-copy { order: 2; text-align: center; }
    .hero-copy .lead { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-meta { justify-content: center; }
    .compare { order: 1; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
    .process-grid { grid-template-columns: 1fr; gap: 8px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; order: -1; }
    .price-card.featured:hover { transform: translateY(-4px); }
    .studio-inner { padding: 28px 20px; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    section { padding: 56px 0; }
    .hero { padding: 40px 0 64px; }
    .hero-copy h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
    .hero-copy .lead { font-size: 1.0625rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .site-header .container { height: 60px; padding: 0 16px; }
    .site-header .brand-text { display: none; }
    .header-actions { gap: 8px; }
    .wallet-chip { padding: 7px 12px; font-size: 12px; }
    .user-chip { padding: 4px 10px 4px 4px; font-size: 12px; gap: 8px; }
    .user-chip img { width: 26px; height: 26px; }
    .user-chip #userName { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .btn { padding: 12px 22px; font-size: 14px; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
    .btn-sm { padding: 8px 14px; font-size: 12px; }
    .section-head { margin-bottom: 36px; }
    .section-head h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .dropzone { padding: 32px 16px; }
    .dropzone-icon { width: 48px; height: 48px; font-size: 20px; }
    .preview-frame { aspect-ratio: 1 / 1; }
    .result .reveal { aspect-ratio: 1 / 1; }
    .price-card { padding: 32px 22px 28px; }
    .price-card .price { font-size: 2.125rem; }
    .modal-card { padding: 32px 20px 24px; border-radius: var(--radius-lg); }
    .modal-card.modal-wide { padding: 28px 18px; }
    .toast-stack { top: 72px; right: 10px; left: 10px; max-width: none; }
    .compare .handle::before { width: 40px; height: 40px; }
    .gallery-card { aspect-ratio: 1 / 1; }
    .user-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 420px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 2rem; }
    .user-chip #userName { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
