/* Find Out — CAFO side world · cosmic theme matching the main site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.findout {
    --bg: #07091a;
    --bg-2: #10163a;
    --ink: #f0f1ff;
    --muted: #a2a8d0;
    --accent: #64a6f5;
    --primary: #8b7ff0;
    --claude: #c4b5fd;
    --cook: #ef8fd0;
    --code: #5ea2ef;
    --craft: #8fe3d0;
    --line: rgba(196, 181, 253, 0.16);
    --stitch: rgba(196, 181, 253, 0.32);
    --stitch-strong: rgba(196, 181, 253, 0.6);
    --surface: rgba(19, 26, 61, 0.66);
    min-height: 100vh;
    font-family: "Outfit", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Plain dark ground */
.findout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(170deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

/* (doily lace background removed — archived in css/lace.css) */

.fo-top,
.fo-hero,
.fo-grid,
.fo-foot {
    position: relative;
    z-index: 1;
}

/* ---------- Top bar (fixed) ---------- */
.fo-top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 26, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.fo-back, .fo-mark {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.fo-back:hover {
    color: var(--ink);
    text-shadow: 0 0 12px rgba(139, 127, 240, 0.6);
}

.fo-mark { letter-spacing: 0.2em; }

/* ---------- Hero ---------- */
.fo-hero {
    width: min(720px, calc(100% - 3rem));
    margin: 9rem auto 3rem;   /* clears the fixed top bar */
}

.fo-eyebrow {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.fo-hero h1 {
    font-family: "Syne", sans-serif;
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 2.25rem;
    text-shadow: 0 0 38px rgba(139, 127, 240, 0.45), 0 0 80px rgba(94, 162, 239, 0.25);
    position: relative;
    display: inline-block;
}

/* Cross-stitch underline */
.fo-hero h1::after {
    content: "";
    position: absolute;
    left: 0.05em;
    bottom: -0.17em;
    width: 2.8em;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='11'%3E%3Cpath d='M2 1.5L10 9.5M10 1.5L2 9.5' fill='none' stroke='%238b7ff0' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M16 1.5L24 9.5M24 1.5L16 9.5' fill='none' stroke='%235ea2ef' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left center;
    background-size: 28px 11px;
    filter: drop-shadow(0 1px 1px rgba(3, 5, 20, 0.4));
}

.fo-lead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 40ch;
}

.fo-lead strong { color: var(--claude); font-weight: 600; }

/* ---------- Cards ---------- */
.fo-grid {
    width: min(1100px, calc(100% - 3rem));
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.fo-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Inset running-stitch with raised-thread shadow + french-knot corners */
.fo-card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 2px dashed var(--stitch);
    border-radius: 15px;
    pointer-events: none;
    transition: border-color 0.25s ease;
    filter: drop-shadow(0 1px 1px rgba(3, 5, 20, 0.45));
    background:
        radial-gradient(circle, var(--stitch-strong) 1.7px, transparent 2.4px) no-repeat 3px 3px / 7px 7px,
        radial-gradient(circle, var(--stitch-strong) 1.7px, transparent 2.4px) no-repeat calc(100% - 3px) 3px / 7px 7px,
        radial-gradient(circle, var(--stitch-strong) 1.7px, transparent 2.4px) no-repeat 3px calc(100% - 3px) / 7px 7px,
        radial-gradient(circle, var(--stitch-strong) 1.7px, transparent 2.4px) no-repeat calc(100% - 3px) calc(100% - 3px) / 7px 7px;
}

.fo-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: currentColor;
    box-shadow: 0 0 28px rgba(139, 127, 240, 0.25), 0 18px 40px rgba(3, 5, 20, 0.4);
}

.fo-card:hover::before {
    border-color: currentColor;
}

.fo-tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: fit-content;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1.5px dashed currentColor;
}

.fo-card--claude { color: var(--claude); }
.fo-card--cook { color: var(--cook); }
.fo-card--code { color: var(--code); }
.fo-card--craft { color: var(--craft); }

.fo-card h2 {
    font-family: "Syne", sans-serif;
    font-size: 1.35rem;
    color: var(--ink);
    font-weight: 700;
}

.fo-card p {
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
}

.fo-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.85;
    transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.fo-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-shadow: 0 0 12px currentColor;
}

/* ---------- Footer ---------- */
/* Blanket-stitch seam */
.fo-foot {
    text-align: center;
    padding: 2.25rem 2rem 2rem;
    color: var(--muted);
    font-size: 0.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10'%3E%3Cpath d='M0 1.5H18M9 1.5V8.5' fill='none' stroke='%23c4b5fd' stroke-opacity='0.45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 18px 10px;
}

@media (max-width: 720px) {
    .fo-grid { grid-template-columns: 1fr; }
    .fo-cosmo--planet { width: 52px; }
    .fo-cosmo--moon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fo-float,
    .fo-float--slow,
    .fo-twinkle,
    .fo-twinkle--2,
    .fo-twinkle--3 {
        animation: none;
    }
}
