/* ==========================================================================
   Indirva — Instagram Reels İndirici
   1. Tokens  2. Base  3. Layout  4. Header  5. Buttons  6. Hero & Tool
   7. Drawer & fetch states  8. Sections  9. FAQ  10. Inner pages  11. Footer  12. Responsive
   ========================================================================== */

/* 1. Tokens */
:root {
    --violet: #7b2ff7;
    --magenta: #e1306c;
    --orange: #ff8a3d;
    --gradient: linear-gradient(120deg, #7b2ff7 0%, #c13584 45%, #e1306c 70%, #ff8a3d 100%);
    --ink: #120d1f;              /* constant dark (footer, phone, dark panels) */
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1200px;

    /* Light theme (default) */
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #f8f6fd;
    --surface: #ffffff;
    --heading: #120d1f;
    --text: #2a2540;
    --body-text: #4a4563;
    --muted: #6b6685;
    --line: #ece8f5;
    --header-bg: rgba(255, 255, 255, .82);
    --header-line: #ece8f5;
    --menu-bg: #ffffff;
    --nav-link: #4a4563;
    --nav-hover: #f3eefc;
    --hero-bg: linear-gradient(180deg, #f7f2ff 0%, #fff6f9 60%, #ffffff 100%);
    --hero-dot: rgba(18, 13, 31, .08);
    --blob-opacity: .22;
    --glass: rgba(255, 255, 255, .7);
    --glass-line: #e6defa;
    --input-bg: #ffffff;
    --badge-bg: #f1eafe;
    --eyebrow-bg: #fdeef4;
    --success-bg: #ecfdf3;
    --note-bg: #fff8eb;
    --error-text: #b91c1c;
    --skel-1: #f1eef8;
    --skel-2: #e6e1f2;
    --btn-dark-bg: #120d1f;
    --btn-dark-text: #ffffff;
    --shadow: 0 10px 30px -12px rgba(39, 20, 84, .18);
    --shadow-lg: 0 30px 80px -24px rgba(91, 33, 182, .35);
}

/* Dark theme (user selected via header toggle) */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e0a18;
    --bg-soft: #151025;
    --surface: #1a1430;
    --heading: #ffffff;
    --text: #d9d4ea;
    --body-text: #b9b3cf;
    --muted: #958fae;
    --line: #2a2242;
    --header-bg: rgba(14, 10, 24, .82);
    --header-line: rgba(255, 255, 255, .07);
    --menu-bg: #120d1f;
    --nav-link: rgba(255, 255, 255, .72);
    --nav-hover: rgba(255, 255, 255, .08);
    --nav-track: rgba(255, 255, 255, .05);
    --hero-bg: #120d1f;
    --hero-dot: rgba(255, 255, 255, .09);
    --blob-opacity: .55;
    --glass: rgba(255, 255, 255, .06);
    --glass-line: rgba(255, 255, 255, .12);
    --input-bg: #ffffff;
    --badge-bg: rgba(123, 47, 247, .18);
    --eyebrow-bg: rgba(225, 48, 108, .14);
    --success-bg: rgba(22, 163, 74, .15);
    --note-bg: rgba(245, 199, 126, .1);
    --error-text: #fecaca;
    --skel-1: #221a3a;
    --skel-2: #2d2449;
    --btn-dark-bg: #ffffff;
    --btn-dark-text: #120d1f;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(91, 33, 182, .45);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, textarea { font: inherit; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 3. Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--magenta); background: var(--eyebrow-bg); padding: 6px 14px; border-radius: 99px; margin-bottom: 16px;
}

/* 4. Header — floating glass pill */
.site-header { position: sticky; top: 0; z-index: 50; height: 76px; padding-top: 10px; pointer-events: none; }
.site-header > .container { pointer-events: auto; }
.header-inner {
    position: relative; display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 8px 0 10px;
    border-radius: 20px; background: var(--header-bg); border: 1px solid var(--glass-line);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 10px 30px -22px rgba(123, 47, 247, .45);
    transition: box-shadow .3s, background .3s, border-color .3s;
}
/* gradient hairline along the bottom of the pill */
.header-inner::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1px; border-radius: 1px;
    background: linear-gradient(90deg, transparent, #7b2ff7, #e1306c, #ff8a3d, transparent); opacity: .55; pointer-events: none;
}
.site-header.is-scrolled .header-inner { box-shadow: 0 18px 40px -20px rgba(18, 13, 31, .35); border-color: transparent; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; font-size: 1.3rem; flex: none; }
.brand-mark { display: block; width: 42px; height: 42px; flex: none; filter: drop-shadow(0 8px 14px rgba(225, 48, 108, .35)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-logo { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand-light { color: #fff; }
.brand-word { letter-spacing: -.02em; }
.brand-word b { font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-light .brand-word b { background: linear-gradient(90deg, #ffb13d, #ff6a9a); -webkit-background-clip: text; background-clip: text; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: 14px; background: var(--nav-track, rgba(18, 13, 31, .035)); }
.main-nav > ul > li > a, .main-nav .menu-trigger { position: relative; display: block; white-space: nowrap; padding: 8px 14px; border-radius: 10px; color: var(--nav-link); font-size: .9rem; font-weight: 500; transition: color .2s, background .2s; }
.main-nav > ul > li > a:hover, .main-nav .menu-trigger:hover { color: var(--heading); background: var(--surface); }
.main-nav .menu-trigger { display: inline-flex; align-items: center; gap: 4px; }
.main-nav > ul > li > a.is-active, .main-nav .menu-trigger.is-active { color: var(--heading); font-weight: 600; background: var(--surface); box-shadow: 0 4px 12px -6px rgba(18, 13, 31, .25); }
.main-nav > ul > li > a.is-active::after, .main-nav .menu-trigger.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: var(--gradient);
}
.nav-toggle { display: none; place-items: center; background: var(--nav-hover); border: 1px solid var(--line); color: var(--heading); width: 44px; height: 44px; border-radius: 13px; cursor: pointer; }
.nav-toggle .icon { margin: auto; width: 22px; height: 22px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { position: relative; overflow: hidden; padding: 11px 18px; border-radius: 13px; }
.header-cta::before {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
    animation: cta-shine 4.5s ease-in-out infinite;
}
@keyframes cta-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .header-cta::before { animation: none; display: none; } }

@media (max-width: 1180px) {
    .main-nav > ul > li > a, .main-nav .menu-trigger { padding: 8px 10px; font-size: .86rem; }
    .header-inner { gap: 12px; }
}

/* Theme switch: Light / System / Dark */
.theme-switch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 13px; background: var(--nav-hover); border: 1px solid var(--line); isolation: isolate; }
.theme-switch button { display: grid; place-items: center; gap: 6px; width: 32px; height: 32px; padding: 0; border: 0; background: none; border-radius: 10px; color: var(--muted); cursor: pointer; transition: color .25s; }
.theme-switch button:hover { color: var(--heading); }
.theme-switch button[aria-checked="true"] { color: var(--magenta); }
.theme-switch .icon { width: 16px; height: 16px; }
.ts-thumb { position: absolute; z-index: -1; top: 3px; left: 3px; width: calc((100% - 6px) / 3); height: calc(100% - 6px); border-radius: 10px; background: var(--surface); box-shadow: 0 3px 10px -3px rgba(18, 13, 31, .3); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
:root[data-theme-mode="system"] .ts-thumb { transform: translateX(100%); }
:root[data-theme-mode="dark"] .ts-thumb { transform: translateX(200%); }
.ts-wide { width: 100%; }
.ts-wide button { width: auto; height: 38px; display: flex; justify-content: center; font-size: .84rem; font-weight: 600; }

/* 5. Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 14px; border: 0; cursor: pointer;
    font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gradient { background: var(--gradient); background-size: 160% 100%; color: #fff; box-shadow: 0 12px 28px -10px rgba(225, 48, 108, .8); }
.btn-gradient:hover { background-position: 100% 0; }
.btn-ghost { background: var(--bg-soft); color: var(--heading); border: 1px solid var(--line); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-text); }

/* 6. Hero & Tool */
.hero {
    position: relative; overflow: hidden; color: var(--heading);
    background: var(--hero-bg);
    padding: 80px 0 120px;
    margin-top: -76px; padding-top: 156px;
}
.hero::before { /* dotted grid */
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity); animation: float 14s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: #7b2ff7; top: -160px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: #e1306c; bottom: -200px; right: -80px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #ff8a3d; top: 40%; left: 45%; opacity: .3; animation-delay: -9s; }
@keyframes float { 50% { transform: translate(40px, -30px) scale(1.08); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 99px;
    background: var(--glass); border: 1px solid var(--glass-line); font-size: .85rem; margin-bottom: 22px;
}
.hero-badge b { color: #fff; background: var(--gradient); padding: 2px 10px; border-radius: 99px; font-size: .72rem; letter-spacing: .05em; }
.hero h1 { color: var(--heading); font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1.is-long { font-size: clamp(1.9rem, 3.9vw, 2.9rem); line-height: 1.15; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 580px; margin-bottom: 34px; }

/* Tool card */
.tool-card {
    position: relative; padding: 10px; border-radius: 24px;
    background: var(--glass); border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.tool-card::before { /* gradient ring */
    content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1px;
    background: var(--gradient); opacity: .7;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.tool-form { display: flex; gap: 8px; background: var(--input-bg); border-radius: 18px; padding: 8px; }
.tool-input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.tool-input-wrap > .icon { position: absolute; left: 16px; color: var(--muted); }
.tool-input {
    width: 100%; height: 56px; border: 0; outline: 0; background: transparent;
    padding: 0 96px 0 48px; color: var(--ink); font-size: 1rem; text-overflow: ellipsis;
}
.tool-input::placeholder { color: #a19cb5; }
.paste-btn {
    position: absolute; right: 8px; display: inline-flex; align-items: center; gap: 6px;
    background: #f8f6fd; border: 1px solid #ece8f5; color: #120d1f;
    padding: 7px 12px; border-radius: 10px; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.paste-btn:hover { border-color: var(--violet); color: var(--violet); }
.tool-submit { height: 56px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.tool-submit[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.25); }
.tool-submit.is-loading { opacity: .8; cursor: wait; }
.tool-form { transition: box-shadow .25s; }
.tool-form:has(.is-invalid) { box-shadow: 0 0 0 2px rgba(220, 38, 38, .55); }
.tool-form:has(.is-valid) { box-shadow: 0 0 0 2px rgba(22, 163, 74, .5); }
.clear-btn { position: absolute; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--nav-hover); color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.clear-btn:hover { background: rgba(220, 38, 38, .12); color: var(--danger); transform: rotate(90deg); }
.clear-btn .icon { width: 16px; height: 16px; }
.clear-btn[hidden], .paste-btn[hidden] { display: none; }
.valid-mark { position: absolute; right: 50px; display: none; color: var(--success); }
.valid-mark .icon { width: 18px; height: 18px; }
.is-valid .valid-mark { display: grid; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 10px 6px; font-size: .84rem; color: var(--muted); }
.tool-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tool-meta .icon { color: var(--success); }
.tool-error {
    display: none; align-items: center; gap: 8px; margin: 10px 10px 4px; padding: 10px 14px; border-radius: 12px;
    background: rgba(220, 38, 38, .1); border: 1px solid rgba(248, 113, 113, .4); color: var(--error-text); font-size: .9rem;
}
.tool-error.is-visible { display: flex; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
    position: relative; width: 270px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 10px;
    background: #0b0816; border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 40px 90px -20px rgba(123, 47, 247, .6), inset 0 0 0 2px rgba(255, 255, 255, .04);
    transform: rotate(4deg); animation: tilt 7s ease-in-out infinite;
}
@keyframes tilt { 50% { transform: rotate(1deg) translateY(-12px); } }
.phone-screen {
    position: relative; height: 100%; border-radius: 33px; overflow: hidden;
    background: linear-gradient(160deg, #3b1d7a 0%, #b02a6b 55%, #ff8a3d 100%);
}
.phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .65)); }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 20px; background: #0b0816; z-index: 3; }
.phone-top { position: absolute; top: 44px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.phone-play { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.phone-play .icon { fill: #fff; width: 24px; height: 24px; margin-left: 4px; }
.phone-bottom { position: absolute; left: 16px; right: 60px; bottom: 22px; z-index: 2; font-size: .8rem; }
.phone-bottom strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.phone-bottom .bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin-top: 12px; overflow: hidden; }
.phone-bottom .bar::after { content: ""; display: block; height: 100%; width: 40%; background: #fff; animation: progress 4s linear infinite; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.float-chip {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
    background: var(--surface); color: var(--heading); padding: 10px 14px; border-radius: 16px; font-size: .82rem; font-weight: 600;
    box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.float-chip .chip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--gradient); }
.chip-1 { top: 18%; left: -40px; }
.chip-2 { bottom: 16%; right: -30px; animation-delay: -3s; }
.chip-2 .chip-ico { background: var(--success); }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; max-width: 760px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -14px rgba(123, 47, 247, .35); transition: transform .25s ease, box-shadow .25s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(225, 48, 108, .45); }
.stat-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gradient); color: #fff; box-shadow: 0 6px 16px -6px rgba(193, 53, 132, .6); }
.stat-ico svg { width: 20px; height: 20px; }
.hero-stats strong { display: block; font-size: 1.25rem; line-height: 1.1; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat-card span:not(.stat-ico) { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); }

/* 7a. Mobile drawer menu */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 90; background: rgba(12, 8, 22, .55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(88vw, 380px);
    display: flex; flex-direction: column; overflow-y: auto;
    background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -30px 0 80px -20px rgba(18, 13, 31, .45);
    transform: translateX(105%); transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.drawer-open .drawer { transform: translateX(0); }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-open { overflow: hidden; }

.drawer-head {
    position: relative; overflow: hidden; flex-shrink: 0; padding: 22px 20px 26px; color: #fff; background: var(--gradient);
}
.drawer-head::after { /* decorative rings */
    content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, .12);
}
.drawer-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.drawer-head .brand { color: #fff; }
.drawer-head .brand-mark { filter: none; }
.drawer .brand-mark { width: 42px; height: 42px; }
.drawer-close {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .2); color: #fff;
}
.drawer-close .icon { width: 20px; height: 20px; }
.drawer-head p { position: relative; z-index: 1; margin: 18px 0 0; font-size: .88rem; opacity: .92; }

.drawer-nav { flex-shrink: 0; padding: 18px 16px 8px; }
.drawer-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 6px 10px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drawer-nav a {
    display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; color: var(--heading);
    border: 1px solid transparent; transition: background .2s, border-color .2s;
    opacity: 0; transform: translateX(24px);
}
.drawer-open .drawer-nav a { opacity: 1; transform: none; transition: opacity .4s, transform .4s cubic-bezier(.22, 1, .36, 1), background .2s; }
.drawer-open .drawer-nav li:nth-child(1) a { transition-delay: .08s; }
.drawer-open .drawer-nav li:nth-child(2) a { transition-delay: .13s; }
.drawer-open .drawer-nav li:nth-child(3) a { transition-delay: .18s; }
.drawer-open .drawer-nav li:nth-child(4) a { transition-delay: .23s; }
.drawer-open .drawer-nav li:nth-child(5) a { transition-delay: .28s; }
.drawer-open .drawer-nav li:nth-child(6) a { transition-delay: .33s; }
.drawer-nav a:hover, .drawer-nav a.is-active { background: var(--bg-soft); border-color: var(--line); }
.drawer-ico {
    display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px;
    background: var(--badge-bg); color: var(--violet);
}
.drawer-nav a.is-active .drawer-ico { background: var(--gradient); color: #fff; }
.drawer-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.drawer-txt strong { font-size: .95rem; font-weight: 600; }
.drawer-txt small { font-size: .76rem; color: var(--muted); }
.drawer-nav a > .icon:last-child { color: var(--muted); transform: rotate(-90deg); width: 18px; }

.drawer-foot { margin-top: auto; padding: 16px 20px 24px; display: grid; gap: 14px; }
.drawer-foot .btn { width: 100%; padding: 15px; }
.theme-row { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.theme-row-label { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 600; font-size: .92rem; }
.theme-row-label .icon { width: 18px; height: 18px; color: var(--magenta); }
.drawer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .76rem; }
.drawer-legal a { color: var(--muted); }

/* 7b. Tool navigation (tabs, mega menu, drawer tiles) */
.tool-tabs {
    display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 22px; border-radius: 18px;
    background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px);
}
.tool-tabs a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 13px;
    color: var(--muted); font-size: .86rem; font-weight: 600; transition: .2s;
}
.tool-tabs a:hover { color: var(--heading); background: var(--nav-hover); }
.tool-tabs a.is-active { color: #fff; background: var(--gradient); box-shadow: 0 8px 20px -8px rgba(225, 48, 108, .7); }
.tool-tabs .icon { width: 16px; height: 16px; }

.has-menu { position: relative; }
.menu-trigger {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 0; border-radius: 10px; cursor: pointer;
    background: none; color: var(--nav-link); font-size: .92rem; font-weight: 500;
}
.menu-trigger .icon { width: 15px; height: 15px; transition: transform .25s; }
.menu-trigger:hover, .menu-trigger.is-active, .has-menu:focus-within .menu-trigger { color: var(--heading); background: var(--surface); }
.has-menu:hover .menu-trigger .icon, .has-menu:focus-within .menu-trigger .icon { transform: rotate(180deg); }
.mega {
    position: absolute; top: calc(100% + 14px); left: 50%; width: 460px; padding: 10px; border-radius: 22px; z-index: 60;
    background: var(--menu-bg); border: 1px solid var(--glass-line);
    box-shadow: 0 30px 60px -24px rgba(18, 13, 31, .35), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: top center;
    transition: opacity .22s, transform .28s cubic-bezier(.22, 1, .36, 1), visibility .22s;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
/* little arrow pointing to the trigger */
.mega::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
    background: var(--menu-bg); border-left: 1px solid var(--glass-line); border-top: 1px solid var(--glass-line); border-radius: 3px 0 0 0; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.mega-head { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; margin-bottom: 8px; border-radius: 15px; background: var(--gradient); color: #fff; }
.mega-head::after { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mega-head-title { position: relative; font-weight: 700; font-size: .92rem; }
.mega-head-tags { position: relative; display: flex; gap: 6px; }
.mega-head-tags > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: .7rem; font-weight: 600; }
.mega-head-tags .icon { width: 11px; height: 11px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); transition: border-color .2s, transform .25s, box-shadow .25s; }
.mega-item:hover { border-color: var(--glass-line); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(123, 47, 247, .55); }
.mega-item.is-active { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; border: 1px solid transparent; }
.mega-txt strong { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 3px; }
.mega-txt small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.35; }
.mega-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--badge-bg); color: var(--magenta); transition: background .25s, color .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.mega-ico .icon { width: 20px; height: 20px; }
.mega-item:hover .mega-ico, .mega-item.is-active .mega-ico { background: var(--gradient); color: #fff; transform: rotate(-6deg) scale(1.06); }
.mega-go { position: absolute; top: 16px; right: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.mega-go .icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.mega-item:hover .mega-go { background: var(--magenta); color: #fff; transform: translateX(2px); }
.mega-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 14px; border-radius: 13px; background: var(--bg-soft); color: var(--body-text); font-size: .82rem; transition: background .2s; }
.mega-foot .icon { width: 16px; height: 16px; color: var(--magenta); }
.mega-foot b { margin-left: auto; color: var(--magenta); font-weight: 600; }
.mega-foot:hover { background: var(--badge-bg); }

.drawer-tools { flex-shrink: 0; padding: 18px 16px 0; }
.tool-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-tile {
    display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px;
    border: 1px solid var(--line); color: var(--heading); font-size: .84rem; line-height: 1.25;
}
.tool-tile.is-active { border-color: transparent; background: var(--gradient); color: #fff; }
.tool-tile.is-active .drawer-ico { background: rgba(255, 255, 255, .2); color: #fff; }

/* Hero phone variants */
.phone-stack { position: absolute; inset: 28% 18% 30%; z-index: 2; }
.phone-stack i { position: absolute; inset: 0; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }
.phone-stack i:nth-child(1) { transform: rotate(-9deg) translateX(-10px); }
.phone-stack i:nth-child(2) { transform: rotate(6deg) translateX(10px); }
.phone-stack i:nth-child(3) { background: rgba(255, 255, 255, .25); }
.phone-dots { position: absolute; z-index: 2; top: 74%; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.phone-dots i, .phone-dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.phone-dots b { background: #fff; width: 16px; border-radius: 6px; }
.phone-grid { position: absolute; inset: 26% 14% 32%; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-grid i { border-radius: 10px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4); }

.compare .is-here { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .08); }
.compare a { color: #f9a8d4; font-weight: 600; font-size: .85rem; }
.compare .is-off { opacity: .55; }
.cta-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.cta-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; color: #fff; font-size: .88rem; font-weight: 500; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.cta-tools a:hover { background: rgba(255, 255, 255, .26); }
.try-demo { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; color: var(--magenta); font-weight: 600; font-size: .84rem; }

/* 7c. Fetch: "studio" loading screen (always dark for focus) */
.result-area { position: relative; margin-top: -70px; z-index: 5; scroll-margin-top: 96px; }
.result-area:empty { display: none; }

.studio {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; padding: 2px;
    background: #120d1f; box-shadow: 0 40px 90px -30px rgba(91, 33, 182, .7);
}
.studio::before { /* rotating gradient border */
    content: ""; position: absolute; inset: -60%; z-index: -1;
    background: conic-gradient(from 0deg, transparent 0 60%, #7b2ff7, #e1306c, #ff8a3d, transparent 95%);
    animation: spin 3.2s linear infinite;
}
.studio-inner {
    position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
    padding: 36px; border-radius: 28px; color: #fff; overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(123, 47, 247, .35), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(225, 48, 108, .25), transparent 45%),
        #120d1f;
}
.studio-inner::after { /* dotted texture */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 20px 20px;
}
.studio-inner > * { position: relative; z-index: 1; }

.orbit { position: relative; width: 260px; aspect-ratio: 1; margin: 0 auto; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); animation: spin 14s linear infinite; }
.orbit-ring.r1 { inset: 0; }
.orbit-ring.r2 { inset: 40px; animation-duration: 9s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 255, 255, .1); }
.sat {
    position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); color: #fff;
}
.sat .icon { width: 18px; height: 18px; }
.r1 .sat:nth-child(1) { top: -20px; left: calc(50% - 20px); }
.r1 .sat:nth-child(2) { bottom: -20px; left: calc(50% - 20px); }
.r1 .sat:nth-child(3) { left: -20px; top: calc(50% - 20px); }
.r1 .sat:nth-child(4) { right: -20px; top: calc(50% - 20px); }
.r2 .sat { width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); border: 0; }
.r2 .sat:nth-child(1) { top: 10%; right: 10%; }
.r2 .sat:nth-child(2) { bottom: 10%; left: 10%; }
.r2 .sat .icon { width: 14px; height: 14px; }
.orbit-core {
    position: absolute; inset: 82px; border-radius: 30px; display: grid; place-items: center;
    background: var(--gradient); box-shadow: 0 0 0 10px rgba(225, 48, 108, .15), 0 0 60px rgba(225, 48, 108, .7);
    animation: breathe 1.8s ease-in-out infinite;
}
.orbit-core .icon { width: 38px; height: 38px; color: #fff; }
@keyframes breathe { 50% { transform: scale(1.07); box-shadow: 0 0 0 18px rgba(225, 48, 108, .08), 0 0 80px rgba(225, 48, 108, .9); } }

.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.big-pct { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 2px; font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.big-pct span { background: linear-gradient(90deg, #c4b5fd, #f9a8d4, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-pct small { font-size: 1.6rem; color: rgba(255, 255, 255, .5); }
.studio-status { margin: 0 0 20px; font-size: 1.02rem; color: rgba(255, 255, 255, .85); min-height: 1.7em; }
.segbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.segbar i { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.segbar i::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #7b2ff7, #e1306c, #ff8a3d); transition: width .5s ease; }
.segbar i.is-done::after { width: 100%; }
.segbar i.is-active::after { width: 60%; animation: segpulse 1s ease-in-out infinite alternate; }
@keyframes segpulse { to { width: 90%; } }
.seglabels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; font-size: .72rem; color: rgba(255, 255, 255, .45); }
.seglabels span.is-on { color: #fff; }
.console {
    margin: 0; padding: 14px 16px; border-radius: 16px; min-height: 120px;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08);
    font: 500 .8rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; color: rgba(255, 255, 255, .75);
}
.console-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: rgba(255, 255, 255, .4); }
.console-head b { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.console-head b:nth-child(2) { background: #febc2e; }
.console-head b:nth-child(3) { background: #28c840; margin-right: 6px; }
.console div.line { animation: rise .3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console .ok { color: #4ade80; }
.console .hl { color: #f9a8d4; }
.console .cursor { display: inline-block; width: 8px; height: 14px; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* 7d. Result: profile on top, media below, actions last */
.result {
    position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
    border-radius: 30px; box-shadow: var(--shadow-lg); animation: rise .5s ease;
}
.result-cover { height: 90px; background: var(--gradient); position: relative; overflow: hidden; }
.result-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 16px 16px; }
.result-body { padding: 0 32px 32px; }

.profile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: -44px; position: relative; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; padding: 4px; background: conic-gradient(#7b2ff7, #e1306c, #ff8a3d, #7b2ff7); flex-shrink: 0; }
.profile-avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--surface); background: linear-gradient(140deg, #ffe1ec, #ede4ff); color: var(--magenta); font-size: 2rem; font-weight: 800; }
.profile-info { flex: 1; min-width: 200px; padding-bottom: 4px; }
.profile-name { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1.25rem; color: var(--heading); }
.verified { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #3b82f6; color: #fff; }
.verified .icon { width: 12px; height: 12px; stroke-width: 3; }
.profile-handle { margin: 0; color: var(--muted); font-size: .9rem; }
.type-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; margin-bottom: 6px; border-radius: 99px; background: var(--badge-bg); color: var(--violet); font-weight: 700; font-size: .8rem; }
.type-pill .icon { width: 15px; height: 15px; }

.result-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 14px; }
.result-success { display: inline-flex; align-items: center; gap: 6px; color: var(--success); background: var(--success-bg); font-weight: 600; font-size: .82rem; padding: 6px 12px; border-radius: 99px; }
.result-time { font-size: .8rem; color: var(--muted); }

.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.metric { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); font-size: .86rem; color: var(--muted); }
.metric .icon { color: var(--magenta); width: 17px; height: 17px; }
.metric strong { color: var(--heading); }
.caption-box { padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 26px; }
.caption-box p { margin: 0 0 8px; color: var(--body-text); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.caption-box.is-open p { -webkit-line-clamp: unset; }
.caption-actions { display: flex; gap: 16px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--violet); font-weight: 600; font-size: .8rem; }
.link-btn .icon { width: 14px; height: 14px; }

.media-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.media-title h3 { margin: 0; font-size: 1.05rem; }
.media-title .link-btn { font-size: .85rem; }

/* Single media */
.single { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 32px; align-items: start; }
.media-art {
    --h: 280;
    position: relative; overflow: hidden; border-radius: 22px; color: #fff;
    background:
        radial-gradient(circle at 70% 25%, hsla(calc(var(--h) + 60), 95%, 75%, .9) 0 12%, transparent 13%),
        linear-gradient(165deg, hsl(var(--h) 65% 30%) 0%, hsl(calc(var(--h) + 40) 75% 48%) 55%, hsl(calc(var(--h) + 80) 90% 62%) 100%);
}
.media-art::before { /* hills */
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -12%; height: 45%; border-radius: 50% 50% 0 0;
    background: hsla(var(--h), 60%, 18%, .55);
}
.media-art.is-video { aspect-ratio: 9 / 16; }
.media-art.is-image { aspect-ratio: 4 / 5; }
.media-art > * { position: absolute; z-index: 1; }
.media-art img { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.art-badges { top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.pill .icon { width: 12px; height: 12px; }
.pill-light { background: #fff; color: #120d1f; }
.art-play {
    top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); transition: transform .2s;
}
.art-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.art-play .icon { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.art-bar { left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.art-bar span { display: block; height: 100%; width: 35%; background: #fff; }

.download-panel h3 { font-size: 1.05rem; margin-bottom: 12px; }
.quality-list { display: grid; gap: 10px; margin-bottom: 18px; }
.quality-opt { position: relative; cursor: pointer; display: block; }
.quality-opt input { position: absolute; opacity: 0; }
.q-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); transition: .2s; }
.q-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: .2s; }
.q-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.q-txt b { color: var(--heading); font-size: .98rem; }
.q-txt span { color: var(--muted); font-size: .8rem; }
.q-size { font-size: .8rem; font-weight: 600; color: var(--muted); }
.q-flag { position: absolute; top: -9px; right: 14px; font-size: .64rem; font-weight: 700; color: #fff; background: var(--gradient); padding: 2px 9px; border-radius: 99px; }
.quality-opt input:checked + .q-box { border-color: var(--magenta); background: var(--eyebrow-bg); }
.quality-opt input:checked + .q-box .q-radio { border: 6px solid var(--magenta); }
.quality-opt input:focus-visible + .q-box { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Gallery (carousel / multi-item posts) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { position: relative; animation: rise .45s ease both; }
.tile .media-art { aspect-ratio: 4 / 5; border-radius: 18px; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s; }
.tile.is-selected .media-art { outline-color: var(--magenta); }
.tile:hover .media-art { transform: translateY(-3px); }
.tile-num { top: 10px; left: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(0, 0, 0, .5); font-size: .78rem; font-weight: 700; backdrop-filter: blur(6px); }
.tile-check { position: absolute; top: 10px; right: 10px; z-index: 2; cursor: pointer; }
.tile-check input { position: absolute; opacity: 0; }
.tile-check span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #fff; background: rgba(0, 0, 0, .3); color: transparent; transition: .2s; }
.tile-check input:checked + span { background: var(--gradient); border-color: transparent; color: #fff; }
.tile-check .icon { width: 16px; height: 16px; stroke-width: 3; }
.tile-kind { bottom: 54px; left: 10px; }
.tile-dl {
    position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .8rem;
    background: rgba(255, 255, 255, .95); color: #120d1f; transition: .2s;
}
.tile-dl:hover { background: #fff; transform: translateY(-1px); }
.tile-dl.is-done { background: var(--success); color: #fff; }
.tile-dl .icon { width: 15px; height: 15px; }
.tile .art-play { width: 44px; height: 44px; }
.tile .art-play .icon { width: 18px; height: 18px; }

/* Download button + actions */
.download-btn { position: relative; overflow: hidden; width: 100%; padding: 17px; font-size: 1.02rem; border-radius: 16px; }
.download-btn .fill { position: absolute; inset: 0; width: 0; background: rgba(255, 255, 255, .25); transition: width .25s linear; }
.download-btn > span:not(.fill) { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.download-btn.is-done { background: var(--success); box-shadow: 0 12px 28px -10px rgba(22, 163, 74, .7); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.demo-note { margin: 16px 0 0; font-size: .78rem; color: var(--muted); background: var(--note-bg); border: 1px dashed #f5c77e; padding: 8px 12px; border-radius: 10px; }
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 160%);
    display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px);
    background: #120d1f; color: #fff; font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-lg);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast .icon { color: #4ade80; }

@media (max-width: 900px) {
    .studio-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; text-align: left; }
    .orbit { width: 190px; }
    .orbit-core { inset: 58px; border-radius: 22px; }
    .single { grid-template-columns: 1fr; }
    .single .media-art { max-width: 300px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
    .result-body { padding: 0 18px 22px; }
    .profile { margin-top: -38px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .profile-info { min-width: 0; }
    .profile-avatar { width: 78px; height: 78px; }
    .type-pill { order: 3; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tile-kind { display: none; }
    .tool-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
    .tool-tabs a { justify-content: center; flex-direction: column; gap: 4px; padding: 10px 4px; font-size: .78rem; text-align: center; }
    .seglabels { display: none; }
    .console { min-height: 100px; font-size: .74rem; }
    .result-actions { grid-template-columns: 1fr; }
}

/* 8. Sections */
.steps-grid, .features-grid { display: grid; gap: 24px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; transition: .25s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-card::before {
    counter-increment: step; content: "0" counter(step);
    position: absolute; top: 22px; right: 26px; font-size: 3rem; font-weight: 800; line-height: 1;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .18;
}
.card-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: var(--gradient); margin-bottom: 20px; box-shadow: 0 10px 24px -10px rgba(225, 48, 108, .8); }
.card-ico .icon { width: 26px; height: 26px; }
.step-card h3, .feature-card h3 { font-size: 1.15rem; }
.step-card p, .feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.features-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: .25s; }
.feature-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.feature-card .card-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--badge-bg); color: var(--violet); box-shadow: none; }
.feature-card:hover .card-ico { background: var(--gradient); color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual { position: relative; border-radius: var(--radius-lg); padding: 40px; background: var(--ink); color: #fff; overflow: hidden; }
.split-visual::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--magenta); filter: blur(100px); opacity: .5; top: -80px; right: -80px; }
.compare { position: relative; display: grid; gap: 12px; }
.compare div { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.compare b { color: #4ade80; display: inline-flex; gap: 6px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--success); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 3px; }

.content-block { max-width: 860px; margin: 0 auto; }
.content-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.content-block h3 { font-size: 1.2rem; margin-top: 1.6em; }
.content-block p, .content-block li { color: var(--body-text); }



.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 60px; text-align: center; color: #fff; background: var(--gradient); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: #120d1f; }

/* 9. FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; color: var(--magenta); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* 10. Inner pages */
.page-hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--heading); padding: 156px 0 70px; margin-top: -76px; }
.page-hero::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: var(--violet); filter: blur(120px); opacity: var(--blob-opacity); top: -250px; right: -100px; }
.page-hero::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--magenta); filter: blur(120px); opacity: var(--blob-opacity); bottom: -260px; left: 10%; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--heading); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.page-hero .lead { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.page-hero .updated { font-size: .85rem; color: var(--muted); margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: var(--muted); display: flex; gap: 8px; }
.breadcrumb a { color: var(--heading); }
.page-body { padding: 70px 0 100px; }
.prose-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--body-text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .note { background: var(--bg-soft); border-left: 4px solid var(--magenta); padding: 16px 20px; border-radius: 0 14px 14px 0; }
.page-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.05rem; }
.aside-card p { font-size: .9rem; color: var(--muted); }
.aside-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 6px 0; color: var(--text); font-size: .92rem; }
.aside-links a:hover { color: var(--magenta); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .card-ico { width: 46px; height: 46px; margin: 0; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--heading); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--heading); outline: 0; transition: .2s; font: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px rgba(123, 47, 247, .12); }
.field textarea { min-height: 140px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; }
.alert-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hp { position: absolute; left: -9999px; }

/* 11. Footer — light (themed), brand gradients */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 80px 0 0; font-size: .92rem; color: var(--body-text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
.ft-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(110px); opacity: var(--blob-opacity); pointer-events: none; }
.ft-glow-1 { width: 460px; height: 460px; background: var(--violet); left: -160px; bottom: -120px; }
.ft-glow-2 { width: 420px; height: 420px; background: var(--magenta); right: -140px; top: 120px; }

.ft-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; margin-bottom: 64px;
    border-radius: 26px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; border: 1.5px solid transparent;
    box-shadow: 0 30px 60px -40px rgba(123, 47, 247, .6); }
.ft-cta-text { display: flex; align-items: center; gap: 18px; }
.ft-cta-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--gradient); color: #fff; box-shadow: 0 12px 24px -10px rgba(225, 48, 108, .7); }
.ft-cta-ico .icon { width: 24px; height: 24px; }
.ft-cta-title { margin: 0 0 2px; font-size: 1.2rem; font-weight: 800; color: var(--heading); letter-spacing: -.01em; }
.ft-cta-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.ft-cta-btn { flex: none; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1fr; gap: 48px; padding-bottom: 20px; }
.footer-about .brand { color: var(--heading); }
.footer-about p { margin: 18px 0 20px; max-width: 360px; color: var(--body-text); line-height: 1.7; }
.ft-mail { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--heading); font-weight: 600; font-size: .88rem; transition: border-color .2s, transform .2s; }
.ft-mail:hover { border-color: var(--magenta); transform: translateY(-2px); }
.ft-mail span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; }
.ft-mail .icon { width: 15px; height: 15px; }
.ft-badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--badge-bg); color: var(--heading); font-size: .76rem; font-weight: 600; }
.ft-badges .icon { width: 13px; height: 13px; color: var(--magenta); }

.footer-col h2 { position: relative; color: var(--heading); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 20px; padding-bottom: 12px; }
.footer-col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: var(--gradient); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; color: var(--body-text); transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--magenta); transform: translateX(4px); }
.ft-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--magenta); flex: none; }
.ft-ico .icon { width: 14px; height: 14px; }

.ft-wordmark { font-size: clamp(4rem, 17vw, 13rem); font-weight: 800; line-height: .8; letter-spacing: -.05em; text-align: center; margin: 30px 0 -.12em; user-select: none; pointer-events: none;
    background: linear-gradient(180deg, rgba(123, 47, 247, .16), rgba(225, 48, 108, .02)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.ft-copy { color: var(--body-text); }
.ft-brand-link { font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-brand-link:hover { text-decoration: underline; text-decoration-color: var(--magenta); }
.footer-note { color: var(--muted); flex: 1; text-align: center; }
.ft-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); color: #fff; box-shadow: 0 10px 20px -8px rgba(225, 48, 108, .7); transition: transform .2s; }
.ft-top:hover { transform: translateY(-3px); }
.ft-top .icon { width: 18px; height: 18px; transform: rotate(180deg); }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px 28px; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .site-footer { padding-top: 48px; }
    .ft-cta { flex-direction: column; align-items: stretch; text-align: left; padding: 22px 20px; margin-bottom: 44px; border-radius: 22px; }
    .ft-cta-btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-about { text-align: center; }
    .footer-about .brand { justify-content: center; }
    .footer-about p { margin-inline: auto; }
    .ft-badges { justify-content: center; }
    .footer-col:last-child { grid-column: 1 / -1; }
    .footer-col:last-child ul { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; padding-bottom: 30px; }
    .footer-note { text-align: center; }
    .ft-wordmark { margin-top: 20px; }
}

/* 12. Responsive */
@media (max-width: 1080px) {
    .header-cta { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav-toggle { display: grid; }
    .header-actions { margin-left: auto; }
    .main-nav, .header-actions > .theme-switch { display: none; }
    .steps-grid, .split, .prose-wrap, .contact-grid { grid-template-columns: 1fr; }
    .page-aside { position: static; }
    .section { padding: 70px 0; }
}
@media (max-width: 640px) {
    .tool-form { flex-direction: column; }
    .tool-submit { width: 100%; }
    .features-grid, .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 10px; grid-template-columns: 1fr; }
    .cta-band, .contact-form { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Homepage body: full-width bands ===== */
.hb { overflow-x: clip; }
.hb-band { position: relative; padding: 96px 0; }
.hb-soft { background: var(--bg-soft); }
.hb-narrow { max-width: 820px; }
.hb-mid { max-width: 980px; }
.hb-center { text-align: center; }
.hb p { color: var(--body-text); line-height: 1.8; font-size: 1.04rem; }
.hb strong { color: var(--heading); font-weight: 700; }
.hb h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 18px; color: var(--heading); }
.hb-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.hb-head p { margin: 0; }

/* Intro */
.hb-intro { padding: 72px 0 80px; }
.hb-lead { position: relative; text-align: center; font-size: clamp(1.08rem, 2vw, 1.3rem) !important; line-height: 1.75 !important; margin: 0; padding-top: 40px; }
.hb-lead::before { content: ""; position: absolute; top: 0; left: 50%; width: 56px; height: 4px; border-radius: 4px; transform: translateX(-50%); background: var(--gradient); }
.hb-lead strong { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Steps */
.hb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.hb-steps li { position: relative; padding: 36px 30px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 40px -34px rgba(18, 13, 31, .4); transition: transform .3s, box-shadow .3s; }
.hb-steps li:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(123, 47, 247, .4); }
.hb-step-n { position: absolute; top: 22px; right: 26px; font-size: 3rem; font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .22; }
.hb-step-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px; color: #fff; background: var(--gradient); box-shadow: 0 12px 24px -10px rgba(225, 48, 108, .6); }
.hb-step-ico svg { width: 24px; height: 24px; }
.hb-steps p { margin: 0; font-size: .98rem; }
.hb-steps strong { display: block; margin-bottom: 6px; font-size: 1.08rem; }
.hb-note { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 720px; margin: 32px auto 0; padding: 14px 22px; border-radius: 999px; background: var(--surface); border: 1px dashed var(--glass-line); font-size: .95rem !important; text-align: center; }
.hb-note svg { flex: none; width: 18px; height: 18px; color: var(--magenta); }

/* Alternating feature rows */
.hb-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.hb-row-rev .hb-text { order: 2; }
.hb-text p:last-child { margin-bottom: 0; }
.hb-text h2 { position: relative; padding-top: 22px; }
.hb-text h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--gradient); }
.hb-visual { display: grid; place-items: center; min-height: 300px; position: relative; }
.hb-visual::before { content: ""; position: absolute; inset: 8% 12%; border-radius: 50%; background: var(--gradient); filter: blur(70px); opacity: .18; }

/* Visual: reel */
.v-reel { position: relative; width: 210px; }
.v-reel-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; border: 6px solid var(--ink); background: linear-gradient(160deg, #7b2ff7, #e1306c 60%, #ff8a3d); display: grid; place-items: center; box-shadow: 0 30px 50px -20px rgba(18, 13, 31, .5); }
.v-play { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); color: #fff; }
.v-play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.v-bar { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.v-bar::after { content: ""; position: absolute; inset: 0 55% 0 0; border-radius: inherit; background: #fff; }
.v-file { position: absolute; right: -78px; top: 34%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 34px -18px rgba(18, 13, 31, .45); font-size: .85rem; white-space: nowrap; }
.v-file-2 { top: auto; bottom: 16%; right: auto; left: -82px; }
.v-file > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--badge-bg); color: var(--magenta); }
.v-file svg { width: 16px; height: 16px; }
.v-file b { color: var(--heading); }
.v-ok { color: var(--success); display: grid; }

/* Visual: quality */
.v-quality { position: relative; width: min(100%, 340px); padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(18, 13, 31, .45); display: grid; gap: 12px; }
.v-q { position: relative; display: grid; grid-template-columns: 64px 1fr 22px; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.v-q b { color: var(--heading); font-size: .95rem; }
.v-q i { height: 8px; border-radius: 8px; background: var(--line); position: relative; overflow: hidden; }
.v-q i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--gradient); opacity: .45; }
.v-q.is-on { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; border: 2px solid transparent; }
.v-q.is-on i::after { opacity: 1; }
.v-q span { color: var(--magenta); display: grid; }
.v-q span svg { width: 18px; height: 18px; }
.v-tag { position: absolute; top: -14px; right: -14px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; transform: rotate(6deg); }

/* Visual: audio */
.v-audio { position: relative; width: min(100%, 380px); padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(18, 13, 31, .45); display: flex; align-items: center; gap: 18px; }
.v-audio-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gradient); color: #fff; }
.v-audio-ico svg { width: 22px; height: 22px; }
.v-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 64px; }
.v-wave i { flex: 1; height: var(--h); border-radius: 3px; background: var(--gradient); animation: hbwave 1.4s ease-in-out infinite alternate; }
.v-wave i:nth-child(3n) { animation-delay: -.4s; }
.v-wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes hbwave { to { transform: scaleY(.35); } }

/* Visual: browser */
.v-browser { position: relative; width: min(100%, 380px); border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(18, 13, 31, .45); }
.v-browser-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.v-browser-top i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.v-browser-top i:nth-child(2) { background: #febc2e; }
.v-browser-top i:nth-child(3) { background: #28c840; }
.v-browser-top span { margin-left: 10px; flex: 1; padding: 4px 12px; border-radius: 8px; background: var(--surface); font-size: .78rem; color: var(--muted); }
.v-browser-body { display: flex; gap: 10px; padding: 34px 22px; }
.v-input { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.v-input svg { width: 16px; height: 16px; }
.v-input span { flex: 1; height: 8px; border-radius: 8px; background: var(--line); }
.v-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gradient); color: #fff; }
.v-btn svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) { .v-wave i { animation: none; } }

/* Devices */
.hb-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hb-device { padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -34px rgba(18, 13, 31, .4); }
.hb-device-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px; color: var(--magenta); background: var(--badge-bg); }
.hb-device-ico svg { width: 24px; height: 24px; }
.hb-device p { font-size: .97rem; }
.hb-device strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.hb-device ol { margin: 0; padding-left: 1.2em; color: var(--body-text); display: grid; gap: 6px; font-size: .95rem; }
.hb-device ol li::marker { color: var(--magenta); font-weight: 700; }
.hb kbd { font-family: inherit; font-size: .8em; font-weight: 700; padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: var(--bg-soft); color: var(--heading); white-space: nowrap; }

/* Troubleshooting rows */
.hb-fixes { display: grid; gap: 12px; }
.hb-fix { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; padding: 20px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.hb-fix b { display: flex; align-items: center; gap: 12px; color: var(--heading); }
.hb-fix b::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px var(--badge-bg); }
.hb-fix > span { color: var(--body-text); line-height: 1.65; }
.hb-fix-head { padding: 0 26px; background: none; border: 0; }
.hb-fix-head span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta) !important; }

/* Privacy (dark) */
.hb-dark { background: var(--ink); overflow: hidden; }
.hb-dark h2 { color: #fff; }
.hb-dark p { color: rgba(255, 255, 255, .75); }
.hb-dark-glow { position: absolute; width: 600px; height: 600px; left: 50%; top: -360px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(225, 48, 108, .35), transparent 65%); pointer-events: none; }
.hb-shield { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 20px; background: var(--gradient); color: #fff; box-shadow: 0 16px 32px -12px rgba(225, 48, 108, .7); }
.hb-shield svg { width: 26px; height: 26px; }
.hb-cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hb-cols p { margin: 0; padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }

/* Other tools */
.hb-center a { color: var(--magenta); text-decoration: none; border-bottom: 2px solid rgba(225, 48, 108, .3); transition: border-color .2s; }
.hb-center a:hover { border-color: var(--magenta); }
.hb-center a strong { color: inherit; }

/* FAQ */
.hb-faq { display: grid; gap: 14px; }
.hb-faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.hb-faq details[open] { border-color: var(--glass-line); box-shadow: 0 20px 40px -30px rgba(123, 47, 247, .45); }
.hb-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 22px 26px; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq h3 { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--heading); }
.hb-plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--badge-bg); transition: background .25s, transform .3s; }
.hb-plus::before, .hb-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--magenta); transform: translate(-50%, -50%); }
.hb-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.hb-faq details[open] .hb-plus { background: var(--gradient); }
.hb-faq details[open] .hb-plus::before, .hb-faq details[open] .hb-plus::after { background: #fff; }
.hb-faq details[open] .hb-plus::after { transform: translate(-50%, -50%) rotate(0); }
.hb-faq details > p { margin: 0; padding: 0 26px 24px; }

/* Responsive */
@media (max-width: 960px) {
    .hb-band { padding: 72px 0; }
    .hb-row { grid-template-columns: 1fr; gap: 40px; }
    .hb-row-rev .hb-text { order: 0; }
    .hb-steps, .hb-devices { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .hb-cols { grid-template-columns: 1fr; gap: 16px; }
    .hb-fix { grid-template-columns: 1fr; gap: 8px; }
    .hb-fix-head { display: none; }
}
@media (max-width: 600px) {
    .hb-band { padding: 56px 0; }
    .hb-intro { padding: 48px 0 52px; }
    .hb-head { margin-bottom: 32px; }
    .hb p { font-size: 1rem; }
    .hb-steps li, .hb-device { padding: 26px 22px; border-radius: 20px; }
    .hb-visual { min-height: 0; }
    .v-reel { width: 170px; }
    .v-file { right: -40px; font-size: .78rem; padding: 8px 10px; }
    .v-file-2 { left: -44px; right: auto; }
    .hb-note { border-radius: 18px; text-align: left; align-items: flex-start; }
    .hb-fix { padding: 18px 20px; }
    .hb-cols p { padding: 20px; }
    .hb-faq summary { padding: 18px 18px; gap: 14px; }
    .hb-faq details > p { padding: 0 18px 20px; }
}

.drawer-head .brand-word b { background: none; color: #fff; -webkit-text-fill-color: #fff; opacity: .85; }

/* ===== Photo page visuals (reuse .hb bands) ===== */
ul.hb-fixes { list-style: none; margin: 0; padding: 0; }
.hb b { color: var(--heading); font-weight: 600; }
.hb code { font-size: .88em; padding: 2px 7px; border-radius: 6px; background: var(--badge-bg); color: var(--magenta); }
.hb-fixes + .hb-note { margin-top: 24px; }
.hb-dark-note { position: relative; text-align: center; margin: 28px 0 0; font-size: .92rem !important; color: rgba(255, 255, 255, .55) !important; }
.hb-dark a { color: #fff; text-decoration: underline; text-decoration-color: rgba(225, 48, 108, .7); text-underline-offset: 3px; }
.hb-dark a strong { color: #fff; }

.v-photo { position: relative; width: 250px; }
.v-photo-img { aspect-ratio: 4 / 5; border-radius: 24px; display: grid; place-items: center; color: rgba(255, 255, 255, .85);
    background: radial-gradient(circle at 30% 25%, #ffd27a 0 14%, transparent 15%), linear-gradient(170deg, #ff9a5a 0%, #e1306c 45%, #7b2ff7 100%);
    box-shadow: 0 30px 50px -22px rgba(18, 13, 31, .5); border: 6px solid var(--surface); position: relative; overflow: hidden; }
.v-photo-img::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -12%; height: 45%; background: rgba(18, 13, 31, .35); border-radius: 50% 50% 0 0; }
.v-photo-img span { position: relative; z-index: 1; }
.v-photo-img .icon { width: 40px; height: 40px; }
.v-photo .v-file { right: -70px; top: auto; bottom: 14%; }

.v-compare { display: flex; gap: 18px; align-items: flex-end; }
.v-cmp { position: relative; width: 150px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 44px -26px rgba(18, 13, 31, .45); display: grid; gap: 8px; }
.v-cmp-img { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(160deg, #ff9a5a, #e1306c 55%, #7b2ff7); }
.v-cmp-bar { height: 8px; border-radius: 8px; background: var(--line); }
.v-cmp-bar.short { width: 60%; }
.v-cmp-bad { opacity: .8; transform: rotate(-4deg); }
.v-cmp-bad .v-cmp-img { aspect-ratio: 4 / 3; filter: saturate(.6) blur(.6px); }
.v-cmp-good { width: 170px; transform: rotate(3deg); }
.v-cmp-tag { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .35); }
.v-cmp-tag .icon { width: 16px; height: 16px; }
.v-cmp-bad .v-cmp-tag { background: var(--danger); }
.v-cmp-good .v-cmp-tag { background: var(--success); }

.v-sizes { display: flex; gap: 22px; align-items: flex-end; }
.v-size { position: relative; display: grid; place-items: end center; padding-bottom: 14px; border-radius: 18px; border: 2px dashed var(--glass-line);
    background: linear-gradient(160deg, rgba(123, 47, 247, .12), rgba(225, 48, 108, .12)); }
.v-size b { padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--heading); font-size: .82rem; box-shadow: 0 6px 14px -8px rgba(18, 13, 31, .4); }
.v-size-sq { width: 150px; height: 150px; }
.v-size-pt { width: 150px; height: 200px; border-style: solid; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; }

.v-formats { display: flex; gap: 20px; }
.v-fmt { position: relative; width: 130px; height: 160px; padding: 18px 16px; border-radius: 16px 34px 16px 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 44px -26px rgba(18, 13, 31, .45); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.v-fmt::before { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-radius: 0 34px 0 14px; background: var(--badge-bg); }
.v-fmt i { height: 7px; border-radius: 7px; background: var(--line); }
.v-fmt i.short { width: 60%; }
.v-fmt-ext { position: absolute; top: 22px; left: 16px; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: .9rem; color: #fff; background: var(--gradient); }
.v-fmt-2 { transform: translateY(-18px); }
.v-fmt-2 .v-fmt-ext { background: linear-gradient(135deg, #2563eb, #06b6d4); }

@media (max-width: 600px) {
    .v-photo { width: 200px; }
    .v-photo .v-file { right: -36px; }
    .v-cmp { width: 120px; } .v-cmp-good { width: 135px; }
    .v-size-sq { width: 118px; height: 118px; } .v-size-pt { width: 118px; height: 158px; }
    .v-fmt { width: 112px; height: 140px; }
}


/* ===== Real result: previews, player, audio button ===== */
.media-art .art-frame, .media-art .art-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-art .art-player { object-fit: contain; background: #000; z-index: 3; }
.media-art.is-playing .art-badges, .media-art.is-playing .art-play { display: none; }
.media-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar { position: relative; overflow: hidden; }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 1; }
.audio-btn { width: 100%; margin-top: 10px; justify-content: center; }
.audio-btn.is-done { border-color: var(--success); color: var(--success); }
.caption-box[hidden] { display: none; }
