/* SkimmIQ brief - compact, reusable one-pager built on the Lab system. */

.brief-page {
    min-height: 100vh;
}

.brief-hero,
.brief-section {
    scroll-margin-top: 24px;
}

.brief-main {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 64px;
}

.brief-sheet {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    overflow: hidden;
    padding: clamp(30px, 6vw, 64px);
    border: 1px solid rgba(77, 228, 255, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 61, 232, 0.16), transparent 34%),
        radial-gradient(circle at 96% 10%, rgba(77, 228, 255, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(13, 24, 51, 0.97), rgba(5, 12, 29, 0.95));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brief-sheet::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -92px;
    bottom: -112px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(77, 228, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(255, 61, 232, 0.03),
        0 0 0 64px rgba(77, 228, 255, 0.02);
}

.brief-hero {
    max-width: 790px;
}

.brief-hero > .lab-kicker {
    text-align: center;
}

.brief-hero h1 {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-brand);
    font-size: clamp(2rem, 5.4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    background: linear-gradient(100deg, #fff 4%, var(--accent-secondary) 50%, var(--accent-color) 96%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.brief-hook {
    margin: 24px 0 0;
    text-align: center;
    color: var(--text-main);
    font-family: var(--font-brand);
    font-size: clamp(1.25rem, 2.8vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
}

.brief-mechanics-preview {
    position: relative;
    width: min(75%, 585px);
    min-width: 360px;
    aspect-ratio: 1;
    margin: 24px auto 4px;
    overflow: hidden;
    border: 1px solid rgba(77, 228, 255, 0.2);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 22%, rgba(77, 228, 255, 0.09), transparent 55%),
        rgba(2, 9, 23, 0.38);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    touch-action: pan-y;
}

.brief-mechanics-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    background: transparent;
}

/* Keep the embedded animation visual-only, including in mobile Safari. */
.brief-mechanics-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    touch-action: pan-y;
}

.brief-motion-note {
    display: none;
    position: absolute;
    z-index: 3;
    inset: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}

.brief-mechanics-preview.is-motion-reduced .brief-motion-note {
    display: flex;
}

.brief-intro {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    line-height: 1.75;
}

.brief-intro strong {
    color: var(--text-main);
    font-weight: 700;
}

.brief-scale {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--accent-secondary);
    font-family: var(--font-brand);
    font-size: clamp(1rem, 1.8vw, 1.14rem);
    font-weight: 600;
    line-height: 1.55;
}

.brief-section {
    margin-top: 42px;
    padding: 36px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.brief-section h2 {
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-brand);
    font-size: clamp(1.15rem, 2.4vw, 1.48rem);
    line-height: 1.25;
}

.brief-facts {
    display: grid;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.brief-facts li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.68;
}

.brief-facts li::before {
    content: "";
    position: absolute;
    top: 0.64em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 14px rgba(255, 61, 232, 0.52);
}

.brief-facts strong {
    color: var(--text-main);
    font-weight: 600;
}

.brief-facts a {
    color: var(--accent-secondary);
    text-decoration-color: var(--accent-secondary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.brief-facts a:hover,
.brief-facts a:focus-visible {
    color: var(--accent-color);
    text-decoration-color: currentColor;
}

.brief-exact-number {
    overflow-wrap: anywhere;
}

.brief-doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.brief-door {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 132px;
    padding: 20px 22px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(255, 61, 232, 0.14), rgba(77, 228, 255, 0.1)),
        rgba(10, 24, 48, 0.88);
    border-color: rgba(77, 228, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.24);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

a.brief-door::after {
    content: "→";
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--accent-color);
    font-family: var(--font-brand);
    font-size: 1.2rem;
}

a.brief-door:hover,
a.brief-door:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 61, 232, 0.58);
    background:
        linear-gradient(135deg, rgba(255, 61, 232, 0.22), rgba(77, 228, 255, 0.16)),
        rgba(13, 31, 60, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 34px rgba(0, 0, 0, 0.3);
    outline: none;
}

.brief-door-title {
    max-width: calc(100% - 28px);
    color: var(--accent-color);
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
}

.brief-door-detail {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.brief-door-link {
    margin-top: auto;
    padding-top: 16px;
    color: var(--accent-secondary);
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brief-door-apps {
    justify-content: center;
}

.brief-door-app-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.brief-door-app-icon {
    width: 56px;
    height: 56px;
    display: block;
    flex: 0 0 56px;
    object-fit: contain;
}

.brief-door-apps .brief-door-title {
    max-width: none;
}

.brief-door-home {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
}

.brief-store-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--text-muted);
}

.brief-store-links a {
    color: var(--accent-secondary);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 600;
    text-underline-offset: 0.2em;
}

.brief-store-links a:hover,
.brief-store-links a:focus-visible {
    color: var(--accent-color);
}

.brief-ask {
    margin: 42px 0 0;
    padding: 24px 26px;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(255, 61, 232, 0.1), rgba(77, 228, 255, 0.035));
    color: var(--text-main);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.65;
}

.brief-ask p {
    margin: 0;
}

.brief-ask-contact {
    margin-top: 14px !important;
    color: var(--text-muted);
    font-size: 0.92em;
}

.brief-ask strong {
    color: var(--accent-color);
}

.brief-ask a {
    color: var(--accent-secondary);
    font-weight: 650;
    text-underline-offset: 0.2em;
}

.brief-ask a:hover,
.brief-ask a:focus-visible {
    color: var(--accent-color);
}

.brief-footer {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
}

.brief-footer a.brief-footer-home-link,
.brief-footer a.brief-footer-home-link:hover,
.brief-footer a.brief-footer-home-link:focus {
    color: inherit;
    text-decoration: none;
}

.brief-footer a.brief-footer-home-link:focus-visible {
    border-radius: 4px;
    outline: 1px solid var(--accent-secondary);
    outline-offset: 4px;
}

@media (max-width: 680px) {
    .brief-main,
    .brief-footer {
        width: calc(100% - 32px);
    }

    .brief-main {
        padding-top: max(24px, env(safe-area-inset-top));
    }

    .brief-sheet {
        border-radius: 22px;
    }

    .brief-mechanics-preview {
        width: 100%;
        max-width: 360px;
        min-width: 0;
    }

    .brief-doors {
        grid-template-columns: 1fr;
    }

    .brief-door-home {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    .brief-door {
        min-height: 118px;
    }
}

@media (max-width: 680px) and (orientation: portrait) {
    .brief-hero h1 {
        font-size: min(2rem, 7.3vw);
        font-size: min(2rem, 10.25cqi);
    }
}

@media (max-width: 390px) {
    .brief-sheet {
        padding: 26px 20px;
    }

    .brief-facts li {
        padding-left: 24px;
        font-size: 0.94rem;
    }

    .brief-door {
        padding: 18px;
    }

    a.brief-door::after {
        right: 16px;
    }
}
