/* PlantBuddy landing page styles — scoped to /plant-buddy/. Shared layout from the BEK app-family template (mirrors dblogger/ballswipe); palette tuned to the PlantBuddy leaf-green brand. */

:root {
    --pb-primary: #34C77B;
    --pb-primary-dark: #1FA763;
    --pb-accent: #A3E635;
    --pb-dark: #0D120E;
    --pb-dark-2: #161D17;
    --pb-dark-3: #222B23;
    --pb-text: #F2F6F2;
    --pb-text-muted: #93A096;
    --pb-white: #ffffff;
    --pb-gradient: linear-gradient(135deg, #34C77B 0%, #A3E635 100%);
    --pb-radius: 14px;
    --pb-radius-lg: 24px;
    --pb-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
    background: var(--pb-dark);
    color: var(--pb-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img, svg { max-width: 100%; }
ul { list-style: none; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--pb-primary); color: var(--pb-dark); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { top: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.pb-nav { position: sticky; top: 0; z-index: 50; background: rgba(13, 18, 14, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pb-nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.pb-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; }
.pb-brand svg { width: 30px; height: 30px; }
.pb-nav-links a { color: var(--pb-text-muted); font-weight: 600; font-size: 0.92rem; }
.pb-nav-links a:hover { color: var(--pb-primary); }

/* Hero */
.pb-hero { padding: 4.5rem 0 3.5rem; background: radial-gradient(900px 420px at 80% -10%, rgba(52, 199, 123, 0.16), transparent 65%); }
.pb-hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.pb-hero-kicker { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pb-primary); background: rgba(52, 199, 123, 0.12); border: 1px solid rgba(52, 199, 123, 0.3); border-radius: 999px; padding: 0.3rem 0.85rem; margin-bottom: 1.1rem; }
.pb-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.pb-hero h1 .accent { background: var(--pb-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pb-hero .lead { margin-top: 1.1rem; color: var(--pb-text-muted); font-size: 1.08rem; max-width: 34rem; }
.pb-hero-visual { display: flex; justify-content: center; }
.pb-leaf-card { width: 230px; height: 230px; border-radius: var(--pb-radius-lg); background: linear-gradient(160deg, var(--pb-dark-2), var(--pb-dark-3)); border: 1px solid rgba(52, 199, 123, 0.25); box-shadow: var(--pb-shadow); display: flex; align-items: center; justify-content: center; animation: pb-float 5s ease-in-out infinite; }
.pb-leaf-card svg { width: 130px; height: 130px; }
@keyframes pb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Store buttons */
.pb-store-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.pb-store-btn { display: inline-flex; align-items: center; gap: 0.65rem; background: var(--pb-dark-2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 0.55rem 1.1rem; min-width: 170px; transition: border-color 0.2s ease, transform 0.2s ease; }
.pb-store-btn:hover { border-color: var(--pb-primary); transform: translateY(-2px); }
.pb-store-btn svg { width: 26px; height: 26px; flex-shrink: 0; fill: currentColor; }
.pb-store-btn .small { display: block; font-size: 0.68rem; color: var(--pb-text-muted); line-height: 1.2; }
.pb-store-btn .big { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }

/* Sections */
.pb-section { padding: 3.5rem 0; }
.pb-section-alt { background: var(--pb-dark-2); }
.pb-section-header { text-align: center; margin-bottom: 2.4rem; }
.pb-section-kicker { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pb-primary); margin-bottom: 0.4rem; }
.pb-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }

/* Features */
.pb-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.pb-feature { background: var(--pb-dark-2); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--pb-radius); padding: 1.5rem; transition: border-color 0.2s ease, transform 0.2s ease; }
.pb-section-alt .pb-feature { background: var(--pb-dark); }
.pb-feature:hover { border-color: rgba(52, 199, 123, 0.45); transform: translateY(-3px); }
.pb-feature-icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(52, 199, 123, 0.13); display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.pb-feature-icon svg { width: 23px; height: 23px; stroke: var(--pb-primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-feature h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 0.35rem; }
.pb-feature p { color: var(--pb-text-muted); font-size: 0.93rem; }

/* Download */
.pb-download { text-align: center; }
.pb-download .pb-store-buttons { justify-content: center; }
.pb-download p { color: var(--pb-text-muted); margin-top: 0.6rem; }

/* Language grid */
.pb-langs { columns: 4; column-gap: 1rem; font-size: 0.88rem; }
.pb-langs a { display: block; padding: 0.22rem 0; color: var(--pb-text-muted); }
.pb-langs a:hover { color: var(--pb-primary); }
.pb-langs a.current { color: var(--pb-primary); font-weight: 700; }
@media (max-width: 800px) { .pb-langs { columns: 2; } }

/* Footer */
.pb-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 2rem 0 2.5rem; margin-top: 2rem; }
.pb-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; color: var(--pb-text-muted); font-size: 0.88rem; }
.pb-footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.pb-footer a:hover { color: var(--pb-primary); }

/* Legal / article pages */
.pb-article { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.pb-article h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 0.4rem; }
.pb-article .pb-eff { color: var(--pb-primary); font-weight: 600; font-size: 0.92rem; margin-bottom: 1.4rem; }
.pb-article h2 { font-size: 1.18rem; font-weight: 700; margin: 1.8rem 0 0.5rem; }
.pb-article p { color: var(--pb-text-muted); margin-bottom: 0.8rem; }
.pb-article a { color: var(--pb-primary); }
.pb-article a:hover { text-decoration: underline; }
.pb-article ul { list-style: disc; margin: 0 0 0.8rem 1.4rem; color: var(--pb-text-muted); }
.pb-article ul li { margin-bottom: 0.35rem; }
.pb-back { display: inline-block; margin-top: 2rem; font-weight: 600; }

/* RTL */
[dir="rtl"] .pb-hero .lead { max-width: none; }
[dir="rtl"] .pb-article ul { margin: 0 1.4rem 0.8rem 0; }

/* Responsive */
@media (max-width: 860px) {
    .pb-hero .container { grid-template-columns: 1fr; text-align: center; }
    .pb-hero .lead { margin-left: auto; margin-right: auto; }
    .pb-store-buttons { justify-content: center; }
    .pb-hero-visual { order: -1; }
    .pb-leaf-card { width: 170px; height: 170px; }
    .pb-leaf-card svg { width: 95px; height: 95px; }
}

/* Smart App Banner (custom — Android Chrome; Google Play only) */
#bs-app-banner {
    display: none;
    position: sticky;
    top: 0;
    z-index: 60;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem 0.55rem 0.4rem;
    background: rgba(13, 18, 14, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.25;
    animation: bs-banner-slide 0.25s ease-out;
}
#bs-app-banner.visible { display: flex; }
@keyframes bs-banner-slide {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
.bs-app-banner-close {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.35rem;
    line-height: 1;
    flex-shrink: 0;
}
.bs-app-banner-close:hover { color: rgba(255, 255, 255, 0.95); }
.bs-app-banner-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.bs-app-banner-text { flex: 1; min-width: 0; overflow: hidden; }
.bs-app-banner-name {
    color: var(--pb-text);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bs-app-banner-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bs-app-banner-stars {
    color: #fbbf24;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-top: 1px;
}
.bs-app-banner-store {
    color: rgba(255, 255, 255, 0.45);
    margin-left: 0.3rem;
    letter-spacing: normal;
}
.bs-app-banner-cta {
    background: var(--pb-primary);
    color: var(--pb-white) !important;
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}
.bs-app-banner-cta:hover {
    background: var(--pb-primary-dark);
    transform: translateY(-1px);
}
[dir="rtl"] #bs-app-banner { direction: rtl; }
[dir="rtl"] .bs-app-banner-stars,
[dir="rtl"] .bs-app-banner-name,
[dir="rtl"] .bs-app-banner-sub { text-align: right; }
[dir="rtl"] .bs-app-banner-store { margin-left: 0; margin-right: 0.3rem; }
@media (max-width: 480px) {
    #bs-app-banner { padding: 0.45rem 0.6rem 0.45rem 0.25rem; gap: 0.5rem; }
    .bs-app-banner-icon { width: 38px; height: 38px; }
    .bs-app-banner-name { font-size: 0.9rem; }
    .bs-app-banner-sub { font-size: 0.72rem; }
    .bs-app-banner-stars { display: none; }
    .bs-app-banner-cta { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
}
