/* ============================================================
   FalconCast — custom premium styling on top of daisyUI/Tailwind
   ============================================================ */

:root {
    --fc-grad: linear-gradient(135deg, #25a8ff 0%, #1a8fff 45%, #0a6cf0 100%);
    --fc-grad-soft: linear-gradient(135deg, rgba(26,143,255,.13), rgba(10,108,240,.13));
    --fc-primary: #1a8fff;
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden; /* guard against any accidental horizontal scroll on mobile */
}
img { max-width: 100%; height: auto; }
* { min-width: 0; } /* let flex/grid children shrink instead of overflowing */

/* ---- Brand buttons ---- */
.fc-btn-primary { background-image: var(--fc-grad); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.fc-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(124,58,237,.55); }
.fc-btn-ghost { border: 1px solid rgba(125,125,140,.25); }

/* ---- Logo sizing (works for both the SVG fallback and a real logo image) ---- */
.fc-logo svg, .fc-logo .fc-logo-img { width: 2rem; height: 2rem; display: block; object-fit: contain; }
.fc-screen-logo svg, .fc-screen-logo .fc-logo-img { width: 1.4rem; height: 1.4rem; object-fit: contain; }

/* ---- Navbar (glassy, becomes solid on scroll) ---- */
.fc-nav {
    background: color-mix(in srgb, var(--fallback-b1, oklch(var(--b1))) 70%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    min-height: 3.5rem;            /* slimmer header (was 4rem) */
    padding-top: .3rem; padding-bottom: .3rem;
}
/* Compact brand logo inside the header only (footer/admin keep their size) */
.fc-nav .fc-logo svg, .fc-nav .fc-logo .fc-logo-img { width: 1.6rem; height: 1.6rem; }
.fc-nav.fc-scrolled {
    background: color-mix(in srgb, var(--fallback-b1, oklch(var(--b1))) 92%, transparent);
    border-bottom-color: color-mix(in srgb, currentColor 10%, transparent);
    box-shadow: 0 4px 24px -12px rgba(0,0,0,.25);
}

/* ---- Eyebrow + pill ---- */
.fc-eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--fc-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fc-pill {
    padding: .4rem .9rem; border-radius: 999px;
    background: var(--fc-grad-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 25%, transparent);
}

/* ---- Hero ---- */
.fc-hero { position: relative; }
.fc-hero-glow {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.fc-hero-glow::before, .fc-hero-glow::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
}
.fc-hero-glow::before { width: 420px; height: 420px; background: #7c3aed; top: -120px; right: -60px; }
.fc-hero-glow::after  { width: 360px; height: 360px; background: #6366f1; bottom: -160px; left: -80px; opacity: .25; }

/* ---- Phone mockup ---- */
.fc-phone {
    width: 250px; height: 510px; border-radius: 42px; padding: 12px;
    background: linear-gradient(160deg, #1f2230, #0c0d14);
    box-shadow: 0 30px 60px -20px rgba(76,29,149,.45), 0 0 0 2px rgba(255,255,255,.05) inset;
    position: relative;
}
.fc-phone-notch {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 22px; background: #0c0d14; border-radius: 0 0 14px 14px; z-index: 3;
}
.fc-phone-screen {
    width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #2d2756 0%, #15131f 60%, #0d0b14 100%);
    display: flex; flex-direction: column; padding: 26px 16px 16px;
}
.fc-screen-top { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fc-screen-hero {
    margin-top: 16px; height: 120px; border-radius: 16px;
    background: var(--fc-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; letter-spacing: .15em; font-size: .8rem;
    box-shadow: 0 10px 24px -8px rgba(124,58,237,.6);
    position: relative;
}
.fc-screen-hero::after {
    content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: #ff4d4f; top: 12px; left: 12px; box-shadow: 0 0 0 4px rgba(255,77,79,.25);
}
.fc-screen-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fc-screen-grid span {
    aspect-ratio: 1; border-radius: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.05);
}
.fc-screen-grid span:nth-child(3n+1) { background: rgba(124,58,237,.18); }
.fc-screen-grid span:nth-child(3n)   { background: rgba(99,102,241,.14); }

/* ---- Hero app-preview image (replaces the CSS phone mockup) ---- */
.fc-hero-img {
    width: 100%; max-width: 320px; height: auto; display: block;
    filter: drop-shadow(0 30px 55px rgba(10,108,240,.38));
}
@media (max-width: 640px) { .fc-hero-img { max-width: 260px; } }

.fc-float { animation: fcFloat 6s ease-in-out infinite; }
@keyframes fcFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Feature cards ---- */
.fc-feature-card {
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 20px; padding: 1.75rem;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.fc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(99,102,241,.5);
    border-color: color-mix(in srgb, var(--fc-primary) 35%, transparent);
}
.fc-feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--fc-grad-soft); color: var(--fc-primary);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 22%, transparent);
}

/* ---- Screenshots gallery (auto-scrolling carousel) ---- */
.fc-gallery { position: relative; }
.fc-shots {
    display: flex; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth;
    padding: 1.25rem 0.5rem 1.5rem;
    scrollbar-width: none; -ms-overflow-style: none;
}
.fc-shots::-webkit-scrollbar { display: none; }
.fc-gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--fc-grad); color: #fff; border: none; cursor: pointer;
    box-shadow: 0 12px 26px -8px rgba(26,143,255,.65); z-index: 6;
    transition: transform .15s ease, filter .2s ease;
}
.fc-gallery-btn:hover { filter: brightness(1.08); transform: translateY(-50%) scale(1.07); }
.fc-gallery-btn:active { transform: translateY(-50%) scale(.96); }
.fc-gallery-prev { left: -10px; }
.fc-gallery-next { right: -10px; }
@media (max-width: 640px) {
    .fc-gallery-btn { width: 42px; height: 42px; }
    .fc-gallery-prev { left: 0; }
    .fc-gallery-next { right: 0; }
}
.fc-gallery-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
    background: var(--fc-grad-soft); color: var(--fc-primary);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 25%, transparent);
    cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease;
}
.fc-gallery-toggle:hover { background: var(--fc-grad); color: #fff; transform: translateY(-1px); }
.fc-gallery-toggle svg { width: 1rem; height: 1rem; }
.fc-gallery-toggle .fc-icon-play { display: none; }
.fc-gallery-toggle.is-paused .fc-icon-pause { display: none; }
.fc-gallery-toggle.is-paused .fc-icon-play { display: inline-block; }
.fc-shot {
    flex: 0 0 auto; width: 230px; height: 470px; border-radius: 28px; overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    background: radial-gradient(120% 80% at 50% 0%, #2d2756, #15131f 70%);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,.5);
    display: flex; flex-direction: column;
}
.fc-shot-bar { height: 46px; background: var(--fc-grad); opacity: .9; }
.fc-shot-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.fc-shot-tag { color: rgba(255,255,255,.65); font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
.fc-shot-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Real device-framed screenshots (transparent PNG/WebP mockups) ---- */
.fc-screenshot { flex: 0 0 auto; height: 640px; display: flex; align-items: center; justify-content: center; }
.fc-screenshot-img {
    height: 100%; width: auto; object-fit: contain; display: block;
    filter: drop-shadow(0 24px 44px rgba(10,108,240,.28));
    transition: transform .25s ease;
}
.fc-screenshot:hover .fc-screenshot-img { transform: translateY(-6px); }
@media (max-width: 640px) { .fc-screenshot { height: 500px; } }

/* ---- Admin screenshot thumbnails ---- */
.fc-shot-thumb {
    position: relative; display: block; border-radius: 12px; overflow: hidden;
    aspect-ratio: 9 / 16; cursor: pointer;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.fc-shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-shot-del {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 5px; justify-content: center;
    padding: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 600;
    cursor: pointer;
}
/* Drag-to-reorder gallery tiles (admin) */
.fc-shot-thumb.fc-sortable { cursor: grab; }
.fc-shot-thumb.fc-sortable:active { cursor: grabbing; }
.fc-shot-num {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    min-width: 22px; height: 22px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #1a8fff; color: #fff;
    font-size: .72rem; font-weight: 800; line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.fc-sortable-ghost { opacity: .4; outline: 2px dashed #1a8fff; }

/* Admin feature-image preview */
.fc-img-preview {
    aspect-ratio: 12 / 5; border-radius: 10px; overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    background: color-mix(in srgb, currentColor 5%, transparent);
    display: flex; align-items: center; justify-content: center;
}
.fc-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-img-empty { font-size: .75rem; opacity: .45; font-style: italic; }

/* Admin user avatar (initial circle) */
.fc-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .82rem; color: #fff;
    background: linear-gradient(135deg, #25a8ff, #0a6cf0);
}
.fc-avatar.is-owner { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Admin homepage-section reorder list */
.fc-sec-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    background: color-mix(in srgb, currentColor 3%, transparent);
}
.fc-sec-handle { cursor: grab; font-size: 1.1rem; opacity: .45; user-select: none; line-height: 1; }
.fc-sec-handle:active { cursor: grabbing; }
.fc-sec-label { flex: 1; font-weight: 600; font-size: .92rem; }
.fc-sec-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* Custom homepage section with brand-gradient background */
.fc-section-primary { background: linear-gradient(135deg, #25a8ff, #0a6cf0); color: #fff; }
.fc-section-primary .fc-prose,
.fc-section-primary h2,
.fc-section-primary h3,
.fc-section-primary p { color: #fff; }
.fc-section-primary .fc-eyebrow { color: rgba(255,255,255,.85); }

/* ===================== Download page ===================== */
.fc-dl-card {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 26px; padding: 2.75rem 1.75rem 2.25rem;
    background:
        radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, #1a8fff 18%, transparent), transparent 62%),
        var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, #1a8fff 24%, transparent);
    box-shadow: 0 30px 70px -34px color-mix(in srgb, #0a6cf0 70%, transparent);
}
.fc-dl-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #25a8ff, #0a6cf0);
}
.fc-dl-icon {
    width: 88px; height: 88px; margin: 0 auto; border-radius: 22px;
    display: grid; place-items: center; background: #fff;
    border: 1px solid color-mix(in srgb, #1a8fff 18%, transparent);
    box-shadow: 0 16px 36px -12px color-mix(in srgb, #0a6cf0 60%, transparent);
}
.fc-dl-icon .fc-logo-img, .fc-dl-icon svg { width: 56px !important; height: 56px !important; }

/* Pills */
.fc-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
}
.fc-pill svg { width: 14px; height: 14px; opacity: .8; }
.fc-pill-accent {
    color: #1a8fff;
    background: color-mix(in srgb, #1a8fff 12%, transparent);
    border-color: color-mix(in srgb, #1a8fff 28%, transparent);
}
.fc-dot { width: 7px; height: 7px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent); }

/* Big download button — extra glow + lift */
.fc-dl-btn { box-shadow: 0 18px 44px -12px color-mix(in srgb, #0a6cf0 80%, transparent); transition: transform .15s ease, box-shadow .15s ease; }
.fc-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 52px -12px color-mix(in srgb, #0a6cf0 90%, transparent); }

/* Trust badges */
.fc-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .fc-trust { grid-template-columns: repeat(4, 1fr); } }
.fc-trust-item {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1.1rem .5rem; border-radius: 16px; text-align: center; font-size: .82rem; font-weight: 600;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    background: color-mix(in srgb, currentColor 3%, transparent);
}
.fc-trust-item svg { width: 24px; height: 24px; color: #22c55e; }

/* Device install cards */
.fc-device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .fc-device-grid { grid-template-columns: repeat(4, 1fr); } }
.fc-device-card {
    display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
    padding: 1.35rem .75rem; border-radius: 18px; font-weight: 700; font-size: .9rem;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    background: var(--fallback-b1, oklch(var(--b1)));
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fc-device-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, #1a8fff 45%, transparent);
    box-shadow: 0 14px 34px -16px color-mix(in srgb, #0a6cf0 60%, transparent);
}
.fc-device-card svg { width: 30px; height: 30px; color: #1a8fff; }

/* "Is it safe?" trust panel */
.fc-safe {
    border-radius: 20px; padding: 1.5rem;
    border: 1px solid color-mix(in srgb, #22c55e 24%, transparent);
    background: color-mix(in srgb, #22c55e 6%, transparent);
}
.fc-safe-icon {
    flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: color-mix(in srgb, #22c55e 16%, transparent); color: #16a34a;
}
.fc-safe-icon svg { width: 26px; height: 26px; }
.fc-safe-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.fc-safe-list li { position: relative; padding-left: 1.6rem; font-size: .86rem; opacity: .82; line-height: 1.5; }
.fc-safe-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #22c55e; font-weight: 800; }

/* ===================== Admin sidebar layout ===================== */
.fc-admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 256px; z-index: 50;
    transform: translateX(-100%); transition: transform .25s ease;
    overflow-y: auto; overscroll-behavior: contain;
}
.fc-admin-sidebar.open { transform: translateX(0); }
.fc-admin-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45; display: none; }
.fc-admin-overlay.open { display: block; }
.fc-admin-content { min-height: 100vh; display: flex; flex-direction: column; }
.fc-admin-group-title {
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    opacity: .45; padding: 0 .5rem; margin: 1.1rem 0 .35rem;
}
.fc-admin-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem .7rem; border-radius: 10px; font-size: .9rem; font-weight: 500;
    color: inherit; opacity: .8; transition: background .15s, opacity .15s;
}
.fc-admin-link:hover { opacity: 1; background: color-mix(in srgb, currentColor 7%, transparent); }
.fc-admin-link.active {
    opacity: 1; font-weight: 700;
    background: color-mix(in srgb, #1a8fff 14%, transparent);
    color: #1a8fff;
}
.fc-admin-link svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 1024px) {
    .fc-admin-sidebar { transform: translateX(0); }
    .fc-admin-content { margin-left: 256px; }
    .fc-admin-overlay { display: none !important; }
    .fc-admin-burger { display: none !important; }
}

/* ---- Install steps ---- */
.fc-step {
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 20px; padding: 2rem; position: relative;
}
.fc-step-num {
    width: 48px; height: 48px; border-radius: 14px; font-weight: 800; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--fc-grad); color: #fff;
    box-shadow: 0 10px 22px -10px rgba(124,58,237,.6);
}

/* ---- About tags ---- */
.fc-tag {
    display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: var(--fc-grad-soft); color: var(--fc-primary);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 22%, transparent);
}

/* ---- APK spec card ---- */
.fc-spec-card {
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 20px; padding: 1.75rem;
    box-shadow: 0 18px 44px -28px rgba(99,102,241,.45);
}
/* Professional bordered spec table */
.fc-spec-wrap {
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 14px; overflow: hidden;
}
.fc-spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fc-spec-table th, .fc-spec-table td {
    padding: .85rem 1.2rem; text-align: left; vertical-align: middle; line-height: 1.4;
    border-bottom: 1px solid color-mix(in srgb, currentColor 11%, transparent);
}
.fc-spec-table th {
    width: 40%; font-weight: 600; opacity: .7; white-space: nowrap;
    border-right: 1px solid color-mix(in srgb, currentColor 11%, transparent);
    background: color-mix(in srgb, currentColor 4%, transparent);
}
.fc-spec-table td { font-weight: 600; word-break: break-word; }
.fc-spec-table tr:last-child th, .fc-spec-table tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
    .fc-spec-table th, .fc-spec-table td { padding: .7rem .85rem; font-size: .85rem; }
    .fc-spec-table th { white-space: normal; }
}
.fc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--fc-grad-soft); color: var(--fc-primary);
    padding: .1rem .5rem; border-radius: 6px; letter-spacing: .03em;
}

/* ---- Disclaimer ---- */
.fc-disclaimer {
    border-radius: 16px; padding: 1.5rem;
    background: color-mix(in srgb, #ef4444 9%, transparent);
    border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
}
.fc-disclaimer h2 { color: #dc2626; }
[data-theme="dark"] .fc-disclaimer { background: color-mix(in srgb, #ef4444 14%, transparent); border-color: color-mix(in srgb, #ef4444 38%, transparent); }
[data-theme="dark"] .fc-disclaimer h2 { color: #f87171; }

/* ---- Footer ---- */
.footer-title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .55; margin-bottom: .85rem; }
.fc-social, .fc-social-solid {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.fc-social { color: currentColor; opacity: .7; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.fc-social:hover { opacity: 1; transform: translateY(-2px); color: var(--fc-primary); border-color: var(--fc-primary); }
.fc-social-solid { background: var(--fc-grad-soft); color: var(--fc-primary); border: 1px solid color-mix(in srgb, var(--fc-primary) 20%, transparent); }
.fc-social-solid:hover { transform: translateY(-2px); background: var(--fc-grad); color: #fff; }

/* ---- Inner-page hero ---- */
.fc-page-hero {
    position: relative; overflow: hidden;
    padding: 6.5rem 0 3rem; text-align: center;
    background: var(--fc-grad-soft);
    border-bottom: 1px solid color-mix(in srgb, var(--fc-primary) 12%, transparent);
}
.fc-breadcrumb { display: inline-flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; opacity: .65; justify-content: center; }
.fc-breadcrumb a:hover { color: var(--fc-primary); opacity: 1; }
.fc-breadcrumb .sep { opacity: .4; }

/* ---- Long-form prose (legal, about, blog) ---- */
.fc-prose { line-height: 1.75; }
.fc-prose > * + * { margin-top: 1.05rem; }
.fc-prose h2 { font-size: 1.6rem; font-weight: 800; margin-top: 2.2rem; }
.fc-prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6rem; }
.fc-prose p, .fc-prose li { opacity: .8; }
.fc-prose ul, .fc-prose ol { padding-left: 1.4rem; }
.fc-prose ul { list-style: disc; }
.fc-prose ol { list-style: decimal; }
.fc-prose li { margin-top: .4rem; }
.fc-prose a { color: var(--fc-primary); text-decoration: underline; text-underline-offset: 2px; }
.fc-prose a.btn, .fc-prose a.fc-tag, .fc-prose .fc-cta a { text-decoration: none; }
.fc-prose .fc-cta a:not(.btn) { color: inherit; }
/* keep the white CTA button readable (don't let prose force its text to inherit) */
.fc-prose .fc-cta a.btn { color: #0f172a; }
.fc-prose strong { font-weight: 700; opacity: .95; }
.fc-prose blockquote {
    border-left: 3px solid var(--fc-primary); padding-left: 1rem; opacity: .75; font-style: italic;
}
/* Tables inside blog/prose content */
.fc-prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.fc-prose th, .fc-prose td {
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    padding: .6rem .85rem; text-align: left; vertical-align: top;
}
.fc-prose thead th { background: color-mix(in srgb, var(--fc-primary) 12%, transparent); font-weight: 700; }
.fc-prose tbody tr:nth-child(even) { background: color-mix(in srgb, currentColor 4%, transparent); }
.fc-prose .fc-table-wrap { overflow-x: auto; }

/* ---- Link cards (install hub, blog grid) ---- */
.fc-link-card {
    display: block; height: 100%;
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
    border-radius: 18px; padding: 1.5rem;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.fc-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(26,143,255,.5);
    border-color: color-mix(in srgb, var(--fc-primary) 35%, transparent);
}
.fc-link-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--fc-grad-soft); color: var(--fc-primary);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 22%, transparent);
}

/* ---- Numbered step list (install guides) ---- */
.fc-steps { counter-reset: step; }
.fc-steps > li {
    position: relative; list-style: none; padding-left: 3.4rem; min-height: 2.4rem;
    margin-top: 1.5rem;
}
.fc-steps > li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
    background: var(--fc-grad); box-shadow: 0 8px 18px -8px rgba(26,143,255,.6);
}
.fc-steps > li h3 { font-weight: 700; font-size: 1.05rem; }
.fc-steps > li p { opacity: .7; margin-top: .25rem; font-size: .92rem; }

/* ---- Blog ---- */
.fc-blog-thumb {
    aspect-ratio: 16/9; border-radius: 14px 14px 0 0; overflow: hidden;
    background: var(--fc-grad); display: flex; align-items: center; justify-content: center;
}
.fc-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-blog-thumb span { color: #fff; font-weight: 800; letter-spacing: .04em; opacity: .9; padding: 1rem; text-align: center; }

/* ---- CTA banner ---- */
.fc-cta {
    background: var(--fc-grad);
    border-radius: 28px; padding: 2.5rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    align-items: center; justify-content: space-between;
    box-shadow: 0 30px 60px -24px rgba(124,58,237,.6);
    position: relative; overflow: hidden;
}
@media (min-width: 768px) { .fc-cta { flex-direction: row; } }
.fc-cta::before {
    content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.12); top: -120px; right: -60px;
}

/* ---- FAQ ---- */
.fc-faq {
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 16px;
}

/* ---- Theme toggle icon swap ---- */
.fc-moon { display: none; }
[data-theme="dark"] .fc-sun { display: none; }
[data-theme="dark"] .fc-moon { display: block; }

/* ---- Scroll reveal ---- */
.fc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fc-reveal.fc-in { opacity: 1; transform: none; }

/* ---- Admin: group each stacked row on mobile ---- */
@media (max-width: 767px) {
    .fc-row {
        padding: .85rem; border-radius: 12px;
        border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
        background: color-mix(in srgb, currentColor 3%, transparent);
    }
}

/* ---- Small-screen sizing ---- */
@media (max-width: 400px) {
    .fc-phone { width: 220px; height: 450px; border-radius: 36px; padding: 10px; }
    .fc-phone-screen { border-radius: 28px; }
    .fc-shot { width: 200px; height: 410px; }
    .fc-cta { padding: 1.75rem; }
    .fc-feature-card, .fc-step, .fc-spec-card { padding: 1.4rem; }
}
/* Tablet: 2-up feature grid already handled by Tailwind; tighten hero spacing */
@media (min-width: 640px) and (max-width: 1023px) {
    .fc-phone { width: 270px; height: 540px; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-float { animation: none; }
    .fc-reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---- Feature/banner image (auto-rendered per page) ---- */
.fc-feature-img {
    display: block; margin-left: auto; margin-right: auto;
    width: auto; max-width: 100%;
    max-height: 300px;                 /* tablet / desktop — tidy, not oversized */
    border-radius: 16px;
    box-shadow: 0 20px 48px -24px rgba(16, 42, 86, .45);
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
@media (max-width: 640px)  { .fc-feature-img { max-height: 190px; border-radius: 12px; } }  /* phones */
@media (min-width: 641px) and (max-width: 1023px) { .fc-feature-img { max-height: 260px; } } /* tablets */
@media (min-width: 1280px) { .fc-feature-img { max-height: 340px; } }                        /* large desktop / Android TV */

/* Large variant — used only for the homepage "What is" banner (full container width) */
.fc-feature-img-lg {
    display: block; width: 100%; margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 24px 56px -26px rgba(16, 42, 86, .5);
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
@media (max-width: 640px) { .fc-feature-img-lg { border-radius: 14px; } }

/* ---- Homepage stats ---- */
.fc-stat-num {
    font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 900; line-height: 1;
    background: var(--fc-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fc-stat-label { margin-top: .5rem; font-weight: 600; opacity: .6; }

/* ---- Sports cards ---- */
.fc-sport-card {
    display: flex; align-items: center; gap: .85rem; padding: .9rem 1.15rem;
    border-radius: 14px;
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.fc-sport-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--fc-primary) 35%, transparent);
    box-shadow: 0 16px 34px -20px rgba(26, 143, 255, .5);
}
.fc-sport-emoji {
    flex: 0 0 auto; width: 2.7rem; height: 2.7rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: var(--fc-grad-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 18%, transparent);
}

/* ============================================================
   Dark theme — readability & contrast tuning
   ============================================================ */
[data-theme="dark"] .opacity-60 { opacity: .74; }
[data-theme="dark"] .opacity-65 { opacity: .78; }
[data-theme="dark"] .opacity-70 { opacity: .82; }
[data-theme="dark"] .opacity-75 { opacity: .86; }
[data-theme="dark"] .fc-prose p,
[data-theme="dark"] .fc-prose li { opacity: .88; }

/* Lift cards/panels so they clearly separate from the page background */
[data-theme="dark"] .fc-feature-card,
[data-theme="dark"] .fc-step,
[data-theme="dark"] .fc-link-card,
[data-theme="dark"] .fc-spec-card,
[data-theme="dark"] .fc-sport-card,
[data-theme="dark"] .fc-faq {
    background: #1a2740;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .fc-feature-icon,
[data-theme="dark"] .fc-link-icon { border-color: rgba(255, 255, 255, .12); }

/* Spec table borders + label tint, readable on dark */
[data-theme="dark"] .fc-spec-wrap { border-color: rgba(255, 255, 255, .12); }
[data-theme="dark"] .fc-spec-table th,
[data-theme="dark"] .fc-spec-table td { border-color: rgba(255, 255, 255, .09); }
[data-theme="dark"] .fc-spec-table th { background: rgba(255, 255, 255, .035); }

/* daisyUI cards (contact/admin) get a touch of elevation too */
[data-theme="dark"] .card.bg-base-100 { background: #1a2740; }
[data-theme="dark"] .fc-device-card { background: #1a2740; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .fc-dl-card { background: radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, #1a8fff 22%, transparent), transparent 62%), #141f34; }

/* ============================================================
   Light theme — card visibility & depth
   ============================================================ */
/* Light theme — slightly crisper body text (less "washed out") */
[data-theme="light"] .opacity-60 { opacity: .72; }
[data-theme="light"] .opacity-65 { opacity: .76; }
[data-theme="light"] .opacity-70 { opacity: .8; }

[data-theme="light"] .fc-feature-card,
[data-theme="light"] .fc-step,
[data-theme="light"] .fc-link-card,
[data-theme="light"] .fc-spec-card,
[data-theme="light"] .fc-sport-card,
[data-theme="light"] .fc-faq,
[data-theme="light"] .fc-device-card {
    background: #f9fbfe;
    border-color: #d7e0ef;
    box-shadow: 0 12px 30px -16px rgba(16, 42, 86, .26);
}
[data-theme="light"] .fc-feature-card:hover,
[data-theme="light"] .fc-link-card:hover {
    box-shadow: 0 18px 40px -20px rgba(26, 143, 255, .35);
    border-color: color-mix(in srgb, var(--fc-primary) 30%, transparent);
}
/* Spec table sits on white inside the tinted card */
[data-theme="light"] .fc-spec-wrap { background: #ffffff; border-color: #e1e8f3; }
[data-theme="light"] .fc-spec-table th,
[data-theme="light"] .fc-spec-table td { border-color: #e8edf6; }
[data-theme="light"] .fc-spec-table th { background: #f4f7fc; }
