/* Public marketing pages: landing page and Request access */

.public-site {
    --ps-bg: #0b1220;
    --ps-bg-2: #0f172a;
    --ps-surface: rgba(255, 255, 255, 0.04);
    --ps-surface-2: rgba(255, 255, 255, 0.07);
    --ps-border: rgba(255, 255, 255, 0.09);
    --ps-text: #e2e8f0;
    --ps-heading: #ffffff;
    --ps-muted: #94a3b8;
    --ps-blue: #007aff;
    --ps-sky: #38bdf8;
    --ps-green: #34c759;
    --ps-mint: #34d399;
    --ps-amber: #fbbf24;
    --ps-gradient: linear-gradient(135deg, #007aff 0%, #34c759 100%);

    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--ps-bg);
    color: var(--ps-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.public-site h1, .public-site h2, .public-site h3, .public-site h4 {
    color: var(--ps-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.public-site a { color: var(--ps-sky); }
.public-site a:hover { color: var(--ps-mint); }

.ps-muted { color: var(--ps-muted) !important; }

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

.ps-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(11, 18, 32, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ps-border);
}

.ps-header .navbar { padding: 12px 0; }
/* The logo SVG's width/height attributes don't match its viewBox (10:3), so size both explicitly */
.ps-logo { width: 150px; height: 45px; }
.ps-logo-footer { width: 170px; height: 51px; }

.ps-header .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.ps-header .nav-link:hover { color: #ffffff !important; }
.ps-nav-login { color: var(--ps-sky) !important; }

@media (max-width: 991.98px) {
    .ps-header .navbar-collapse { padding: 12px 0 8px; }
    .ps-header .ps-btn-primary { margin-top: 8px; width: 100%; }
}

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

.ps-btn-primary {
    background: var(--ps-gradient);
    border: none;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 28px;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ps-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 122, 255, 0.35);
    filter: brightness(1.08);
}

.ps-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 28px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ps-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.ps-btn-sm { padding: 9px 18px; font-size: 0.92rem; }

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

.ps-section { padding: 96px 0; position: relative; }
/* Keep anchor jumps (/#platform etc.) clear of the sticky header */
.public-site section[id] { scroll-margin-top: 80px; }
.ps-section-alt { background: var(--ps-bg-2); border-top: 1px solid var(--ps-border); border-bottom: 1px solid var(--ps-border); }

.ps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ps-mint);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.ps-section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.ps-section-lead { color: var(--ps-muted); font-size: 1.1rem; max-width: 680px; line-height: 1.65; }

.ps-gradient-text {
    background: var(--ps-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 767.98px) {
    .ps-section { padding: 64px 0; }
}

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

.ps-hero {
    padding: 96px 0 88px;
    position: relative;
    overflow: hidden;
}

.ps-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 380px at 12% 10%, rgba(0, 122, 255, 0.22), transparent 70%),
        radial-gradient(560px 360px at 88% 70%, rgba(52, 199, 89, 0.16), transparent 70%);
    pointer-events: none;
}

.ps-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.ps-hero .container { position: relative; z-index: 1; }

.ps-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 22px;
}

.ps-hero-lead {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 560px;
    margin-bottom: 34px;
}

.ps-hero-note { color: var(--ps-muted); font-size: 0.88rem; margin-top: 18px; }

@media (max-width: 991.98px) {
    .ps-hero { padding: 64px 0 56px; }
}

/* Product mock in the hero */

.ps-mock {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.05);
    padding: 22px;
    position: relative;
}

.ps-mock-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.ps-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }

.ps-mock-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ps-border);
}

.ps-mock-ref { font-weight: 700; color: #ffffff; font-size: 1.05rem; }
.ps-mock-sub { color: var(--ps-muted); font-size: 0.84rem; }

.ps-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ps-chip-green { background: rgba(52, 199, 89, 0.14); color: var(--ps-mint); }
.ps-chip-blue { background: rgba(56, 189, 248, 0.14); color: var(--ps-sky); }
.ps-chip-amber { background: rgba(251, 191, 36, 0.14); color: var(--ps-amber); }

.ps-timeline { list-style: none; padding: 0; margin: 0; }

.ps-timeline li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    position: relative;
    font-size: 0.92rem;
}

.ps-timeline li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.ps-timeline .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.ps-timeline .done .dot { background: rgba(52, 199, 89, 0.18); color: var(--ps-mint); }
.ps-timeline .active .dot { background: rgba(56, 189, 248, 0.2); color: var(--ps-sky); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1); }
.ps-timeline .todo .dot { background: rgba(255, 255, 255, 0.06); color: var(--ps-muted); }
.ps-timeline .todo .step { color: var(--ps-muted); }
.ps-timeline .step { flex: 1; color: #e2e8f0; }
.ps-timeline .when { color: var(--ps-muted); font-size: 0.78rem; }

.ps-mock-float {
    position: absolute;
    right: -18px;
    bottom: -22px;
    background: #111c31;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.ps-mock-float i { color: var(--ps-mint); font-size: 1.1rem; }

@media (max-width: 575.98px) {
    .ps-mock-float { position: static; margin-top: 16px; }
}

/* Coverage strip */

.ps-strip { padding: 28px 0; border-top: 1px solid var(--ps-border); border-bottom: 1px solid var(--ps-border); background: rgba(255, 255, 255, 0.015); }
.ps-strip-label { color: var(--ps-muted); font-size: 0.88rem; }

.ps-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ps-border);
    background: var(--ps-surface);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.86rem;
    font-weight: 500;
}

.ps-pill i { color: var(--ps-sky); }

/* ---------- Cards ---------- */

.ps-card {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 18px;
    padding: 28px;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ps-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    background: var(--ps-surface-2);
}

.ps-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.ps-card p { color: var(--ps-muted); margin-bottom: 0; line-height: 1.6; font-size: 0.97rem; }

.ps-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(52, 199, 89, 0.2));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-pain .ps-icon { background: rgba(251, 191, 36, 0.12); color: var(--ps-amber); }

.ps-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.ps-card li { color: #cbd5e1; font-size: 0.92rem; padding: 4px 0; }
.ps-card li i { color: var(--ps-mint); margin-right: 8px; font-size: 0.8rem; }

/* ---------- Steps ---------- */

.ps-step { position: relative; padding-top: 8px; }

.ps-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ps-gradient);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.ps-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.ps-step p { color: var(--ps-muted); line-height: 1.6; margin: 0; }

@media (min-width: 992px) {
    .ps-step:not(.ps-step-last)::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 60px;
        right: -12px;
        height: 2px;
        background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0));
    }
}

/* ---------- Security list ---------- */

.ps-check { display: flex; gap: 14px; margin-bottom: 22px; }

.ps-check i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(52, 199, 89, 0.12);
    color: var(--ps-mint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-check h4 { font-size: 1.02rem; margin-bottom: 4px; }
.ps-check p { color: var(--ps-muted); margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* ---------- CTA band ---------- */

.ps-cta {
    border-radius: 24px;
    padding: 56px 40px;
    background:
        radial-gradient(500px 240px at 15% 0%, rgba(0, 122, 255, 0.35), transparent 70%),
        radial-gradient(500px 240px at 85% 100%, rgba(52, 199, 89, 0.28), transparent 70%),
        #101a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ps-cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ps-cta p { color: #cbd5e1; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }

@media (max-width: 575.98px) {
    .ps-cta { padding: 40px 22px; }
}

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

.ps-footer { padding: 40px 0; border-top: 1px solid var(--ps-border); background: #080e1a; }

.ps-footer-link {
    color: #cbd5e1 !important;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.92rem;
}

.ps-footer-link:first-child { margin-left: 0; }
.ps-footer-link:hover { color: #ffffff !important; }

@media (max-width: 767.98px) {
    /* Comfortable tap targets on phones */
    .ps-footer-link { display: inline-block; padding: 12px 0; }
}

/* ---------- Request access form ---------- */

.ps-form-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

@media (max-width: 575.98px) {
    .ps-form-card { padding: 24px 18px; }
}

.ps-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.ps-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem; /* 16px minimum stops iOS Safari zooming in on focus */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ps-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ps-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.22);
}

.ps-input::placeholder { color: rgba(255, 255, 255, 0.35); }
textarea.ps-input { min-height: 110px; resize: vertical; }

.ps-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.88rem;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    margin: 0 6px 8px 0;
    transition: all 0.15s ease;
}

.ps-option input { accent-color: var(--ps-green); }
.ps-option:has(input:checked) { border-color: rgba(52, 199, 89, 0.55); background: rgba(52, 199, 89, 0.1); color: #ffffff; }

/* The floating badge covers the form on phones; the attribution text under the submit button replaces it, as Google's terms allow */
.public-site .grecaptcha-badge { visibility: hidden; }
.ps-recaptcha-note { font-size: 0.75rem; }
.ps-recaptcha-note a { color: var(--ps-muted); text-decoration: underline; }

.ps-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.ps-next li { display: flex; gap: 14px; margin-bottom: 22px; }
.ps-next .n {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--ps-sky);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.ps-next h4 { font-size: 1rem; margin-bottom: 2px; }
.ps-next p { color: var(--ps-muted); margin: 0; font-size: 0.94rem; }

.ps-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(52, 199, 89, 0.15);
    color: var(--ps-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.ps-alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #fecaca;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.ps-alert ul { margin: 0; padding-left: 18px; }
.ps-alert:empty, .ps-alert.validation-summary-valid { display: none; }

.public-site .field-validation-error { color: #fca5a5; font-size: 0.82rem; margin-top: 4px; display: block; }

@media (prefers-reduced-motion: reduce) {
    .public-site * { transition: none !important; }
}
