/* ---------------------------------------------------------------------------
   Showcase page: product tour, screenshot carousel, example PDF report.

   Same tokens as the rest of TraceFind. Everything is `sc-` prefixed because
   this page also carries Webflow, Tailwind and Geist class names.
   --------------------------------------------------------------------------- */

.sc {
    --sc-surface: #0a0a0a;
    --sc-raised: hsla(0, 0%, 100%, 0.024);
    --sc-border: hsla(0, 0%, 100%, 0.12);
    --sc-border-strong: hsla(0, 0%, 100%, 0.22);
    --sc-fg: #ededed;
    --sc-muted: #a1a1a1;
    --sc-faint: #7d7d7d;
    --sc-accent: #f5d984;
}

.sc-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 56px;
    box-sizing: border-box;
    text-align: left;
}

.sc-section-head {
    margin: 0 auto 22px;
    text-align: center;
}

.sc-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sc-accent);
}

.sc-section-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--sc-fg);
}

.sc-section-head p {
    margin: 8px auto 0;
    max-width: 620px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--sc-muted);
}

/* ============================================================== carousel === */
.sc-carousel {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    overflow: hidden;
}

/* Tab strip naming each screen. Scrolls sideways inside itself on narrow
   viewports rather than widening the page. */
.sc-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--sc-border);
    background: var(--sc-raised);
    overflow-x: auto;
    scrollbar-width: none;
}

.sc-tabs::-webkit-scrollbar {
    display: none;
}

.sc-tab {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--sc-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sc-tab:hover {
    background: hsla(0, 0%, 100%, 0.06);
    color: var(--sc-fg);
}

.sc-tab[aria-selected='true'] {
    background: var(--sc-fg);
    color: #0a0a0a;
}

/* The viewport holds one slide at a time; slides are absolutely stacked so
   swapping cannot shift the page height. */
.sc-stage {
    position: relative;
}

.sc-slides {
    position: relative;
    /* 16:10 keeps a desktop screenshot from becoming a letterbox on mobile. */
    aspect-ratio: 16 / 10;
    background: #050505;
}

/* Which slide shows is decided by `display`, not by a transition.
   `visibility`/`opacity` were being transitioned, which means the switch only
   completes if transitions actually run — in a throttled or backgrounded tab
   they don't, and the slide never appeared. `display` is not animatable, so it
   flips immediately and correctly under every condition. */
.sc-slide {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}

.sc-slide[data-active='true'] {
    display: flex;
}

.sc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ---- placeholder ----------------------------------------------------------
   Shown until a real screenshot is dropped in. It states the exact filename
   and what the shot should contain, so replacing it needs no guesswork. */
.sc-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 9px,
            hsla(0, 0%, 100%, 0.028) 9px,
            hsla(0, 0%, 100%, 0.028) 18px
        );
    box-sizing: border-box;
}

.sc-placeholder svg {
    width: 26px;
    height: 26px;
    color: var(--sc-faint);
}

.sc-placeholder-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-fg);
}

.sc-placeholder-desc {
    max-width: 440px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--sc-muted);
}

.sc-placeholder-path {
    padding: 4px 9px;
    border: 1px solid var(--sc-border);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    color: var(--sc-accent);
    word-break: break-all;
}

/* ---- caption + arrows ---------------------------------------------------- */
.sc-caption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-top: 1px solid var(--sc-border);
    background: var(--sc-raised);
}

.sc-caption-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sc-muted);
}

.sc-caption-text b {
    display: block;
    margin-bottom: 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sc-fg);
}

.sc-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.sc-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: 0 0 0 1px var(--sc-border);
    color: var(--sc-fg);
    cursor: pointer;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.sc-nav button:hover {
    background: hsla(0, 0%, 100%, 0.06);
    box-shadow: 0 0 0 1px var(--sc-border-strong);
}

.sc-nav svg {
    width: 15px;
    height: 15px;
}

/* ============================================================ PDF report === */
.sc-report {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    overflow: hidden;
}

.sc-report-copy {
    padding: 28px;
}

.sc-report-copy h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--sc-fg);
}

.sc-report-copy p {
    margin: 0 0 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--sc-muted);
}

.sc-report-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--sc-muted);
}

.sc-report-list li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 20px;
}

.sc-report-list li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 0.42em;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--sc-accent);
    border-bottom: 1.5px solid var(--sc-accent);
    transform: rotate(-45deg);
}

.sc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Matches the white "Account" button in the top app bar. */
.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--sc-fg);
    color: #0a0a0a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.sc-btn:hover {
    background: #cccccc;
}

.sc-btn svg {
    width: 15px;
    height: 15px;
}

.sc-btn-ghost {
    background: transparent;
    color: var(--sc-fg);
    box-shadow: 0 0 0 1px var(--sc-border);
}

.sc-btn-ghost:hover {
    background: hsla(0, 0%, 100%, 0.06);
    box-shadow: 0 0 0 1px var(--sc-border-strong);
}

.sc-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #0a0a0a,
        0 0 0 4px hsla(0, 0%, 100%, 0.4);
}

/* The embedded PDF preview pane. */
.sc-report-frame {
    position: relative;
    min-height: 340px;
    border-left: 1px solid var(--sc-border);
    background: #050505;
}

.sc-report-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

/* Fallback for browsers that refuse to render a PDF inline. Sits underneath
   the iframe, so it is only seen when the iframe paints nothing. */
.sc-report-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--sc-muted);
    box-sizing: border-box;
}

.sc-report-frame iframe {
    position: relative;
    z-index: 1;
}

/* ============================================================== features === */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.sc-card {
    padding: 20px;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.sc-card:hover {
    border-color: var(--sc-border-strong);
    background: var(--sc-raised);
}

.sc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border: 1px solid rgba(245, 217, 132, 0.24);
    border-radius: 8px;
    background: rgba(245, 217, 132, 0.08);
    color: var(--sc-accent);
}

.sc-card-icon svg {
    width: 16px;
    height: 16px;
}

.sc-card h3 {
    margin: 0 0 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sc-fg);
}

.sc-card p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--sc-muted);
}

/* ================================================================= steps === */
.sc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    counter-reset: sc-step;
}

.sc-step {
    position: relative;
    padding: 20px 20px 20px 56px;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    counter-increment: sc-step;
}

.sc-step::before {
    content: counter(sc-step);
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--sc-border);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: var(--sc-accent);
}

.sc-step h3 {
    margin: 0 0 5px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sc-fg);
}

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

/* ================================================================== video == */
.sc-video {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    overflow: hidden;
}

.sc-video video {
    display: block;
    width: 100%;
    max-height: 620px;
    background: #050505;
}

/* ================================================================== CTA ==== */
.sc-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 28px;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
}

.sc-cta-copy {
    flex: 1 1 260px;
    min-width: 0;
}

.sc-cta-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--sc-fg);
}

.sc-cta-copy span {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--sc-muted);
}

@media (max-width: 820px) {
    .sc-report {
        grid-template-columns: minmax(0, 1fr);
    }

    .sc-report-frame {
        border-left: none;
        border-top: 1px solid var(--sc-border);
        min-height: 420px;
    }
}

@media (max-width: 520px) {
    .sc-report-copy {
        padding: 22px 18px;
    }

    .sc-actions .sc-btn {
        width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    .sc-tab,
    .sc-nav button,
    .sc-card {
        transition: none;
    }
}
