:root {
    --color-primary: #001f3f;
    --color-secondary: #003d7a;
    --color-accent: #0074d9;
    --color-bg: #001f3f;
    --color-text: #e8eef4;
    --color-text-light: #a8b8c8;
    --color-border: #2a4a6a;
    --color-paper: #0a2a4a;
    --fj-header-h: 72px;
    --fj-page-w: 1120px;
    --space-lg: 1.5rem;
}

@media (max-width: 768px) {
    :root { --fj-header-h: 64px; }
}

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

[hidden] { display: none !important; }

html {
    scroll-padding-top: var(--fj-header-h);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--fj-header-h);
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a { color: var(--color-accent); }
a:hover { color: #5aa7ff; }

.fj-u-wrap {
    max-width: var(--fj-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.fj-u-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.fj-u-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--fj-header-h);
    background: #001f3f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--color-border);
}

.fj-u-header a,
.fj-u-header a:visited { color: #e8eef4; }

.fj-u-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--fj-header-h);
    gap: 16px;
}

.fj-u-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fj-u-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.fj-u-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
}

.fj-u-nav a:not(.fj-u-btn) {
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.fj-u-nav a:not(.fj-u-btn):hover,
.fj-u-nav a.is-active { color: #5aa7ff; }

.fj-u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.fj-u-btn:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

a.fj-u-btn,
a.fj-u-btn:visited { color: var(--color-text); }

a.fj-u-btn:hover,
a.fj-u-btn-main:hover { color: #fff; }

.fj-u-btn-main {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.fj-u-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.fj-u-burger span {
    display: block;
    height: 2px;
    width: 22px;
    margin: 0 auto;
    background: #e8eef4;
}

.fj-u-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.fj-u-drawer {
    display: block;
    position: fixed;
    z-index: 210;
    background: #001f3f;
    overflow-y: auto;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.fj-u-drawer a {
    display: block;
    padding: 14px 20px;
    color: #e8eef4;
    text-decoration: none;
}

.fj-u-drawer a.fj-u-btn {
    margin: 12px 20px 24px;
    display: inline-flex;
}

.fj-u-drawer-x {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #e8eef4;
    font-size: 28px;
    cursor: pointer;
}

.fj-u-drawer-top {
    top: var(--fj-header-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--fj-header-h));
    padding: 56px 0 16px;
    transform: translateY(-16px);
    opacity: 0;
    border-bottom: 1px solid var(--color-border);
}

body.nav-open { overflow: hidden; }
body.nav-open .fj-u-overlay { opacity: 1; visibility: visible; }
body.nav-open .fj-u-drawer { visibility: visible; }
body.nav-open .fj-u-drawer-top { transform: translateY(0); opacity: 1; }

.fj-u-hero {
    background: linear-gradient(180deg, #003d7a 0%, #001f3f 100%);
    padding: 48px 0 56px;
}

.fj-u-hero-inner { text-align: center; }

.fj-u-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.fj-u-h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    max-width: 18ch;
    margin: 0.4em auto 0.5em;
}

.fj-u-lead {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    color: var(--color-text-light);
}

.fj-u-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.fj-u-hero-still {
    display: block;
    width: auto;
    max-width: min(100%, 720px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid var(--color-border);
}

.fj-u-mag {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    padding: 48px 20px;
    align-items: start;
}

.fj-u-panel h2,
.fj-u-verdict h2,
.fj-u-band h2,
.fj-u-app h2,
.fj-u-cta h2 {
    margin-top: 0;
}

.fj-u-aside {
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    padding: 24px;
}

.fj-u-aside-h {
    font-family: "Playfair Display", Georgia, serif;
    margin: 0 0 12px;
}

.fj-u-aside ul {
    margin: 0 0 20px;
    padding-left: 1.1rem;
}

.fj-u-band {
    background: #00162e;
    padding: 48px 0;
}

.fj-u-stills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.fj-u-stills img {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 280px;
    max-height: 180px;
    object-fit: contain;
    border: 1px solid var(--color-border);
}

.fj-u-app {
    padding: 48px 0;
}

.fj-u-app-badges {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
}

.fj-u-app-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
}

.fj-u-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
}

.fj-u-app-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.4rem;
    margin: 0;
}

.fj-u-app-dev {
    margin: 0.3em 0 0;
    color: var(--color-text-light);
}

.fj-u-app-facts {
    margin: 0 0 12px;
    padding-left: 1.2rem;
}

.fj-u-app-note,
.fj-u-app-checked {
    color: var(--color-text-light);
}

.fj-u-steps {
    padding-left: 1.2rem;
}

.fj-u-verdict {
    background: var(--color-secondary);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.fj-u-cta {
    background: linear-gradient(90deg, #003d7a, #001f3f);
    padding: 56px 0;
    text-align: center;
}

.fj-u-page {
    padding: 40px 0 64px;
}

.fj-u-prose {
    max-width: 760px;
}

.fj-u-prose .fj-u-app-icon,
.fj-u-prose img {
    max-width: 100%;
}

.fj-u-crumbs {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.fj-u-card {
    display: block;
    border: 1px solid var(--color-border);
    background: var(--color-paper);
    color: inherit;
    text-decoration: none;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.fj-u-card:hover {
    border-color: var(--color-accent);
    background: #0d3358;
    color: inherit;
}

.fj-u-card h2 {
    font-size: 1.25rem;
    margin: 0 16px 8px;
}

.fj-u-card p {
    margin: 0 16px 20px;
    color: var(--color-text-light);
}

.fj-u-card-band {
    display: block;
    height: 72px;
    background: linear-gradient(135deg, #0074d9, #003d7a);
}

.fj-u-card-band-b { background: linear-gradient(135deg, #003d7a, #001f3f); }
.fj-u-card-band-c { background: linear-gradient(90deg, #5aa7ff, #0074d9); }

.fj-u-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.fj-u-form label { display: grid; gap: 6px; font-weight: 600; }

.fj-u-form input,
.fj-u-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    background: var(--color-paper);
    color: var(--color-text);
    font: inherit;
    border-radius: 0;
}

.fj-u-faq dt {
    font-weight: 700;
    margin-top: 1.2rem;
}

.fj-u-faq dd {
    margin: 0.4rem 0 0;
    color: var(--color-text-light);
}

.fj-u-foot {
    background: #000d1a;
    padding: 40px 0 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.fj-u-foot a,
.fj-u-foot a:visited { color: #e8eef4; }

.fj-u-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.fj-u-foot-mark,
.fj-u-foot-h {
    font-family: "Playfair Display", Georgia, serif;
    color: #e8eef4;
    margin: 0 0 8px;
}

.fj-u-foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fj-u-foot li { margin: 0.35rem 0; }

.fj-u-foot-cookie {
    background: none;
    border: 0;
    padding: 0;
    color: #e8eef4;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.fj-u-foot-disc { font-size: 0.9rem; }

.fj-u-cookie { display: none; }

.fj-u-cookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: stretch;
    bottom: 16px;
    right: 16px;
    max-width: 360px;
    padding: 16px;
    background: #0a2a4a;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.fj-u-cookie-row {
    display: flex;
    gap: 8px;
}

.fj-u-cookie-row .fj-u-btn { flex: 1; min-height: 44px; }

@media (max-width: 1024px) {
    .fj-u-foot-grid { grid-template-columns: 1fr 1fr; }
    .fj-u-mag { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .fj-u-nav { display: none; }
    .fj-u-logo img { width: 120px; }
    .fj-u-app-icon { width: 64px; height: 64px; }
    .fj-u-grid { grid-template-columns: repeat(2, 1fr); }
    .fj-u-stills img { max-width: 220px; max-height: 140px; }
}

@media (max-width: 480px) {
    .fj-u-grid { grid-template-columns: 1fr; }
    .fj-u-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: 12px;
    }
    .fj-u-hero-actions { flex-direction: column; }
    .fj-u-hero-actions .fj-u-btn { width: 100%; }
}
