/* Easy Phone Dial landing page styles — scoped to /easy-phone-dial/.
   Shared layout from the BEK app-family template (dblogger/ballswipe);
   palette tuned to the Easy Phone Dial call-green brand. */

:root {
    --ep-primary: #34C759;
    --ep-accent: #0FA968;
    --ep-dark: #0E0F12;
    --ep-dark-2: #1B1D22;
    --ep-dark-3: #2A2D33;
    --ep-text: #F4F5F7;
    --ep-text-muted: #8A8F98;
    --ep-gradient: linear-gradient(135deg, #34C759 0%, #0FA968 100%);
    --ep-gradient-text: linear-gradient(135deg, #5AD17B 0%, #34C7B9 100%);
    --ep-radius: 14px;
    --ep-radius-lg: 24px;
    --ep-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, sans-serif;
    background: var(--ep-dark);
    color: var(--ep-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
img, svg { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--ep-accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { top: 0; }

/* Nav */
.ep-nav { background: rgba(14,15,18,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ep-dark-3); position: sticky; top: 0; z-index: 50; }
.ep-nav .container { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; }
.ep-brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; color: #fff; }
.ep-brand img { width: 32px; height: 32px; border-radius: 8px; }
.ep-nav-links a { color: var(--ep-text-muted); font-size: .92rem; }
.ep-nav-links a:hover { color: #fff; }

/* Hero */
.ep-hero { padding: 4.5rem 0 3.5rem; text-align: center; background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(52,199,89,.16), transparent); }
.ep-hero-kicker { display: inline-block; background: rgba(52,199,89,.12); color: var(--ep-primary); border: 1px solid rgba(52,199,89,.35); border-radius: 999px; padding: .3rem 1rem; font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem; }
.ep-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; max-width: 19ch; margin: 0 auto; }
.ep-hero h1 .accent { background: var(--ep-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ep-hero .lead { color: var(--ep-text-muted); font-size: 1.15rem; max-width: 56ch; margin: 1.3rem auto 2.2rem; }

/* Store buttons */
.ep-store-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ep-store-btn { display: inline-flex; align-items: center; gap: .7rem; background: var(--ep-dark-2); border: 1px solid var(--ep-dark-3); border-radius: var(--ep-radius); padding: .65rem 1.3rem; min-width: 180px; text-align: start; }
.ep-store-btn:hover { border-color: var(--ep-primary); transform: translateY(-2px); }
.ep-store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.ep-store-btn .small { display: block; font-size: .68rem; color: var(--ep-text-muted); line-height: 1.2; }
.ep-store-btn .big { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }

/* Demo card grid (decorative) */
.ep-demo { margin: 3rem auto 0; max-width: 360px; background: var(--ep-dark-2); border: 1px solid var(--ep-dark-3); border-radius: var(--ep-radius-lg); padding: 1.1rem; box-shadow: var(--ep-shadow); }
.ep-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ep-demo-card { background: var(--ep-dark-3); border-radius: var(--ep-radius); padding: 1.1rem .5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.ep-demo-face { font-size: 2.6rem; line-height: 1; }
.ep-demo-call { width: 38px; height: 38px; border-radius: 50%; background: var(--ep-gradient); display: flex; align-items: center; justify-content: center; }
.ep-demo-call svg { width: 19px; height: 19px; fill: #fff; }

/* Features */
.ep-features { padding: 4rem 0; }
.ep-features h2, .ep-lang h2 { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-bottom: 2.2rem; letter-spacing: -.01em; }
.ep-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.ep-feature { background: var(--ep-dark-2); border: 1px solid var(--ep-dark-3); border-radius: var(--ep-radius-lg); padding: 1.6rem 1.4rem; }
.ep-feature .emoji { font-size: 1.9rem; display: block; margin-bottom: .7rem; }
.ep-feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .45rem; }
.ep-feature p { color: var(--ep-text-muted); font-size: .95rem; }

/* Language picker */
.ep-lang { padding: 1rem 0 4rem; }
.ep-lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
.ep-lang-grid a { display: block; background: var(--ep-dark-2); border: 1px solid var(--ep-dark-3); border-radius: 9px; padding: .45rem .8rem; font-size: .88rem; color: var(--ep-text-muted); text-align: center; }
.ep-lang-grid a:hover { color: #fff; border-color: var(--ep-primary); }
.ep-lang-grid a.current { color: var(--ep-primary); border-color: var(--ep-primary); font-weight: 600; }

/* Footer */
.ep-footer { border-top: 1px solid var(--ep-dark-3); padding: 2.2rem 0 2.6rem; text-align: center; color: var(--ep-text-muted); font-size: .9rem; }
.ep-footer a { color: var(--ep-text); }
.ep-footer a:hover { color: var(--ep-primary); }
.ep-footer .links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.ep-footer .addr { font-size: .8rem; margin-top: .5rem; opacity: .8; }

/* Document pages (privacy / support) */
.ep-doc { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.ep-doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: .4rem; letter-spacing: -.01em; }
.ep-doc .effective { color: var(--ep-text-muted); font-size: .92rem; margin-bottom: 1.8rem; }
.ep-doc h2 { font-size: 1.18rem; font-weight: 700; margin: 1.9rem 0 .55rem; }
.ep-doc p { color: #C9CDD3; margin-bottom: .8rem; }
.ep-doc a { color: var(--ep-primary); }
.ep-doc a:hover { text-decoration: underline; }
.ep-doc ul { margin: 0 0 .8rem 1.3rem; color: #C9CDD3; }
[dir="rtl"] .ep-doc ul { margin: 0 1.3rem .8rem 0; }
.ep-doc .back { display: inline-block; margin-top: 2rem; color: var(--ep-text); background: var(--ep-dark-2); border: 1px solid var(--ep-dark-3); border-radius: 10px; padding: .55rem 1.1rem; }
.ep-doc .back:hover { border-color: var(--ep-primary); text-decoration: none; }

@media (max-width: 540px) {
    .ep-hero { padding-top: 3rem; }
    .ep-store-btn { width: 100%; justify-content: center; }
}

/* 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(14, 15, 18, 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(--ep-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(--ep-primary);
    color: #ffffff !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(--ep-accent);
    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; }
}
