/* Landing page only — Tajawal as the primary face here, overriding base.html.twig's
       site-wide Cairo-first stack (dashboard/auth/etc. are untouched). Tajawal is already
       loaded by the Google Fonts <link> in base.html.twig, so no new font request. */
    body { font-family: 'Tajawal', 'Cairo', 'Alexandria', system-ui, sans-serif; overflow-x: hidden; }

    /* .container, .site-nav/.nav-*, .btn*, and footer.site-footer/.footer-* all moved to
       public-base.css — they're shared by every public page (home, blog, marketing pages,
       contact) now, not landing-only. */

    /* Hero */
    .hero { position: relative; text-align: center; padding: 4rem 0 3rem; overflow: hidden; }
    .hero::before {
        content: ""; position: absolute; inset: -10% -10% auto -10%; height: 26rem; z-index: -1;
        background: radial-gradient(50% 60% at 50% 0%, var(--brand-soft), transparent 70%);
    }
    .eyebrow-badge {
        display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border);
        border-radius: 999px; padding: .5rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--muted-foreground); margin-bottom: 1.75rem;
    }
    .eyebrow-star {
        display: inline-block; color: var(--brand);
        animation: star-orbit-pulse 4s ease-in-out infinite, star-glow 2s ease-in-out infinite;
    }
    @keyframes star-orbit-pulse {
        0%   { transform: rotate(0deg) scale(1); }
        25%  { transform: rotate(90deg) scale(1.35); }
        50%  { transform: rotate(180deg) scale(1); }
        75%  { transform: rotate(270deg) scale(1.35); }
        100% { transform: rotate(360deg) scale(1); }
    }
    @keyframes star-glow {
        0%, 100% { text-shadow: 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent); }
        50% { text-shadow: 0 0 8px var(--brand), 0 0 16px color-mix(in srgb, var(--brand) 55%, transparent); }
    }
    @media (prefers-reduced-motion: reduce) {
        .eyebrow-star { animation: none; }
    }
    .hero h1 { font-size: clamp(1.5rem, 5vw, 1.875rem); line-height: 1.35; font-weight: 800; margin: 0 auto 1.5rem; max-width: 46rem; }
    .hero-subtitle { max-width: 40rem; margin: 0 auto 2.25rem; color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.9; }
    .hero-trust-stat { display: inline-flex; align-items: center; gap: .4rem; margin: -1.25rem auto 1.5rem; padding: .4rem .9rem; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; font-size: .85rem; font-weight: 700; }
    @media (min-width: 900px) { .hero-trust-stat { margin-inline: 0; } }

    /* Two-column hero from laptop width up — text beside the signup form so the form
       is immediately visible without scrolling past it; stays single-column/stacked
       (original centered layout) on tablet and mobile. */
    .hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
    @media (min-width: 900px) {
        .hero-grid { grid-template-columns: 1.1fr 1fr; text-align: start; }
        .hero-grid h1,
        .hero-grid .hero-subtitle { margin-inline: 0; }
        .hero-form-panel {
            background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem;
            padding: 2rem; box-shadow: var(--shadow-elevated);
        }
    }

    /* A real screenshot of an actual Linkaty page, framed to read as a phone rather than a bare
       rectangle — answers "what does this actually look like" before the visitor ever signs up,
       which plain hero copy alone can't. */
    .hero-phone-mock {
        max-width: 200px; margin: 0 auto 1.5rem; border-radius: 1.5rem; overflow: hidden;
        border: 5px solid var(--foreground); box-shadow: var(--shadow-elevated); position: relative;
    }
    .hero-phone-mock::before {
        content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        width: 38%; height: .75rem; background: var(--foreground); border-radius: 0 0 .5rem .5rem; z-index: 1;
    }
    .hero-phone-mock img { width: 100%; height: auto; display: block; }

    .reserve-row { display: flex; justify-content: center; margin-bottom: 1.5rem; direction: ltr}
    .domain-input {
        display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
        padding-inline-start: 1.25rem; padding-inline-end: .35rem; padding-block: .35rem; box-shadow: var(--shadow-soft);
        gap: .35rem; width: 100%; max-width: 28rem; flex-wrap: wrap;
    }
    .domain-input:focus-within { border-color: var(--brand); }
    .domain-input span { color: var(--muted-foreground); font-weight: 600; font-size: .95rem; flex-shrink: 0; }
    .domain-input input {
        border: none; background: transparent; padding: .6rem .5rem; font-size: .95rem; font-family: inherit; color: var(--foreground);
        flex: 1 1 6rem; min-width: 5rem;
    }
    .domain-input input:focus { outline: none; }
    .domain-input .btn-brand { flex-shrink: 0; padding: .65rem 1.4rem; font-size: .9rem; }
    .username-status { font-size: 1rem; padding-inline-end: .5rem; min-width: 1.2rem; text-align: center; }
    .username-status.available { color: var(--brand); }
    .username-status.unavailable { color: #e74c3c; }
    .username-hint { width: 100%; text-align: center; font-size: .8rem; margin-top: -.75rem; margin-bottom: 1.5rem; min-height: 1.1rem; }
    .username-hint.available { color: var(--brand-dark); }
    .username-hint.unavailable { color: #e74c3c; }

    .trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; color: var(--muted-foreground); font-size: .85rem; }
    .trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
    .trust-row .dot { width: 1rem; height: 1rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; }

    /* Full-bleed edge-to-edge, breaking out of the centered .container it sits inside —
       works here because .container is block-centered (margin:0 auto), not flex-centered. */
    .hero-mock {
        margin-top: 3rem; width: 100vw; margin-inline: calc(50% - 50vw);
        border-radius: 0; background: var(--brand); border: none; box-shadow: none;
        padding: 3.5rem 2rem; color: var(--brand-foreground); font-size: .95rem;
    }

    /* Mid-page CTA banner */
    .mid-cta { padding: 2.5rem 0; }
    .mid-cta-inner {
        display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
        background: var(--brand-soft); border: 1px solid var(--brand); border-radius: 1.25rem;
        padding: 1.75rem 2rem;
    }
    .mid-cta-inner p { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--foreground); }
    .mid-cta-inner .btn-brand { flex-shrink: 0; }

    /* Features */
    .section { padding: 5rem 0; }
    .section-head { text-align: center; max-width: 38rem; margin: 0 auto 3rem; }
    .section-eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: .5rem; }
    .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; margin: 0 0 .75rem; }
    .section-head p { color: var(--muted-foreground); font-size: 1rem; line-height: 1.8; margin: 0; }

    .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    @media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

    .feature-card {
        background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.75rem;
        box-shadow: var(--shadow-soft);
    }
    .feature-icon {
        width: 2.75rem; height: 2.75rem; border-radius: .9rem; background: var(--brand-soft); color: var(--brand);
        display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.1rem;
    }
    /* Decorative accent chips only — never used on text or buttons, just these icon tiles. */
    .feature-icon.accent-lime  { background: #f2f7d9; color: #6d7c18; }
    .feature-icon.accent-lilac { background: #f5e9f5; color: #8a4a8a; }
    .feature-icon.accent-teal  { background: #dff4f7; color: #12798a; }
    .feature-icon.accent-amber { background: #fdeee0; color: #b05c12; }
    .feature-icon.accent-grape { background: #efe3f5; color: #6a3a8a; }
    .feature-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
    .feature-card p { font-size: .9rem; color: var(--muted-foreground); line-height: 1.8; margin: 0; }

    /* Ink band — dark section for visual rhythm between features and pricing */
    .ink-band { background: var(--foreground); color: #f4f4f2; padding: 4rem 0; }
    .ink-band .section-head h2 { color: #ffffff; }
    .ink-band .section-head p { color: #b7b9c2; }
    .ink-band .section-eyebrow { color: #6fd9ac; }
    .ink-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
    @media (max-width: 760px) { .ink-grid { grid-template-columns: 1fr; } }
    .ink-item { text-align: center; padding: 0 1rem; }
    .ink-item .ink-icon {
        width: 3rem; height: 3rem; margin: 0 auto 1.1rem; border-radius: 999px;
        background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
        display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #6fd9ac;
    }
    .ink-item h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; color: #ffffff; }
    .ink-item p { font-size: .88rem; line-height: 1.8; color: #b7b9c2; margin: 0; }

    /* Free / CTA panel */
    .free-panel {
        background: var(--surface); border: 1px solid var(--border); border-radius: 1.75rem; box-shadow: var(--shadow-elevated);
        padding: 3rem 2rem; text-align: center; max-width: 44rem; margin: 0 auto;
    }
    .free-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 1rem; }
    .free-panel p { color: var(--muted-foreground); font-size: .95rem; line-height: 1.9; max-width: 34rem; margin: 0 auto 1.75rem; }

    /* Pricing grid */
    .pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
    @media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
    .pricing-card {
        background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.75rem;
        box-shadow: var(--shadow-soft); display: flex; flex-direction: column; text-align: start;
    }
    .pricing-card.featured { border-color: var(--brand); box-shadow: var(--shadow-elevated); position: relative; }
    .pricing-badge {
        position: absolute; top: -.7rem; inset-inline-start: 1.5rem; background: var(--brand); color: var(--brand-foreground);
        font-size: .7rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
    }
    .pricing-name { font-size: 1.1rem; font-weight: 800; margin: 0 0 .3rem; }
    .pricing-price { font-size: 1.6rem; font-weight: 800; margin: 0 0 .2rem; }
    .pricing-price small { font-size: .85rem; font-weight: 600; color: var(--muted-foreground); }
    .pricing-period { color: var(--muted-foreground); font-size: .8rem; margin: 0 0 1.25rem; }
    .pricing-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
    .pricing-features li { font-size: .85rem; color: var(--foreground); line-height: 1.5; }
    .pricing-features li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
    .pricing-note { text-align: center; color: var(--muted-foreground); font-size: .85rem; margin-top: 2rem; }

    /* Yearly/monthly pricing toggle */
    .pricing-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
    .pricing-toggle-row { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
    .pricing-toggle-label { font-size: .9rem; font-weight: 600; color: var(--muted-foreground); }
    .pricing-switch { position: relative; display: inline-block; width: 2.75rem; height: 1.5rem; cursor: pointer; }
    .pricing-slider { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .15s; }
    .pricing-slider::before { content: ""; position: absolute; top: .15rem; inset-inline-start: .15rem; width: 1.2rem; height: 1.2rem; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: var(--shadow-soft); }
    .pricing-toggle-input:checked ~ .pricing-toggle-row .pricing-slider { background: var(--brand); }
    .pricing-toggle-input:checked ~ .pricing-toggle-row .pricing-slider::before { transform: translateX(1.25rem); }
    [dir="rtl"] .pricing-toggle-input:checked ~ .pricing-toggle-row .pricing-slider::before { transform: translateX(-1.25rem); }
    .pricing-toggle-input:not(:checked) ~ .pricing-grid .price-yearly-block { display: none; }
    .pricing-toggle-input:checked ~ .pricing-grid .price-monthly-block { display: none; }
    .pricing-discount { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; margin-inline-start: .4rem; }
    .pricing-perk { color: var(--muted-foreground); font-size: .78rem; margin-top: .3rem; }
    .free-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }

    /* Reviews — light brand-tinted band so it reads as its own section against the
       plain white/off-white bands above and below it, rather than blending in. */
    #reviews { background: var(--brand-soft); }
    .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    @media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }
    .review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.5rem; box-shadow: var(--shadow-soft); }
    .review-stars { color: #f5a623; font-size: .95rem; margin-bottom: .75rem; letter-spacing: .1rem; }
    .review-content { font-size: .9rem; line-height: 1.7; color: var(--foreground); margin: 0 0 1.1rem; }
    .review-author { display: flex; align-items: center; gap: .6rem; }
    .review-avatar { width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
    .review-name { font-weight: 700; font-size: .85rem; }
    .reviews-empty { text-align: center; color: var(--muted-foreground); }

    /* FAQ */
    .faq-list { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
    .faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
    .faq-item summary { padding: 1.1rem 1.4rem; font-weight: 700; font-size: .95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: 400; flex-shrink: 0; }
    .faq-item[open] summary::after { content: "−"; }
    .faq-answer { padding: 0 1.4rem 1.25rem; color: var(--muted-foreground); font-size: .9rem; line-height: 1.8; }

    /* Latest articles */
    .articles-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    @media (max-width: 900px) { .articles-grid-home { grid-template-columns: 1fr; } }
    .article-card-home { display: block; text-decoration: none; color: inherit; border-radius: 1.25rem; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); transition: transform .15s, box-shadow .15s; }
    .article-card-home:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
    .article-card-home img, .article-card-home .no-image { width: 100%; height: 10rem; object-fit: cover; background: var(--brand-soft); display: block; }
    .article-card-home-body { padding: 1.25rem; }
    .article-card-home h3 { font-size: 1rem; font-weight: 700; margin: 0; }

    /* Resources section (recent/"show in footer" articles + popular tags) — an internal
       linking + SEO section, not a visual card grid, so it's plain link lists rather than the
       image-card style used above. */
    .resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    @media (max-width: 760px) { .resources-grid { grid-template-columns: 1fr; } }
    .resources-col h3 { font-size: .95rem; font-weight: 800; margin: 0 0 1rem; }
    .resources-col-heading-hidden { visibility: hidden; }
    @media (max-width: 760px) { .resources-col-heading-hidden { display: none; } }
    .resources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
    .resources-list a { color: var(--muted-foreground); text-decoration: none; font-size: .9rem; line-height: 1.5; }
    .resources-list a:hover { color: var(--brand); text-decoration: underline; }

    /* footer.site-footer/.footer-* moved to public-base.css — shared by every public page now. */

    /* Cookie consent bar — hidden by default; JS only shows it if the consent cookie is
       absent, so returning/consented visitors never see a flash of it (see the inline script
       at the bottom of landing.html.twig). */
    .cookie-consent-bar {
        display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
        background: var(--foreground); color: var(--background);
        padding: 1rem 1.5rem; align-items: center; justify-content: center; gap: 1rem;
        flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(0,0,0,.2);
    }
    .cookie-consent-text { font-size: .85rem; line-height: 1.6; max-width: 56rem; text-align: center; }
    .cookie-consent-text a { color: var(--background); text-decoration: underline; font-weight: 700; }
    .cookie-consent-close {
        flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: 999px; border: none;
        background: var(--brand); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center; font-family: inherit;
    }
    .cookie-consent-close:hover { opacity: .85; }
