:root {
    --pf-ink: #0c1222;
    --pf-ink-soft: #334155;
    --pf-muted: #64748b;
    --pf-line: #dbe3f0;
    --pf-line-strong: #b6c3d9;
    --pf-surface: #ffffff;
    --pf-canvas: #eef2f8;
    --pf-accent: #2563eb;
    --pf-accent-dark: #1d4ed8;
    --pf-accent-soft: #dbeafe;
    --pf-accent-bright: #60a5fa;
    --pf-warn: #b45309;
    --pf-danger: #b42318;
    --pf-radius: 1rem;
    --pf-radius-lg: 1.35rem;
    --pf-shadow: 0 1px 2px rgba(12, 18, 34, 0.04), 0 8px 24px rgba(12, 18, 34, 0.06);
    --pf-shadow-lg: 0 4px 8px rgba(12, 18, 34, 0.04), 0 18px 40px rgba(12, 18, 34, 0.09);
    --pf-font: "Figtree", "Segoe UI", sans-serif;
    --pf-display: "Outfit", "Figtree", "Segoe UI", sans-serif;
    --pf-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --tone-social: #2563eb;
    --tone-social-soft: #dbeafe;
    --tone-image: #0284c7;
    --tone-image-soft: #e0f2fe;
    --tone-video: #ea580c;
    --tone-video-soft: #ffedd5;
    --tone-dev: #4f46e5;
    --tone-dev-soft: #e0e7ff;
    --tone-text: #a16207;
    --tone-text-soft: #fef3c7;
    --tone-utility: #1d4ed8;
    --tone-utility-soft: #eff6ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--pf-font);
    font-size: 0.975rem;
    font-weight: 400;
    color: var(--pf-ink);
    background:
        radial-gradient(ellipse 80% 50% at 8% -12%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 40% at 96% 0%, rgba(96, 165, 250, 0.12), transparent 52%),
        linear-gradient(180deg, #f8faff 0%, var(--pf-canvas) 42%, #e8eef7 100%);
    background-attachment: fixed;
    min-height: 100vh;
    letter-spacing: -0.011em;
    line-height: 1.55;
    overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

.container,
.row,
[class*="col-"] {
    min-width: 0;
}

a {
    color: var(--pf-accent-dark);
    text-decoration: none;
    transition: color 0.2s var(--pf-ease);
}

a:hover {
    color: var(--pf-accent);
}

/* ——— Header ——— */
.site-header {
    background: rgba(247, 251, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(219, 228, 240, 0.95);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: border-color 0.3s var(--pf-ease), background 0.3s var(--pf-ease);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--pf-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pf-ink);
    font-size: 1.08rem;
}

.brand-mark:hover {
    color: var(--pf-ink);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-logo-mark {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.28));
}

.brand-logo-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-logo-mark--sm {
    width: 1.75rem;
    height: 1.75rem;
}

.brand-logo-mark--lg {
    width: 2.55rem;
    height: 2.55rem;
}

.brand-logo-text {
    font-family: var(--pf-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.12rem;
    color: var(--pf-ink);
}

.brand-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, #15233f 0%, #0c1222 100%);
    color: #eff6ff;
    font-family: var(--pf-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}

.nav-link-custom {
    color: var(--pf-ink-soft) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 0.65rem;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--pf-ink) !important;
    background: rgba(37, 99, 235, 0.10);
    box-shadow: none;
}

.btn-accent {
    --bs-btn-color: #eff6ff;
    --bs-btn-bg: var(--pf-accent);
    --bs-btn-border-color: var(--pf-accent);
    --bs-btn-hover-color: #eff6ff;
    --bs-btn-hover-bg: var(--pf-accent-dark);
    --bs-btn-hover-border-color: var(--pf-accent-dark);
    --bs-btn-active-color: #eff6ff;
    --bs-btn-active-bg: var(--pf-accent-dark);
    --bs-btn-active-border-color: var(--pf-accent-dark);
    --bs-btn-disabled-color: #eff6ff;
    --bs-btn-disabled-bg: var(--pf-accent);
    --bs-btn-disabled-border-color: var(--pf-accent);
    font-family: var(--pf-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.015em;
    border-radius: 0.8rem;
    padding: 0.7rem 1.2rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    transition: background 0.25s var(--pf-ease), border-color 0.25s var(--pf-ease), transform 0.25s var(--pf-ease), box-shadow 0.25s var(--pf-ease);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.btn-outline-ink {
    --bs-btn-color: var(--pf-ink);
    --bs-btn-border-color: var(--pf-line-strong);
    --bs-btn-hover-color: var(--pf-ink);
    --bs-btn-hover-bg: var(--pf-surface);
    --bs-btn-hover-border-color: var(--pf-ink);
    --bs-btn-active-color: var(--pf-ink);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: var(--pf-ink);
    font-family: var(--pf-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    border-radius: 0.8rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
}

/* ——— Hero ——— */
.hero {
    position: relative;
    padding: 2.75rem 0 2.5rem;
    overflow: hidden;
}

.hero--split {
    padding-bottom: 1.5rem;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.85;
    animation: floaty 10s var(--pf-ease) infinite alternate;
}

.hero-orb-a {
    width: 18rem;
    height: 18rem;
    top: -4rem;
    right: 8%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
}

.hero-orb-b {
    width: 14rem;
    height: 14rem;
    bottom: -3rem;
    left: 4%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18), transparent 70%);
    animation-delay: -3s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(21, 32, 43, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 32, 43, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 65% at 40% 30%, #000 20%, transparent 75%);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-grid-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
    min-width: 0;
}

.hero-copy,
.hero-visual,
.hero-search,
.hero-inner {
    min-width: 0 !important;
    max-width: 100%;
}

.hero-grid-layout > * {
    min-width: 0;
}

@media (min-width: 992px) {
    .hero-grid-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 2.5rem;
    }
}

.hero-brand {
    font-family: var(--pf-display);
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--pf-accent-dark);
    margin: 0 0 0.65rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pf-accent-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    box-shadow: var(--pf-shadow);
}

.hero-title {
    font-family: var(--pf-display);
    font-size: clamp(1.65rem, 3.6vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.14;
    margin-bottom: 0.75rem;
    max-width: 22ch;
    color: var(--pf-ink);
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--pf-muted);
    max-width: 34rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

.hero-search {
    max-width: 36rem;
}

.hero-search-shell {
    position: relative;
}

.hero-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-muted);
    pointer-events: none;
    display: inline-grid;
    place-items: center;
}

.hero-search .url-input {
    min-height: 3.15rem;
    font-size: 1rem;
    border-radius: 1rem;
    border-color: var(--pf-line-strong);
    background: rgba(255, 255, 255, 0.92);
    padding-left: 2.75rem;
    box-shadow: var(--pf-shadow) !important;
}

.hero-search .url-input:focus {
    border-color: var(--pf-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), var(--pf-shadow) !important;
}

.hero-search-results {
    border-radius: var(--pf-radius);
    overflow: hidden;
    box-shadow: var(--pf-shadow-lg);
    border: 1px solid var(--pf-line);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.hero-path {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    max-width: 100%;
    min-width: 0;
}

.hero-path-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--card-accent, var(--pf-accent)) 28%, var(--pf-line));
    background: color-mix(in srgb, var(--card-soft, var(--pf-accent-soft)) 70%, #fff);
    color: var(--card-accent, var(--pf-accent-dark));
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    transition: transform 0.2s var(--pf-ease), box-shadow 0.2s var(--pf-ease);
}

.hero-path-chip:hover {
    color: var(--card-accent, var(--pf-accent-dark));
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow);
}

.hero-visual {
    position: relative;
    min-height: 16rem;
}

.hero-visual .guide-art--home {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}

@keyframes floaty {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(12px) scale(1.04); }
}

@keyframes float-chip {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

.tool-shell {
    background: var(--pf-surface);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius-lg);
    box-shadow: var(--pf-shadow);
    padding: 1.35rem;
}

@media (min-width: 768px) {
    .tool-shell {
        padding: 1.65rem;
    }
}

.tool-url-row {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .tool-url-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }

    .tool-url-submit {
        min-width: 8.5rem;
    }
}

.url-input {
    border: 1px solid var(--pf-line);
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    box-shadow: none !important;
    background: var(--pf-surface);
}

.url-input:focus {
    border-color: var(--pf-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--pf-surface);
    border: 1px solid var(--pf-line);
    color: var(--pf-ink-soft);
    font-weight: 600;
    font-size: 0.8125rem;
    box-shadow: var(--pf-shadow);
}

.platform-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--pf-accent);
}

.section {
    padding: 3.25rem 0;
}

.section-head {
    margin-bottom: 1.35rem;
}

.section-title {
    font-family: var(--pf-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    margin-bottom: 0.35rem;
}

.section-lead {
    color: var(--pf-muted);
    max-width: 36rem;
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.section-more {
    font-weight: 700;
    color: var(--pf-accent-dark);
}

.section-more:hover {
    color: var(--pf-accent);
}

.feature-tile,
.step-tile,
.faq-item,
.info-panel,
.result-card {
    background: var(--pf-surface);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    transition: border-color 0.2s var(--pf-ease), background 0.2s var(--pf-ease), box-shadow 0.2s var(--pf-ease), transform 0.2s var(--pf-ease);
}

.feature-tile:hover,
.step-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--pf-shadow-lg);
    border-color: var(--pf-line-strong);
    background: var(--pf-surface);
}

.feature-tile,
.step-tile {
    padding: 1.4rem;
    height: 100%;
}

.step-num {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, var(--pf-accent), var(--pf-accent-dark));
    color: #eff6ff;
    font-family: var(--pf-display);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.cta-band {
    background: linear-gradient(135deg, #12353a 0%, #2563eb 55%, #1d4ed8 100%);
    color: #eff6ff;
    border-radius: var(--pf-radius-lg);
    padding: 2.5rem 1.75rem;
    box-shadow: var(--pf-shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    width: 16rem;
    height: 16rem;
    right: -4rem;
    top: -5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.cta-band .section-title,
.cta-band h2 {
    font-family: var(--pf-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: inherit;
}

.cta-band .btn-light {
    font-family: var(--pf-display);
    font-weight: 600;
    border-radius: 0.4rem;
    padding: 0.7rem 1.2rem;
    color: var(--pf-ink);
}

.cta-band .btn-outline-light {
    border-color: rgba(246, 245, 241, 0.35);
    color: #f6f5f1;
}

.cta-band .btn-outline-light:hover {
    background: rgba(246, 245, 241, 0.1);
    border-color: #f6f5f1;
    color: #f6f5f1;
}

.site-footer {
    border-top: 1px solid var(--pf-line);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    padding: 3.25rem 0 2rem;
    margin-top: 2rem;
}

.footer-title {
    font-family: var(--pf-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pf-muted);
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--pf-ink-soft);
    display: inline-block;
    padding: 0.2rem 0;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--pf-accent);
}

.page-hero {
    padding: 1.75rem 0 1rem;
    position: relative;
}

.page-hero-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.page-hero-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--card-soft, var(--pf-accent-soft));
    color: var(--card-accent, var(--pf-accent-dark));
    box-shadow: var(--pf-shadow);
}

.page-hero-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.page-hero h1 {
    font-family: var(--pf-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-bottom: 0 !important;
    line-height: 1.2;
}

.page-hero .section-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 38rem;
    color: var(--pf-muted);
}

.page-hero .meta-pill,
.page-hero .status-badge,
.page-hero .coming-soon-badge {
    font-size: 0.7rem;
}

.tool-shell .form-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.tool-shell,
.info-panel,
.feature-tile {
    font-size: 0.875rem;
}

.feature-tile .h5,
.info-panel .h5,
.tool-shell .h5,
.feature-tile h2,
.info-panel h2 {
    font-family: var(--pf-display);
    font-size: 1.05rem !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.legal-content h2 {
    font-family: var(--pf-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--pf-ink-soft);
    line-height: 1.7;
}

.result-card {
    padding: 1.4rem;
    background: var(--pf-surface);
}

.result-avatar {
    width: min(100%, 280px);
    min-width: 180px;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border-radius: var(--pf-radius);
    border: 1px solid var(--pf-line);
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    cursor: zoom-in;
    box-shadow: var(--pf-shadow);
}

.preview-frame:focus-visible .result-avatar {
    outline: 2px solid var(--pf-ink);
    outline-offset: 3px;
}

.profile-zoom-dialog {
    --bs-modal-width: min(96vw, 1100px);
}

.profile-zoom-content {
    border-radius: 1rem;
    overflow: hidden;
}

.profile-zoom-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.profile-zoom-toolbar .btn {
    min-width: 2.4rem;
    font-weight: 700;
}

.profile-zoom-viewport {
    position: relative;
    width: 100%;
    height: min(78vh, 820px);
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid var(--pf-line);
    background-color: #0f172a;
    background-image:
        linear-gradient(45deg, #1e293b 25%, transparent 25%),
        linear-gradient(-45deg, #1e293b 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1e293b 75%),
        linear-gradient(-45deg, transparent 75%, #1e293b 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    touch-action: none;
    cursor: grab;
    user-select: none;
}

.profile-zoom-viewport.is-dragging {
    cursor: grabbing;
}

.profile-zoom-image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
    border-radius: 0.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
    .profile-zoom-viewport {
        height: min(68vh, 560px);
    }
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--pf-accent-soft);
    border: 1px solid transparent;
    color: var(--pf-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.alert-soft {
    border: 1px solid var(--pf-line);
    background: var(--pf-surface);
    border-radius: var(--pf-radius);
    color: var(--pf-ink-soft);
    padding: 0.85rem 1.05rem;
    box-shadow: var(--pf-shadow);
}

.alert-soft.error {
    border-color: #fecdca;
    background: #fef3f2;
    color: var(--pf-danger);
}

.alert-soft.success {
    border-color: #a9e0cb;
    background: var(--pf-accent-soft);
    color: var(--pf-accent-dark);
}

.coming-soon-badge {
    display: inline-block;
    background: #fff8eb;
    color: var(--pf-warn);
    border: 1px solid #efd9a8;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.spinner-accent {
    width: 1.15rem;
    height: 1.15rem;
    border-width: 0.15rem;
    color: var(--pf-accent);
}

.is-hidden {
    display: none !important;
}

/* Tool cards — interactive list tiles */
.tool-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--pf-surface);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 1.25rem 1.25rem 1.15rem;
    height: 100%;
    transition: border-color 0.25s var(--pf-ease), background 0.25s var(--pf-ease), box-shadow 0.25s var(--pf-ease), transform 0.25s var(--pf-ease);
    text-decoration: none;
    color: inherit;
}

.tool-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow, rgba(37, 99, 235, 0.12)), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
    transition: transform 0.35s var(--pf-ease), opacity 0.35s var(--pf-ease);
}

a.tool-card:hover,
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pf-shadow-lg);
    border-color: color-mix(in srgb, var(--card-accent, var(--pf-accent)) 35%, var(--pf-line));
    background: #fff;
    color: inherit;
}

.tool-card:hover::after {
    transform: scale(1.25) translate(-8%, -8%);
    opacity: 1;
}

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.tool-card-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    display: inline-grid;
    place-items: center;
    background: var(--card-soft, var(--pf-accent-soft));
    color: var(--card-accent, var(--pf-accent-dark));
    margin-bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.tool-card-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.tool-card h3 {
    font-family: var(--pf-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.tool-card-cat {
    color: var(--pf-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.tool-card-desc,
.tool-card .text-secondary {
    color: var(--pf-muted) !important;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

.tool-card .tool-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--pf-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--card-accent, var(--pf-accent-dark));
    margin-top: auto;
    padding-top: 1rem;
}

.tool-card:hover .tool-card-cta {
    color: var(--card-accent, var(--pf-accent));
}

.tone-social { --card-accent: var(--tone-social); --card-soft: var(--tone-social-soft); --card-glow: rgba(14, 165, 164, 0.18); }
.tone-image { --card-accent: var(--tone-image); --card-soft: var(--tone-image-soft); --card-glow: rgba(2, 132, 199, 0.16); }
.tone-video { --card-accent: var(--tone-video); --card-soft: var(--tone-video-soft); --card-glow: rgba(194, 65, 12, 0.14); }
.tone-dev { --card-accent: var(--tone-dev); --card-soft: var(--tone-dev-soft); --card-glow: rgba(67, 56, 202, 0.14); }
.tone-text { --card-accent: var(--tone-text); --card-soft: var(--tone-text-soft); --card-glow: rgba(161, 98, 7, 0.14); }
.tone-utility { --card-accent: var(--tone-utility); --card-soft: var(--tone-utility-soft); --card-glow: rgba(37, 99, 235, 0.16); }

.status-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    padding: 0.65rem 1rem;
    background: var(--pf-ink);
    color: #fff;
    border-radius: 0.4rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 0.75rem;
    color: #fff;
}

.status-active {
    background: var(--pf-accent-soft);
    color: var(--pf-accent-dark);
    border: 1px solid transparent;
}

.status-featured {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid transparent;
}

.tool-directory-controls {
    background: var(--pf-surface);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 1.35rem;
}

.tool-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

button.tool-filter {
    cursor: pointer;
}

.tool-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--pf-line);
    background: #fff;
    color: var(--pf-ink-soft);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s var(--pf-ease), border-color 0.2s var(--pf-ease), background 0.2s var(--pf-ease), box-shadow 0.2s var(--pf-ease);
}

.tool-filter:hover {
    color: var(--pf-ink);
    border-color: var(--pf-line-strong);
    box-shadow: var(--pf-shadow);
}

.tool-filter.is-active {
    background: var(--pf-accent);
    border-color: var(--pf-accent);
    color: #eff6ff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

/* Popular quick-start grid (home) */
.popular-grid {
    display: grid;
    gap: 0.9rem;
}

@media (min-width: 640px) {
    .popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .popular-tile--lead {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 100%;
        padding: 1.6rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
    }

    .popular-tile--lead .popular-tile-icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 1rem;
    }

    .popular-tile--lead .popular-tile-icon svg {
        width: 1.55rem;
        height: 1.55rem;
    }

    .popular-tile--lead .popular-tile-name {
        font-size: 1.35rem;
    }

    .popular-tile--lead .popular-tile-desc {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        max-width: 28rem;
    }

    .popular-tile--lead .popular-tile-index {
        font-size: 2.75rem;
        top: 1.1rem;
        right: 1.2rem;
    }

    .popular-tile--lead .popular-tile-go {
        margin-top: auto;
        width: 2.5rem;
        height: 2.5rem;
    }
}

.popular-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius-lg);
    background:
        linear-gradient(165deg, color-mix(in srgb, var(--card-soft, var(--pf-accent-soft)) 55%, #fff) 0%, #fff 62%);
    box-shadow: var(--pf-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s var(--pf-ease), box-shadow 0.28s var(--pf-ease), border-color 0.28s var(--pf-ease);
}

.popular-tile:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: var(--pf-shadow-lg);
    border-color: color-mix(in srgb, var(--card-accent, var(--pf-accent)) 35%, var(--pf-line));
}

.popular-tile:hover .popular-tile-go {
    background: var(--card-accent, var(--pf-accent));
    color: #eff6ff;
    transform: translateX(2px);
}

.popular-tile-glow {
    position: absolute;
    width: 9rem;
    height: 9rem;
    right: -2.5rem;
    top: -2.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow, rgba(37, 99, 235, 0.16)), transparent 70%);
    pointer-events: none;
}

.popular-tile-index {
    position: absolute;
    top: 0.75rem;
    right: 0.95rem;
    font-family: var(--pf-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    line-height: 1;
    color: color-mix(in srgb, var(--card-accent, var(--pf-accent)) 22%, transparent);
    pointer-events: none;
    z-index: 0;
}

.popular-tile-icon {
    position: relative;
    z-index: 1;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    display: inline-grid;
    place-items: center;
    background: var(--card-soft, var(--pf-accent-soft));
    color: var(--card-accent, var(--pf-accent-dark));
    flex-shrink: 0;
}

.popular-tile-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.popular-tile-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.popular-tile-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--card-accent, var(--pf-accent-dark));
}

.popular-tile-name {
    font-family: var(--pf-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.popular-tile-desc {
    color: var(--pf-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-tile-go {
    position: relative;
    z-index: 1;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: color-mix(in srgb, var(--card-soft, var(--pf-accent-soft)) 70%, #fff);
    color: var(--card-accent, var(--pf-accent-dark));
    flex-shrink: 0;
    transition: background 0.25s var(--pf-ease), color 0.25s var(--pf-ease), transform 0.25s var(--pf-ease);
}

/* Keep legacy class hooks harmless if referenced elsewhere */
.tool-row {
    display: grid;
    gap: 0.85rem;
}

.category-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.category-card,
.category-link {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.3rem;
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--pf-ease), box-shadow 0.25s var(--pf-ease), border-color 0.25s var(--pf-ease);
}

.category-card:hover,
.category-link:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: var(--pf-shadow-lg);
    border-color: color-mix(in srgb, var(--card-accent, var(--pf-accent)) 30%, var(--pf-line));
    padding-left: 1.3rem;
}

.category-card-glow {
    position: absolute;
    width: 7rem;
    height: 7rem;
    right: -1.5rem;
    top: -1.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow, rgba(37, 99, 235, 0.16)), transparent 70%);
    pointer-events: none;
}

.category-card h3,
.category-link h3 {
    font-family: var(--pf-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    position: relative;
}

.category-card p,
.category-link p {
    margin: 0;
    color: var(--pf-muted);
    font-size: 0.9rem;
    position: relative;
}

.category-card .cat-meta,
.category-link .cat-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--card-accent, var(--pf-accent-dark));
    margin-top: 0.75rem;
}

.how-steps {
    display: grid;
    gap: 1.25rem;
    counter-reset: how;
}

@media (min-width: 768px) {
    .how-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.how-step {
    counter-increment: how;
    position: relative;
    padding: 1.1rem 1.1rem 1.1rem 1.15rem;
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow);
}

.how-step::before {
    content: none;
}

.how-step-badge {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.55rem;
    background: var(--card-accent, var(--pf-accent));
    color: #eff6ff;
    font-family: var(--pf-display);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.how-step-art {
    width: 3.25rem;
    margin-bottom: 0.75rem;
}

.how-step h3 {
    font-family: var(--pf-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.how-step p {
    margin: 0;
    color: var(--pf-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.privacy-split {
    display: grid;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--pf-line);
    border-bottom: 1px solid var(--pf-line);
}

@media (min-width: 768px) {
    .privacy-split {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.privacy-split h3 {
    font-family: var(--pf-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.privacy-split p {
    margin: 0;
    color: var(--pf-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.list-group-item {
    border-color: var(--pf-line) !important;
    font-size: 0.9rem;
}

.list-group-item:hover {
    background: var(--pf-accent-soft) !important;
}

.faq-item {
    background: var(--pf-surface);
    border-radius: var(--pf-radius) !important;
}

.faq-item .accordion-button {
    font-family: var(--pf-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    background: transparent;
}

.faq-item .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--pf-ink);
    box-shadow: none;
}

/* File upload */
.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-upload {
    position: relative;
}

.file-upload-dropzone {
    display: block;
    text-align: center;
    padding: 2rem 1.25rem;
    border: 1.5px dashed var(--pf-line-strong);
    border-radius: var(--pf-radius);
    background: var(--pf-canvas);
    cursor: pointer;
    transition: border-color 0.2s var(--pf-ease), background 0.2s var(--pf-ease);
}

.file-upload-dropzone:hover,
.file-upload-dropzone.is-dragover {
    border-color: var(--pf-accent);
    background: var(--pf-accent-soft);
}

.file-upload-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.85rem;
    border-radius: 0.35rem;
    display: grid;
    place-items: center;
    background: var(--pf-surface);
    color: var(--pf-accent-dark);
    border: 1px solid var(--pf-line);
}

.file-upload-preview {
    max-width: 220px;
    max-height: 180px;
    border-radius: var(--pf-radius);
    border: 1px solid var(--pf-line);
    object-fit: contain;
    background: #fff;
}

/* Video tool workspace */
.video-tool {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.video-tool--solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 44rem;
}

.video-tool-composer {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.video-platform-line {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pf-ink-soft);
}

.video-url-row {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .video-url-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }
}

.video-url-row .url-input {
    min-height: 3rem;
}

.video-url-row .btn-accent {
    min-height: 3rem;
    padding-inline: 1.35rem;
}

.video-empty {
    padding-top: 1rem;
    border-top: 1px solid var(--pf-line);
}

.video-fineprint {
    color: var(--pf-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

.video-result {
    display: grid;
    gap: 1rem;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pf-line);
}

@media (min-width: 768px) {
    .video-result:not(.video-result--stack) {
        grid-template-columns: minmax(11.5rem, 15.5rem) minmax(0, 1fr);
        gap: 1.35rem;
        align-items: start;
    }
}

.video-result-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--pf-radius);
    background: #0b1220;
    aspect-ratio: 16 / 9;
}

.video-result-media--wide {
    max-width: 36rem;
}

.video-result-media video,
.video-result-media iframe,
.video-result-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.video-play-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(18, 20, 26, 0.78);
    transition: transform 0.18s var(--pf-ease), background 0.18s var(--pf-ease);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.04);
    background: rgba(18, 20, 26, 0.92);
    color: #fff;
}

.video-result-title {
    font-family: var(--pf-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 0.25rem;
    color: var(--pf-ink);
}

.video-result-meta {
    margin: 0 0 1rem;
    color: var(--pf-muted);
    font-size: 0.8125rem;
}

.video-quality-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.video-quality-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pf-ink-soft);
}

.quality-chip {
    display: inline-flex;
    cursor: pointer;
}

.quality-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quality-chip span {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 0.35rem;
    border: 1px solid var(--pf-line);
    background: #fff;
    color: var(--pf-ink-soft);
    font-weight: 600;
    font-size: 0.8rem;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.quality-chip input:checked + span {
    background: var(--pf-ink);
    border-color: var(--pf-ink);
    color: #f6f5f1;
}

.video-download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
}

.video-download-group .video-download-main,
.video-download-group .video-download-toggle {
    min-height: 2.6rem;
    font-size: 0.875rem;
    white-space: nowrap;
    padding: 0.55rem 1rem;
}

.video-download-group .video-download-toggle {
    padding-inline: 0.95rem;
}

.video-download-group .btn:disabled {
    opacity: 0.72;
}

.video-download-progress {
    margin-top: 1rem;
    border-top: 1px solid var(--pf-line);
    padding-top: 0.95rem;
}

.video-download-progress.is-error strong {
    color: var(--pf-danger);
}

.video-download-progress.is-done strong {
    color: var(--pf-accent-dark);
}

.video-download-progress.is-done .spinner-border,
.video-download-progress.is-error .spinner-border {
    display: none;
}

.video-download-progress-bar {
    height: 0.3rem;
    background: var(--pf-line);
    border-radius: 0.15rem;
    overflow: hidden;
}

.video-download-progress-bar .progress-bar {
    background-color: var(--pf-accent);
    border-radius: 0.15rem;
    transition: width 0.35s ease;
}

.video-quality-option .video-quality-format {
    color: var(--pf-ink);
    font-weight: 600;
}

.video-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 0.1rem;
    flex-shrink: 0;
    background: var(--pf-line-strong);
}

.video-status-dot.is-up {
    background: var(--pf-accent);
}

.video-status-dot.is-down {
    background: var(--pf-warn);
}

/* Shared tool guide (below the interactive form) */
.tool-guide {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--pf-line);
}

.tool-guide-intro {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 0 0 1.5rem;
}

.tool-guide-intro-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--card-soft, var(--pf-accent-soft));
    color: var(--card-accent, var(--pf-accent-dark));
}

.tool-guide-lead {
    font-family: var(--pf-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0 0 1.5rem;
    max-width: 40rem;
    color: var(--pf-ink);
}

.tool-guide-heading {
    font-family: var(--pf-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
}

.tool-guide-facts {
    display: grid;
    gap: 1rem;
    margin: 1.75rem 0;
}

@media (min-width: 768px) {
    .tool-guide-facts {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.tool-guide-fact-card {
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow);
    padding: 1.15rem 1.2rem;
}

.tool-guide-fact-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    display: inline-grid;
    place-items: center;
    background: var(--pf-accent-soft);
    color: var(--pf-accent-dark);
    margin-bottom: 0.65rem;
}

.tool-guide-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--pf-muted);
}

.tool-guide-list li {
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

.tool-guide-note {
    margin: 0 0 0.65rem;
    color: var(--pf-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.tool-guide-note span {
    font-weight: 700;
    color: var(--pf-ink-soft);
}

.tool-guide-faq {
    display: grid;
    gap: 0.5rem;
    max-width: 40rem;
}

.tool-guide-faq-item {
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    padding: 0.75rem 1rem;
}

.tool-guide-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--pf-ink);
    list-style: none;
}

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

.tool-guide-faq-item p {
    margin: 0.55rem 0 0;
    color: var(--pf-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

/* Instructional walkthrough (auto-playing SVG guide) */
.walkthrough {
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius-lg);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow-lg);
    padding: 1.15rem 1.15rem 1.25rem;
    margin-bottom: 1.75rem;
}

.walkthrough-sticky {
    position: sticky;
    top: 5.25rem;
}

.walkthrough-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.walkthrough-head-copy {
    min-width: 0;
    flex: 1 1 12rem;
}

.walkthrough-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pf-accent-dark);
}

.walkthrough-title {
    font-family: var(--pf-display);
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

.walkthrough-sub {
    margin: 0.25rem 0 0;
    color: var(--pf-muted);
    font-size: 0.88rem;
}

.walkthrough-controls {
    display: inline-flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.walkthrough-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--pf-line-strong);
    background: #fff;
    color: var(--pf-ink);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s var(--pf-ease), border-color 0.2s var(--pf-ease), transform 0.2s var(--pf-ease);
}

.walkthrough-btn:hover {
    background: var(--pf-accent-soft);
    border-color: var(--pf-accent);
}

.walkthrough-btn:active {
    transform: scale(0.96);
}

.walkthrough-btn-play {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.walkthrough-progress {
    height: 0.28rem;
    border-radius: 999px;
    background: var(--pf-line);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.walkthrough-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pf-accent), #14b8a6);
    transition: width 0.35s var(--pf-ease);
}

.walkthrough-stage {
    position: relative;
    border-radius: var(--pf-radius);
    overflow: hidden;
    background: var(--pf-canvas);
}

.walkthrough-frame {
    margin: 0;
    display: none;
}

.walkthrough-frame.is-active {
    display: block;
    animation: walk-fade 0.35s var(--pf-ease);
}

@keyframes walk-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.guide-frame-svg {
    width: 100%;
    height: auto;
    display: block;
}

.walkthrough-caption {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 0.35rem 0.2rem;
}

.walkthrough-step-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pf-accent-dark);
}

.walkthrough-caption strong {
    font-family: var(--pf-display);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--pf-ink);
    line-height: 1.3;
}

.walkthrough-caption span:last-child {
    color: var(--pf-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.walkthrough-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    min-height: 1.25rem;
}

.walkthrough-dot {
    width: 0.65rem;
    height: 0.65rem;
    min-width: 0.65rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: var(--pf-line-strong);
    cursor: pointer;
    touch-action: manipulation;
    transition: width 0.25s var(--pf-ease), background 0.25s var(--pf-ease);
}

.walkthrough-dot.is-active {
    width: 1.5rem;
    background: var(--pf-accent);
}

.walkthrough-strip {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.walkthrough-strip li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid transparent;
    color: var(--pf-muted);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s var(--pf-ease), border-color 0.2s var(--pf-ease), color 0.2s var(--pf-ease);
}

.walkthrough-strip li.is-active {
    background: var(--pf-accent-soft);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--pf-ink);
}

.walkthrough-strip-num {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.5rem;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--pf-accent);
    color: #eff6ff;
    font-size: 0.75rem;
    font-weight: 700;
}

.walkthrough-strip strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.walkthrough-strip em {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.15rem;
    opacity: 0.85;
}

.tool-guide > .walkthrough {
    margin-top: 0;
}

.tool-workspace .walkthrough {
    margin-bottom: 0;
}

/* Guide SVG art */
.guide-art {
    display: block;
    line-height: 0;
}

.guide-art-svg {
    width: 100%;
    height: auto;
    display: block;
}

.guide-art--banner {
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    box-shadow: var(--pf-shadow);
}

.guide-art--step {
    width: 3.25rem;
}

.guide-art-float {
    transform-box: fill-box;
    transform-origin: center;
}

.guide-art-float-a {
    animation: float-chip 5.5s var(--pf-ease) infinite alternate;
}

.guide-art-float-b {
    animation: float-chip 6.5s var(--pf-ease) infinite alternate-reverse;
}

.guide-art-float-c {
    animation: float-chip 4.8s var(--pf-ease) infinite alternate;
}

/* Home landing extras */
.home-promise {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .home-promise {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.home-promise-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--pf-shadow);
}

.home-promise-art {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
}

.home-promise-art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.home-promise-title {
    font-family: var(--pf-display);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
}

.home-promise-text {
    margin: 0;
    color: var(--pf-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-how {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-how {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-how-card {
    padding: 1.25rem;
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow);
    transition: transform 0.25s var(--pf-ease), box-shadow 0.25s var(--pf-ease);
}

.home-how-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pf-shadow-lg);
}

.home-how-card .guide-art--step {
    width: 3.5rem;
    margin-bottom: 0.9rem;
}

.home-how-card h3 {
    font-family: var(--pf-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}

.home-how-card p {
    margin: 0;
    color: var(--pf-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-grid;
    place-items: center;
    background: var(--card-soft, var(--pf-accent-soft));
    color: var(--card-accent, var(--pf-accent-dark));
    margin-bottom: 0.75rem;
    position: relative;
}

.how-steps--1,
.how-steps--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .how-steps--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-steps--1 {
        grid-template-columns: minmax(0, 28rem);
    }
}

.how-steps--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .how-steps--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.breadcrumb a {
    color: var(--pf-muted);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--pf-ink-soft);
    font-weight: 600;
}

.dropdown-menu {
    border-radius: var(--pf-radius);
    padding: 0.5rem;
    border: 1px solid var(--pf-line) !important;
    box-shadow: var(--pf-shadow-lg) !important;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    border-radius: 0.7rem;
    font-weight: 500;
    padding: 0.55rem 0.8rem;
}

.dropdown-item:hover {
    background: var(--pf-accent-soft);
    color: var(--pf-accent-dark);
}

.nav-categories-menu {
    min-width: min(20rem, calc(100vw - 2rem));
    padding: 0.45rem;
}

.nav-category-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: var(--pf-ink);
}

.nav-category-item:hover,
.nav-category-item:focus {
    background: color-mix(in srgb, var(--card-soft, var(--pf-accent-soft)) 72%, white);
    color: var(--pf-ink);
}

.nav-category-icon {
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    display: inline-grid;
    place-items: center;
    background: var(--card-soft, var(--pf-accent-soft));
    color: var(--card-accent, var(--pf-accent-dark));
}

.nav-category-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.nav-category-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    line-height: 1.25;
}

.nav-category-label {
    font-family: var(--pf-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-category-blurb {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--pf-muted);
}

.btn-outline-light {
    font-family: var(--pf-display);
    font-weight: 600;
    border-radius: 0.8rem;
    padding: 0.7rem 1.2rem;
}

.ad-slot:empty {
    display: none;
}

.ad-slot {
    overflow: hidden;
    max-width: 100%;
}

.ad-slot iframe,
.ad-slot img,
.ad-slot ins {
    max-width: 100% !important;
}

.privacy-note {
    font-size: 0.8125rem;
}

.table-responsive {
    max-width: 100%;
}

.tool-shell,
.feature-tile,
.info-panel,
.hero-title,
.section-lead {
    overflow-wrap: anywhere;
}

.btn:focus-visible,
.tool-filter:focus-visible,
.nav-link-custom:focus-visible,
.url-input:focus-visible {
    outline: 2px solid var(--pf-ink);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    body {
        background-attachment: scroll;
    }

    .walkthrough-sticky {
        position: static;
        top: auto;
    }

    .section {
        padding: 2.25rem 0;
    }

    .page-hero {
        padding: 1.25rem 0 0.75rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem 0.25rem 0.85rem;
        border-top: 1px solid var(--pf-line);
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-categories-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-top: 0.35rem;
        box-shadow: none !important;
        border: 1px solid var(--pf-line) !important;
    }

    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        max-width: 100%;
        padding-bottom: 0.15rem;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .hero-path {
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 0;
        overflow-x: visible;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .hero-path-chip {
        flex: 0 0 auto;
    }

    .hero-visual {
        max-width: min(22rem, 100%);
        margin-inline: auto;
    }

    .guide-art--home,
    .hero-visual .guide-art--home,
    .hero-visual svg {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header .container {
        padding-top: 0.15rem;
        padding-bottom: 0.15rem;
    }

    .brand-mark {
        font-size: 1rem;
        gap: 0.5rem;
        max-width: calc(100% - 3.25rem);
    }

    .brand-logo-text {
        font-size: 1.02rem;
    }

    .brand-badge {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.62rem;
    }

    .navbar-toggler {
        padding: 0.35rem;
        border-radius: 0.65rem;
        background: rgba(255, 255, 255, 0.7);
    }

    .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.75rem;
        border: 1px solid var(--pf-line);
        border-radius: var(--pf-radius);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--pf-shadow);
    }

    .nav-link-custom {
        padding: 0.65rem 0.75rem !important;
    }

    .hero {
        padding-top: 1.15rem;
        padding-bottom: 0.85rem;
    }

    .hero-orb-a {
        width: 10rem;
        height: 10rem;
        right: -2.5rem;
    }

    .hero-orb-b {
        width: 8rem;
        height: 8rem;
    }

    .hero-brand {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(1.35rem, 6.2vw, 1.55rem);
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-visual {
        order: -1;
        min-height: 0;
        max-width: min(16.5rem, 78vw);
        margin-inline: auto;
        margin-bottom: 0.15rem;
    }

    .hero-grid-layout {
        gap: 0.85rem;
    }

    .hero-search .url-input,
    .url-input,
    .tool-shell input,
    .tool-shell select,
    .tool-shell textarea,
    .form-select {
        font-size: 16px; /* prevents iOS zoom */
    }

    .hero-search .url-input {
        min-height: 3rem;
    }

    .url-input {
        min-height: 3rem;
    }

    .tool-url-submit {
        width: 100%;
        min-height: 3rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .hero-actions .btn {
        width: 100%;
        margin-left: 0 !important;
        justify-content: center;
    }

    .home-promise {
        gap: 0.65rem;
    }

    .home-promise-item {
        padding: 0.85rem 0.9rem;
    }

    .home-promise-text {
        font-size: 0.84rem;
    }

    .home-how-card {
        padding: 1rem;
    }

    .section-head {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .tool-card {
        padding: 1.05rem;
    }

    .popular-tile {
        padding: 0.95rem 1rem;
        gap: 0.7rem 0.85rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .popular-tile-desc {
        font-size: 0.82rem;
    }

    .popular-tile-go {
        width: 1.95rem;
        height: 1.95rem;
    }

    .category-card,
    .category-link {
        padding: 1.1rem 1rem;
    }

    .page-hero-main {
        gap: 0.75rem;
        align-items: flex-start;
    }

    .page-hero-icon {
        width: 2.6rem;
        height: 2.6rem;
        flex-shrink: 0;
    }

    .page-hero h1 {
        font-size: 1.28rem;
        line-height: 1.25;
    }

    .page-hero .section-lead {
        font-size: 0.9rem;
    }

    .tool-shell {
        padding: 1.1rem;
        border-radius: 1.1rem;
    }

    .url-input {
        font-size: 16px; /* prevents iOS zoom */
        min-height: 3rem;
    }

    .tool-shell .btn-accent,
    .tool-shell .btn-outline-ink,
    .video-url-row .btn-accent,
    .video-download-group .btn,
    .tool-url-submit {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-height: 3rem;
    }

    .tool-shell .btn + .btn {
        margin-top: 0.55rem;
    }

    .video-download-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .platform-chip {
        padding: 0.45rem 0.7rem;
    }

    .walkthrough {
        padding: 0.95rem;
        margin-bottom: 1.25rem;
        border-radius: 1.1rem;
    }

    .walkthrough-sub {
        display: none;
    }

    .walkthrough-strip {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .walkthrough-strip li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
        padding: 0.55rem 0.35rem;
        min-height: 4.25rem;
    }

    .walkthrough-strip em {
        display: none;
    }

    .walkthrough-strip strong {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .walkthrough-caption {
        padding-top: 0.75rem;
    }

    .walkthrough-caption strong {
        font-size: 1rem;
    }

    .walkthrough-caption span:last-child {
        font-size: 0.86rem;
    }

    .how-steps {
        gap: 0.75rem;
    }

    .how-step {
        padding: 0.95rem;
    }

    .tool-guide-intro {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tool-guide-facts {
        gap: 0.75rem;
    }

    .tool-guide-fact-card {
        padding: 1rem;
    }

    .cta-band {
        padding: 1.5rem 1.15rem;
        border-radius: 1.15rem;
    }

    .cta-band .btn {
        width: 100%;
    }

    .navbar .btn-accent {
        width: 100%;
    }

    .file-upload-dropzone {
        padding: 1.25rem 1rem;
    }

    .info-panel {
        padding: 1rem !important;
    }

    .result-card {
        padding: 1.05rem;
    }

    .result-avatar {
        min-width: 0;
        width: 100%;
    }

    .site-footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    pre {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .walkthrough-strip strong {
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }
}

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