/* ── TOOL PAGE SHARED ─────────────────────────── */
.tool-hero {
    padding: 150px 0 90px;
    position: relative;
    overflow: hidden;
    background: var(--light);
}
.tool-hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(110px); pointer-events: none;
}
.blob-a { width:560px;height:560px;background:rgba(255,107,107,0.12);top:-15%;right:-5%; }
.blob-b { width:400px;height:400px;background:rgba(78,101,255,0.09);bottom:-10%;left:-8%; }

.tool-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.2);
    color: var(--primary); font-size: 0.76rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 18px;
}
.tool-hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700; letter-spacing: -0.04em; line-height: 1.08;
    margin-bottom: 20px;
}
.tool-hero-sub {
    font-size: 1.05rem; color: var(--muted);
    line-height: 1.75; max-width: 480px; margin-bottom: 36px;
}

/* Stats row */
.tool-stat-strip {
    display: flex; gap: 32px; flex-wrap: wrap;
    padding-top: 36px; margin-top: 36px;
    border-top: 1px solid var(--border);
}
.tool-stat-val {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    letter-spacing: -0.03em; color: var(--dark);
}
.tool-stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* Hero visual */
.tryon-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}
.tryon-before-after {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 16px;
}
.tryon-img-box {
    border-radius: 14px; overflow: hidden;
    /*height: 300px;*/
    height: 450px;
    position: relative;
    border: 1px solid var(--border);
}
.tryon-img-box img { width:100%;height:100%;object-fit:cover; }
.tryon-img-label {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(8px);
    color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.tryon-arrow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 36px; height: 36px;
    background: var(--surface); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); z-index: 2;
    font-size: 1rem; color: var(--primary);
    border: 1px solid var(--border);
}
.tryon-controls {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.ctrl-chip {
    padding: 7px 14px; border-radius: 8px;
    background: var(--light); border: 1.5px solid var(--border);
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.ctrl-chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.gen-time-badge {
    display: flex; align-items: center; gap: 6px;
    margin-left: auto; font-size: 0.78rem; font-weight: 600;
    color: #16A34A;
}

/* How it works */
.how-section { padding: 100px 0; background: #fff; }
.how-step {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 32px 28px;
    height: 100%;
    transition: all 0.3s ease;
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255,107,107,0.2); }
.how-num {
    font-family: 'Clash Display', sans-serif;
    font-size: 3rem; font-weight: 700;
    letter-spacing: -0.05em;
    color: rgba(255,107,107,0.2);
    line-height: 1; margin-bottom: 16px;
}
.how-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.how-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* Features grid */
.feat-section { padding: 100px 0; background: var(--light); }
.feat-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all 0.22s ease;
}
.feat-item:hover { border-color: rgba(255,107,107,0.22); box-shadow: var(--shadow-sm); }
.feat-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex-shrink: 0;
}

/* Model gallery */
.models-section { padding: 100px 0; background: #fff; }
.model-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.model-card {
    border-radius: 16px; overflow: hidden;
    aspect-ratio: 2/3; position: relative;
    cursor: pointer; border: 2px solid transparent;
    transition: all 0.3s ease;
}
.model-card img { width:100%;height:100%;object-fit:cover; transition: transform 0.4s ease; }
.model-card:hover { border-color: var(--primary); }
.model-card:hover img { transform: scale(1.04); }
.model-card-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px 12px 10px;
    background: linear-gradient(to top, rgba(15,23,42,0.8), transparent);
    color: #fff; font-size: 0.72rem; font-weight: 600;
}
.model-pro-badge {
    position: absolute; top: 8px; right: 8px;
    background: linear-gradient(135deg,#FFD700,#FF8C00);
    color: #000; font-size: 0.62rem; font-weight: 700;
    padding: 3px 8px; border-radius: 100px;
}

/* CTA */
.tool-cta { padding: 90px 0; background: var(--light); }
.tool-cta-inner {
    background: var(--dark); border-radius: var(--r-lg);
    padding: 80px 60px; text-align: center; position: relative; overflow: hidden;
}
.tool-cta-inner::after {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle,rgba(255,107,107,0.22),transparent 65%);
    bottom: -20%; right: -8%; pointer-events: none;
}
.tool-cta-title { font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 700; color: #fff; letter-spacing: -0.04em; margin-bottom: 16px; }
.tool-cta-sub { color: rgba(255,255,255,0.5); font-size: 1rem; margin-bottom: 36px; }

@media (max-width: 991px) {
    .tool-hero { padding: 130px 0 60px; }
    .how-section, .feat-section, .models-section, .tool-cta { padding: 70px 0; }
    .model-grid { grid-template-columns: repeat(3,1fr); }
    .tool-cta-inner { padding: 56px 28px; }
}
@media (max-width: 575px) {
    .model-grid { grid-template-columns: repeat(2,1fr); }
    .tryon-before-after { grid-template-columns: 1fr; }
    .tryon-img-box { /*height: 220px;*/height:450px; }
}