/* Public landing page shown to anonymous visitors and crawlers. */
.public-landing {
    --pl-red: #d6082c;
    --pl-red-bright: #ff3450;
    --pl-ink: #0d0b0f;
    --pl-card: #171219;
    --pl-line: #3a3139;
    --pl-text: #eee8e5;
    --pl-muted: #b9b0b6;
    /* Normal document flow: the text is part of the page itself, not an overlay or inner scroller. */
    position: relative;
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(115deg, transparent 0 62%, #d6082c14 62% 74%, transparent 74%),
        var(--pl-ink);
    color: var(--pl-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
html:not(:has(body.app-unlocked)) { scroll-behavior: smooth; }
body:not(.app-unlocked) { overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce) { html:not(:has(body.app-unlocked)) { scroll-behavior: auto; } }
.public-landing a { color: inherit; }
.public-landing :focus-visible { outline: 3px solid var(--pl-red-bright); outline-offset: 3px; }

.pl-nav, .pl-hero, .pl-section, .ad-slot, .pl-footer {
    box-sizing: border-box;
    width: min(1120px, 100%);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 40px);
}

/* Navigation */
.pl-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.pl-brand { font: 30px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .12em; text-decoration: none; color: #fff; }
.pl-brand span { color: var(--pl-red-bright); }
.pl-nav-links { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.pl-nav-links a { text-decoration: none; color: var(--pl-muted); }
.pl-nav-links a:hover { color: #fff; }
.public-landing .pl-nav-cta { color: #fff; background: var(--pl-red); border: 2px solid #fff; padding: 6px 16px; transform: skewX(-10deg); display: inline-block; }
.public-landing .pl-nav-cta:hover { background: #fff; color: var(--pl-ink); }

/* Hero */
.pl-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 7vw, 80px); }
.pl-kicker { margin: 0 0 12px; font: 17px/1.2 'Bebas Neue', Impact, sans-serif; letter-spacing: .18em; color: var(--pl-red-bright); text-transform: uppercase; }
.pl-hero h1 { margin: 0 0 20px; font: clamp(46px, 8vw, 88px)/.95 'Bebas Neue', Impact, sans-serif; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
.pl-hero h1 em { font-style: normal; display: inline-block; background: var(--pl-red); padding: 0 .18em; transform: skewX(-8deg); box-shadow: 6px 6px 0 #fff; }
.pl-lead { margin: 0 0 28px; font-size: clamp(16px, 2vw, 19px); color: var(--pl-text); max-width: 60ch; }
.pl-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.pl-btn { display: inline-block; padding: 13px 24px; border: 2px solid #fff; font: 22px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .06em; text-decoration: none; transform: skewX(-10deg); transition: transform .15s ease, background .15s ease, color .15s ease; }
.public-landing .pl-btn-primary { background: var(--pl-red); color: #fff; box-shadow: 4px 4px 0 #fff; }
.public-landing .pl-btn-primary:hover { background: #fff; color: var(--pl-ink); }
.public-landing .pl-btn-ghost { background: transparent; color: #fff; }
.public-landing .pl-btn-ghost:hover { background: #ffffff1a; }
.pl-btn:active { transform: skewX(-10deg) translate(2px, 2px); }
.pl-hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--pl-muted); }
.pl-hero-points li::before { content: '✓ '; color: var(--pl-red-bright); font-weight: 900; }

.pl-hero-visual { margin: 0; padding: 22px; background: var(--pl-card); border: 2px solid #fff; box-shadow: 10px 10px 0 var(--pl-red); transform: rotate(2deg); }
.pl-hero-visual svg { display: block; width: 100%; height: auto; transform: rotate(-2deg); }
.pl-radar-grid polygon, .pl-radar-grid line { fill: none; stroke: #ffffff33; stroke-width: 1.2; }
.pl-radar-shape { fill: #d6082cb3; stroke: #fff; stroke-width: 3; stroke-linejoin: round; }
.pl-radar-labels text { fill: #fff; font: 15px 'Bebas Neue', Impact, sans-serif; letter-spacing: .08em; }
.pl-hero-visual figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pl-line); transform: rotate(-2deg); }
.pl-hero-visual figcaption strong { font: 22px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .1em; color: #fff; }
.pl-hero-visual figcaption span { font-size: 13px; color: var(--pl-muted); }

/* Generic sections */
.pl-section { padding-block: clamp(36px, 7vw, 72px); }
.pl-section h2 { margin: 0 0 22px; font: clamp(34px, 5vw, 52px)/1 'Bebas Neue', Impact, sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.pl-section p { margin: 0 0 16px; max-width: 75ch; }
.pl-intro { border-left: 4px solid var(--pl-red); padding-left: clamp(18px, 4vw, 40px); }

.pl-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pl-feature { position: relative; padding: 26px 22px 22px; background: var(--pl-card); border: 1px solid var(--pl-line); border-top: 4px solid var(--pl-red); }
.pl-feature h3 { margin: 10px 0 10px; font: 25px/1.05 'Bebas Neue', Impact, sans-serif; letter-spacing: .04em; color: #fff; text-transform: uppercase; }
.pl-feature p { margin: 0; font-size: 15px; color: var(--pl-muted); }
.pl-feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--pl-red); border: 2px solid #fff; color: #fff; font-size: 22px; transform: skewX(-10deg); }

.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; counter-reset: pl-step; }
.pl-steps li { counter-increment: pl-step; padding: 22px; border: 2px solid #fff; background: #ffffff08; }
.pl-steps li::before { content: '0' counter(pl-step); display: block; font: 54px/1 'Bebas Neue', Impact, sans-serif; color: var(--pl-red-bright); }
.pl-steps strong { display: block; margin: 6px 0 8px; font: 25px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .04em; color: #fff; text-transform: uppercase; }
.pl-steps p { margin: 0; font-size: 15px; color: var(--pl-muted); }

.pl-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.pl-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pl-checklist li { padding: 16px 18px; background: var(--pl-card); border-left: 4px solid var(--pl-red); color: var(--pl-muted); font-size: 15px; }
.pl-checklist strong { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }

.pl-faq { display: grid; gap: 10px; max-width: 860px; }
.pl-faq details { background: var(--pl-card); border: 1px solid var(--pl-line); }
.pl-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; color: #fff; list-style: none; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::before { content: '+'; display: inline-block; width: 1.4em; color: var(--pl-red-bright); font-weight: 900; }
.pl-faq details[open] summary::before { content: '–'; }
.pl-faq details p { margin: 0; padding: 0 18px 18px 42px; color: var(--pl-muted); }
.pl-faq a { color: var(--pl-red-bright); font-weight: 700; }

/* Inline login, formerly a full-screen modal */
.pl-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; scroll-margin-top: 16px; }
.pl-login-card { padding: clamp(20px, 4vw, 30px); background: var(--pl-card); border: 2px solid #fff; box-shadow: 8px 8px 0 var(--pl-red); color: #fff; }
.pl-login-card #account-section { border-top: 0; padding-top: 0; }
.pl-login-card input { width: 100%; min-height: 44px; }

/* AdSense placement: collapses entirely while no ad unit has been inserted. */
.ad-slot { display: block; padding-block: 12px 28px; }
.ad-slot:has(.ad-slot-frame:empty) { display: none; }
.ad-slot-label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8088; text-align: center; }
.ad-slot-frame { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 100px; overflow: hidden; display: flex; justify-content: center; align-items: center; background: #ffffff06; border: 1px dashed var(--pl-line); }
.ad-slot-frame > ins.adsbygoogle { width: 100%; }

/* Footer */
.pl-footer { padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pl-line); color: var(--pl-muted); font-size: 14px; text-align: center; }
.pl-footer p { margin: 0 0 10px; }
.pl-footer .pl-brand { font-size: 26px; }
.pl-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0; }
.pl-footer nav a { color: #d5ced3; text-decoration: none; font-weight: 700; }
.pl-footer nav a:hover { color: #fff; text-decoration: underline; }
.pl-copy { font-size: 12px; color: #7e757c; }

@media (max-width: 820px) {
    .pl-hero, .pl-split, .pl-login { grid-template-columns: minmax(0, 1fr); }
    .pl-hero-visual { max-width: 420px; width: 100%; justify-self: center; box-sizing: border-box; }
}
@media (max-width: 520px) {
    .pl-nav-links a:not(.pl-nav-cta) { display: none; }
    .pl-hero-actions .pl-btn { flex: 1 1 100%; text-align: center; }
}

/* Language switch (FR / EN) in the public navigation */
.pl-lang-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 2px solid #ffffff80; background: transparent; color: #fff; font: 800 13px/1 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; letter-spacing: .08em; cursor: pointer; transform: skewX(-10deg); }
.pl-lang-toggle:hover { border-color: #fff; background: #ffffff1a; }
