/* =====================================================================
   PlugAtlas public site (landing page). Loaded only on "/".
   Mobile-first, no web fonts (system UI font = fast first paint).
   ===================================================================== */

:root {
    --pa-navy: #052767;
    --pa-purple: #3a0647;
    --pa-blue: #1b6ec2;
    --pa-blue-light: #3b82f6;
    --pa-green: #16a34a;
    --pa-amber: #f59e0b;
    --pa-red: #dc2626;
    --pa-ink: #0f172a;
    --pa-text: #334155;
    --pa-muted: #64748b;
    --pa-line: #e2e8f0;
    --pa-bg-alt: #f6f8fc;
    --pa-gradient: linear-gradient(135deg, var(--pa-navy) 0%, var(--pa-purple) 100%);
    --pa-radius: 1rem;
    --pa-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* anchors land below the sticky header */
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--pa-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--pa-ink);
    letter-spacing: -.02em;
}

a {
    color: var(--pa-blue);
}

.site-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: .5rem;
    z-index: 100;
    padding: .5rem 1rem;
    background: #fff;
    border-radius: .5rem;
}

    .skip-link:focus {
        left: .5rem;
    }

/* ---------- Buttons ---------- */

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .6rem 1.15rem;
    border-radius: .7rem;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .site-btn:hover {
        transform: translateY(-1px);
    }

    .site-btn:focus-visible {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
    }

.site-btn-lg {
    min-height: 52px;
    padding: .8rem 1.5rem;
    font-size: 1.05rem;
}

.site-btn-primary {
    background: var(--pa-gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(5, 39, 103, .25);
}

    .site-btn-primary:hover {
        color: #fff;
        box-shadow: 0 10px 24px rgba(5, 39, 103, .32);
    }

.site-btn-ghost {
    background: #fff;
    border-color: var(--pa-line);
    color: var(--pa-ink);
}

.site-btn-light {
    background: #fff;
    color: var(--pa-navy);
}

.site-btn-outline-light {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

    .site-btn-outline-light:hover {
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--pa-line);
    padding-top: env(safe-area-inset-top);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 4rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pa-navy);
    text-decoration: none;
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .6rem;
    background: var(--pa-gradient);
    color: #fff;
    font-size: 1.05rem;
}

.site-logo-light {
    color: #fff;
}

.site-nav {
    display: none;
    gap: 1.75rem;
}

    .site-nav a {
        color: var(--pa-text);
        text-decoration: none;
        font-weight: 500;
    }

        .site-nav a:hover {
            color: var(--pa-navy);
        }

.site-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Language switch (EN | ΕΛ) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--pa-line);
    border-radius: 999px;
    background: #fff;
}

.lang-switch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2rem;
    padding: 0 .55rem;
    border-radius: 999px;
    color: var(--pa-muted);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

    .lang-switch-item:hover {
        color: var(--pa-navy);
    }

    .lang-switch-item.is-active {
        background: var(--pa-navy);
        color: #fff;
    }

.site-login {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 .5rem;
    font-weight: 600;
    color: var(--pa-navy);
    text-decoration: none;
}

    .site-login:hover {
        text-decoration: underline;
    }

.site-hide-xs {
    display: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.5rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(59, 130, 246, .14), transparent 60%),
        radial-gradient(40rem 25rem at -10% 110%, rgba(58, 6, 71, .10), transparent 60%),
        #fff;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    margin: 0 0 .75rem;
    color: var(--pa-blue);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.08;
    font-weight: 800;
}

.hero-lead {
    margin: 0 0 1.75rem;
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    line-height: 1.6;
    max-width: 38rem;
}

    .hero-lead strong {
        color: var(--pa-ink);
    }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.hero-cta-center {
    justify-content: center;
    margin-bottom: 0;
}

.hero-points {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--pa-muted);
    font-size: .95rem;
}

    .hero-points li {
        display: flex;
        align-items: center;
        gap: .55rem;
    }

        .hero-points li::before {
            content: "✓";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.3rem;
            height: 1.3rem;
            border-radius: 50%;
            background: #dcfce7;
            color: var(--pa-green);
            font-size: .75rem;
            font-weight: 800;
            flex: 0 0 auto;
        }

/* Phone illustration */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1 / 2;
    border-radius: 2.6rem;
    padding: .7rem;
    background: #0f172a;
    box-shadow: 0 40px 80px rgba(15, 23, 42, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    transform: rotate(2deg);
}

.phone-notch {
    position: absolute;
    top: .7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 1.4rem;
    border-radius: 0 0 1rem 1rem;
    background: #0f172a;
    z-index: 2;
}

.phone-map {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
}

.phone-card {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    border-radius: .9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .2);
    font-size: .78rem;
}

.phone-card-top {
    top: 2.6rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    background: #0b3d91;
    color: #fff;
}

    .phone-card-top div {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }

    .phone-card-top strong {
        font-size: 1rem;
    }

.phone-card-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.phone-card-bottom {
    bottom: 1.4rem;
    padding: .75rem .85rem;
    background: #fff;
    color: var(--pa-text);
}

.phone-card-title {
    font-weight: 700;
    color: var(--pa-ink);
    font-size: .9rem;
}

.phone-card-row {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .3rem 0;
}

.phone-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

    .phone-card-chips span {
        padding: .05rem .45rem;
        border-radius: 999px;
        background: #eef2ff;
        color: #3730a3;
        font-weight: 600;
        font-size: .68rem;
    }

.phone-card-price {
    margin-top: .4rem;
    font-weight: 800;
    color: #065f46;
}

    .phone-card-price small {
        font-weight: 500;
        color: var(--pa-muted);
    }

.pdot {
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.pdot-green { background: var(--pa-green); }
.pdot-amber { background: var(--pa-amber); }
.pdot-red { background: var(--pa-red); }

/* ---------- Stats ---------- */

.stats {
    background: var(--pa-gradient);
    color: #fff;
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    text-align: center;
}

.stat-value {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.stat-label {
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
}

.stats-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
    text-align: center;
}

.live-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: live-pulse 2s infinite;
    flex: 0 0 auto;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
    70% { box-shadow: 0 0 0 .5rem rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot {
        animation: none;
    }
}

/* ---------- Sections ---------- */

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--pa-bg-alt);
}

.section-header {
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

    .section-header h2,
    .data-grid h2,
    .cta h2 {
        margin: 0 0 .75rem;
        font-size: clamp(1.6rem, 4vw, 2.3rem);
        line-height: 1.15;
        font-weight: 800;
    }

    .section-header p:not(.eyebrow) {
        margin: 0;
        font-size: 1.05rem;
        color: var(--pa-muted);
    }

/* Legal pages (/privacy) */
.legal-container {
    max-width: 48rem;
    line-height: 1.65;
}

    .legal-container h1 {
        margin: 0 0 .5rem;
        font-size: clamp(1.9rem, 5vw, 2.6rem);
        line-height: 1.15;
        font-weight: 800;
    }

    .legal-container h2 {
        margin: 2.25rem 0 .75rem;
        font-size: 1.35rem;
        font-weight: 800;
    }

    .legal-container h3 {
        margin: 1.25rem 0 .4rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .legal-container ul {
        padding-left: 1.25rem;
    }

    .legal-container li {
        margin-bottom: .4rem;
    }

    .legal-container a {
        overflow-wrap: anywhere;
    }

.legal-updated {
    color: var(--pa-muted);
    margin-bottom: 2rem;
}

.legal-switch {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pa-line);
}

/* Features */
.feature-grid {
    display: grid;
    gap: 1.25rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--pa-line);
    border-radius: var(--pa-radius);
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

    .feature-card:hover {
        box-shadow: var(--pa-shadow);
        transform: translateY(-2px);
    }

    .feature-card h3 {
        margin: 1rem 0 .4rem;
        font-size: 1.15rem;
    }

    .feature-card p {
        margin: 0;
        line-height: 1.6;
    }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    background: linear-gradient(135deg, #e0ecff, #f1e6f7);
    color: var(--pa-navy);
}

/* Steps */
.steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.step {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: var(--pa-radius);
    background: #fff;
    box-shadow: var(--pa-shadow);
}

    .step h3 {
        margin: .85rem 0 .4rem;
        font-size: 1.2rem;
    }

    .step p {
        margin: 0;
        line-height: 1.6;
    }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--pa-gradient);
    color: #fff;
    font-weight: 800;
}

/* Data */
.data-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

    .data-grid p {
        line-height: 1.7;
    }

.check-list {
    display: grid;
    gap: .7rem;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

    .check-list li {
        position: relative;
        padding-left: 1.9rem;
        line-height: 1.55;
    }

        .check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: .1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.3rem;
            height: 1.3rem;
            border-radius: 50%;
            background: #dcfce7;
            color: var(--pa-green);
            font-size: .75rem;
            font-weight: 800;
        }

.muted {
    color: var(--pa-muted);
    font-size: .92rem;
}

.data-card {
    padding: 1.5rem;
    border-radius: var(--pa-radius);
    background: #fff;
    border: 1px solid var(--pa-line);
    box-shadow: var(--pa-shadow);
}

.data-card-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 0;
}

    .data-card-row strong {
        margin-left: auto;
        color: var(--pa-ink);
    }

.data-card-divider {
    height: 1px;
    margin: .4rem 0;
    background: var(--pa-line);
}

/* FAQ */
.faq-container {
    max-width: 820px;
}

.faq-list {
    display: grid;
    gap: .75rem;
}

.faq-item {
    border: 1px solid var(--pa-line);
    border-radius: .9rem;
    background: #fff;
}

    .faq-item summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 56px;
        padding: 1rem 1.25rem;
        cursor: pointer;
        list-style: none;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: "+";
            flex: 0 0 auto;
            font-size: 1.4rem;
            line-height: 1;
            color: var(--pa-blue);
            transition: transform .2s ease;
        }

    .faq-item[open] summary::after {
        transform: rotate(45deg);
    }

    .faq-item summary h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .faq-item p {
        margin: 0;
        padding: 0 1.25rem 1.25rem;
        line-height: 1.7;
    }

/* Final CTA */
.cta {
    padding: 4rem 0;
    background: var(--pa-gradient);
    color: #fff;
    text-align: center;
}

    .cta h2 {
        color: #fff;
    }

    .cta p {
        margin: 0 0 1.75rem;
        color: rgba(255, 255, 255, .85);
        font-size: 1.1rem;
    }

/* ---------- Footer ---------- */

.site-footer {
    padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    background: #0b1220;
    color: #94a3b8;
    font-size: .92rem;
}

    .site-footer a {
        color: #cbd5e1;
    }

        .site-footer a:hover {
            color: #fff;
        }

.site-footer-grid {
    display: grid;
    gap: 2rem;
}

.site-footer-brand p {
    margin: .9rem 0 0;
    line-height: 1.6;
    max-width: 22rem;
}

.site-footer-title {
    margin: 0 0 .75rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

    .site-footer ul a {
        text-decoration: none;
    }

.site-footer-note {
    margin: 0;
    line-height: 1.6;
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, .2);
    font-size: .82rem;
}

/* ---------- Larger screens ---------- */

@media (min-width: 576px) {
    .site-hide-xs {
        display: inline-flex;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }

    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .section {
        padding: 5.5rem 0;
    }
}

@media (min-width: 992px) {

    .hero {
        padding: 5rem 0 5.5rem;
    }

    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .data-grid {
        grid-template-columns: 1.2fr .8fr;
        gap: 4rem;
    }
}

/* Section links only when there is room for them (Greek labels are longer) */
@media (min-width: 1140px) {
    .site-nav {
        display: flex;
        gap: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-btn, .feature-card {
        transition: none;
    }
}
