/* Public home only. The authenticated application's layout and palette stay independent. */
body.famatask-landing {
    --landing-navy: #17375e;
    --landing-teal: #287c91;
    --landing-aqua: #65c7d8;
    --landing-muted: #61738a;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f9fc;
    color: var(--landing-navy);
}
.landing-shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.landing-header { background: var(--landing-navy); color: #fff; }
.landing-header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 700; }
.landing-brand:hover { color: #fff; }
.landing-header-actions { display: flex; align-items: center; gap: 24px; }
.landing-language select { border: 1px solid #64809f; border-radius: 8px; padding: 8px 10px; color: #fff; background: var(--landing-navy); font: inherit; cursor: pointer; }
.landing-language select option { color: var(--landing-navy); background: #fff; }
.landing-login { border: 1px solid #64809f; border-radius: 8px; padding: 9px 18px; color: #fff; text-decoration: none; font-weight: 500; }
.landing-login:hover { color: #fff; background: #25496f; border-color: var(--landing-aqua); }
.famatask-landing :focus-visible { outline: 3px solid var(--landing-aqua); outline-offset: 4px; }
.landing-skip { position: absolute; top: 8px; left: 16px; padding: 12px; background: #fff; color: var(--landing-navy); transform: translateY(-160%); z-index: 10; border-radius: 6px; }
.landing-skip:focus { transform: none; }
.landing-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 64px; align-items: center; min-height: 560px; padding-block: 76px 64px; }
.landing-intro h1 { max-width: 510px; margin: 0 0 24px; font-size: clamp(2.3rem, 3.9vw, 3.55rem); line-height: 1.12; letter-spacing: -1.7px; font-weight: 700; text-wrap: balance; }
.landing-subtitle { max-width: 460px; margin: 0 0 32px; color: var(--landing-muted); font-size: 1.13rem; line-height: 1.75; }
.landing-primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 9px; padding: 15px 22px; background: var(--landing-teal); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 16px #17375e0c; transition: background-color .2s; }
.landing-primary:hover { color: #fff; background: #226a7e; }
.landing-primary svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing-showcase { min-width: 0; }
.landing-preview { overflow: hidden; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; box-shadow: 0 18px 54px #17375e16, 0 3px 12px #17375e08; }
.landing-preview-bar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; border-bottom: 1px solid #e6edf4; background: #fff; color: #8a98a8; font-size: .66rem; letter-spacing: .3px; }
.landing-window-dots { display: flex; gap: 4px; width: 30px; }
.landing-window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d9e2eb; }
.landing-window-spacer { width: 30px; }
.landing-stage { position: relative; aspect-ratio: 1.95; background: #f7f9fc; }
.landing-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility .45s; }
.landing-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.landing-slide a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; cursor: zoom-in; }
.landing-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.landing-carousel-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto 1fr; align-items: center; gap: 8px; margin-top: 16px; }
.landing-capture-title { margin: 0; color: var(--landing-muted); font-size: .8rem; font-weight: 500; }
.landing-indicators { display: flex; align-items: center; justify-content: center; gap: 2px; }
.landing-indicators button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.landing-indicators button span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #bccad8; transition: background-color .2s, transform .2s; }
.landing-indicators button[aria-current="true"] span { background: var(--landing-teal); transform: scale(1.35); }
.landing-rotation { justify-self: end; display: grid; place-items: center; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 6px; color: var(--landing-muted); background: transparent; }
.landing-rotation:hover { background: #e8eef5; }
.landing-rotation svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.landing-play-icon { display: none; fill: currentColor; stroke: none; }
.landing-rotation[aria-pressed="true"] .landing-play-icon { display: block; }
.landing-rotation[aria-pressed="true"] .landing-pause-icon { display: none; }
.landing-rotation[hidden], .landing-carousel:not([data-enhanced]) .landing-indicators { display: none; }
.landing-enlarge-hint { margin: 2px 0 0; color: #6a7c91; font-size: .75rem; }
.landing-features { border-top: 1px solid #e5ecf3; border-bottom: 1px solid #e5ecf3; background: #fff; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 40px; }
.landing-feature { display: flex; align-items: flex-start; gap: 16px; }
.landing-feature-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: #eaf6f7; color: var(--landing-teal); }
.landing-feature-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.landing-feature h2 { font-size: 1.05rem; line-height: 1.4; font-weight: 650; margin: 0 0 9px; }
.landing-feature p { margin: 0; color: var(--landing-muted); font-size: .88rem; line-height: 1.75; }
.landing-footer { margin-top: auto; }
.landing-footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: #697b90; font-size: .78rem; }
.landing-lightbox { width: min(1500px, 94vw); max-width: 94vw; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; color: #17375e; background: #fff; box-shadow: 0 24px 100px #0006; }
.landing-lightbox::backdrop { background: #0b2039d9; }
.landing-lightbox-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 16px; }
.landing-lightbox-header h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.landing-lightbox-header button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #17375e; background: #f0f4f8; }
.landing-lightbox-header svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.landing-lightbox > img { display: block; width: 100%; max-height: calc(94vh - 60px); object-fit: contain; }
body.landing-lightbox-open { overflow: hidden; }
@media (max-width: 1100px) {
    .landing-shell { width: calc(100% - 56px); }
    .landing-hero { gap: 36px; }
    .landing-intro h1 { font-size: 2.65rem; }
    .landing-feature-grid { gap: 24px; }
}
@media (max-width: 800px) {
    .landing-hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-block: 48px; }
    .landing-intro { max-width: 620px; }
    .landing-intro h1 { font-size: clamp(2.2rem, 6vw, 3rem); max-width: 600px; }
    .landing-subtitle { max-width: 580px; }
    .landing-showcase { width: 100%; }
    .landing-feature-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
    .landing-feature p { max-width: 560px; }
}
@media (max-width: 480px) {
    .landing-shell { width: calc(100% - 36px); }
    .landing-header-inner { min-height: 72px; gap: 12px; }
    .landing-brand { gap: 8px; font-size: 1.25rem; }
    .landing-brand .famatask-wave { width: 30px; height: 30px; }
    .landing-header-actions { gap: 10px; }
    .landing-language select { padding: 7px 5px; }
    .landing-login { padding: 8px 10px; }
    .landing-primary { padding: 14px 18px; }
    .landing-carousel-controls { grid-template-columns: 1fr auto auto; gap: 4px; }
    .landing-capture-title { font-size: .76rem; }
    .landing-footer-inner { flex-direction: column; gap: 6px; padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .famatask-landing *, .famatask-landing *::before, .famatask-landing *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
