/* 369B App landing — scoped utilities (brand: #FFC805 / #0F0F0F) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Brand tokens on :root so .ing-* utilities work outside .landing-root (auth, emails, etc.) */
:root {
    --ing-gold: #ffc805;
    --ing-black: #0f0f0f;
    --ing-gray-50: #fafafa;
    --ing-gray-100: #f4f4f5;
    --ing-font: 'Inter', system-ui, sans-serif;
    --ing-font-ar: 'Cairo', 'Inter', system-ui, sans-serif;
}

.landing-root {
    --ing-gold: #ffc805;
    --ing-black: #0f0f0f;
    --ing-gray-50: #fafafa;
    --ing-gray-100: #f4f4f5;
    --ing-font: 'Inter', system-ui, sans-serif;
    --ing-font-ar: 'Cairo', 'Inter', system-ui, sans-serif;
    /* Fixed header clearance (hero padding + anchor scroll-margin) */
    --landing-header-offset: 7rem;
    --landing-scroll-offset: 7.25rem;
    font-family: var(--ing-font);
    color: var(--ing-black);
    background: #fff;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    .landing-root {
        --landing-header-offset: 6.5rem;
        --landing-scroll-offset: 6.75rem;
    }
}

@media (min-width: 1024px) {
    .landing-root {
        --landing-header-offset: 6.25rem;
        --landing-scroll-offset: 6.5rem;
    }
}

/* Window scroll aligns section targets below fixed nav (matches --landing-scroll-offset) */
html:has(.landing-root) {
    scroll-padding-top: 7.25rem;
}

@media (min-width: 768px) {
    html:has(.landing-root) {
        scroll-padding-top: 6.75rem;
    }
}

@media (min-width: 1024px) {
    html:has(.landing-root) {
        scroll-padding-top: 6.5rem;
    }
}

[dir='rtl'] .landing-root {
    font-family: var(--ing-font-ar);
}

.landing-gradient-hero {
    background: linear-gradient(165deg, #ffffff 0%, #f4f4f5 45%, #fff9e6 100%);
    /* Space below fixed nav + comfortable vertical rhythm (content not hidden under header) */
    padding-top: calc(var(--landing-header-offset) + env(safe-area-inset-top, 0px) + 1rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
    min-height: clamp(32rem, 78vh, 56rem);
    box-sizing: border-box;
    overflow-x: clip;
    overflow-y: visible;
}

.landing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.45;
    pointer-events: none;
}

.landing-blob-gold {
    background: radial-gradient(circle, rgba(255, 200, 5, 0.55) 0%, transparent 70%);
}

.landing-blob-dark {
    background: radial-gradient(circle, rgba(15, 15, 15, 0.12) 0%, transparent 70%);
}

.landing-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.landing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -12px rgba(15, 15, 15, 0.12);
}

/* Visible by default — avoid opacity:0 + JS (fails with reduced-motion / some observers) */
.landing-reveal {
    opacity: 1;
    transform: none;
}

.landing-section-anchor {
    scroll-margin-top: calc(var(--landing-scroll-offset) + 0.25rem);
    padding-top: 70px;
    padding-bottom: 70px;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .landing-card {
        transition: none;
    }
    .landing-root {
        scroll-behavior: auto;
    }
}

/* Layout (Tailwind build may omit max-width / arbitrary colors) */
.ing-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .ing-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
.ing-max-prose {
    max-width: 48rem;
}
.ing-max-copy {
    max-width: 42rem;
}
.ing-max-sm {
    max-width: 24rem;
}
.ing-max-xl {
    max-width: 36rem;
}

/* Brand text / surfaces */
.ing-c-main {
    color: var(--ing-black);
}
.ing-c-muted {
    color: rgba(15, 15, 15, 0.72);
}
.ing-c-soft {
    color: rgba(15, 15, 15, 0.55);
}
.ing-c-faint {
    color: rgba(15, 15, 15, 0.5);
}
.ing-c-gold {
    color: var(--ing-gold);
}
.ing-c-on-gold {
    color: var(--ing-black);
}
.ing-bg-gold {
    background-color: var(--ing-gold);
}
.ing-bg-gold-soft {
    background-color: rgba(255, 200, 5, 0.2);
}
.ing-bg-dark {
    background-color: var(--ing-black);
}
.ing-border-dark {
    border-color: rgba(15, 15, 15, 0.08);
}
.ing-border-dark-sm {
    border-color: rgba(15, 15, 15, 0.1);
}
.ing-bg-gray-section {
    background: linear-gradient(to bottom, #fafafa, #ffffff);
}
.ing-bg-gray-flat {
    background-color: #fafafa;
}
.ing-bg-cta-gradient {
    background: linear-gradient(to bottom right, #ffc805, #e6b400);
}

/* CTA block: generous gold padding + clear separation from dark strip (matches section rhythm) */
.landing-cta-card {
    box-sizing: border-box;
    padding: clamp(2.75rem, 5vw, 5rem);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 28px 55px -14px rgba(15, 15, 15, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
    .landing-cta-card {
        padding: clamp(3.25rem, 5.5vw, 5.5rem);
    }
}

@media (min-width: 1024px) {
    .landing-cta-card {
        padding: clamp(3.5rem, 6vw, 6rem);
    }
}
.ing-header-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Logo (369blogosmall.png) */
.ing-logo-img {
    display: block;
    height: 2.5rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
@media (min-width: 768px) {
    .ing-logo-img {
        height: 2.75rem;
        max-width: 220px;
    }
}

/* Mobile nav: no dependency on Tailwind .tw-hidden for visibility */
.landing-mobile-panel {
    display: none;
}
.landing-mobile-panel.landing-mobile-panel--open {
    display: block;
}

/* Language pill: fixed readable width for EN/AR labels; order stays EN|AR in RTL pages */
.landing-lang-switch {
    direction: ltr;
}
@media (min-width: 1024px) {
    .landing-mobile-panel,
    .landing-mobile-panel.landing-mobile-panel--open {
        display: none !important;
    }
}
.ing-panel-on-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ing-age-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}
.ing-spec-highlight {
    border: 1px solid rgba(255, 200, 5, 0.35);
    background: linear-gradient(to bottom right, rgba(255, 200, 5, 0.12), transparent);
}

.ing-hero-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ing-black);
}
@media (min-width: 768px) {
    .ing-hero-title {
        font-size: 3rem;
        line-height: 1;
    }
}
@media (min-width: 1024px) {
    .ing-hero-title {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.ing-section-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ing-black);
}
@media (min-width: 768px) {
    .ing-section-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

.ing-nav-link {
    color: rgba(15, 15, 15, 0.78);
}
.ing-nav-link:hover {
    color: var(--ing-black);
}

.ing-lang-muted {
    color: rgba(15, 15, 15, 0.55);
}

.ing-link-gold:hover {
    color: var(--ing-gold);
}

.ing-underline-gold {
    text-decoration: underline;
    text-decoration-color: rgba(255, 200, 5, 0.85);
    text-underline-offset: 4px;
}

.ing-on-dark-muted {
    color: rgba(255, 255, 255, 0.78);
}
.ing-on-dark-soft {
    color: rgba(255, 255, 255, 0.65);
}
.ing-on-dark-faint {
    color: rgba(255, 255, 255, 0.55);
}

.ing-btn-gold:hover {
    filter: brightness(0.97);
}

.ing-btn-dark:hover {
    opacity: 0.92;
}

.ing-cta-outline:hover {
    background-color: #f4f4f5;
}

/* Skip link visible on keyboard focus */
a.ing-skip:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    white-space: nowrap;
}
[dir='rtl'] a.ing-skip:focus {
    left: auto;
    right: 1rem;
}
