/* Dev Point Solutions — landing.
   One screen, one accent, glass on mist. Spacing sits on the 2px scale
   (8/16/24/32/48), motion uses 110/240/400ms with entrance easing. */

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #14323a;
    background-color: #b6c4c9; /* mist blue while the image loads */
    background-image: url("bg-2560.71797c8d27f7.webp");
    background-image: image-set(
        url("bg-2560.7aa84a70d961.avif") type('image/avif'),
        url("bg-2560.71797c8d27f7.webp") type('image/webp')
    );
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top, 0px) + 1.5rem)
             calc(env(safe-area-inset-right, 0px) + 1.5rem)
             calc(env(safe-area-inset-bottom, 0px) + 1.5rem)
             calc(env(safe-area-inset-left, 0px) + 1.5rem);
    overflow: hidden;
}

@media (min-width: 42rem) {
    body { padding: 3rem; }
}

/* ---------- glass primitives ---------- */
.glass {
    background: linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.12));
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255,255,255,.45);
    border-bottom-color: rgba(255,255,255,.18);
    border-right-color: rgba(255,255,255,.18);
    box-shadow: 0 8px 32px rgba(20,50,60,.14), inset 0 1px 0 rgba(255,255,255,.35);
    color: inherit;
}

/* ---------- entrance: everything rises once, staggered ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(0.75rem); }
    to   { opacity: 1; transform: none; }
}
.top, .hero > *, .facts {
    animation: rise 400ms cubic-bezier(0, 0, 0.3, 1) backwards;
}
.hero h1   { animation-delay: 70ms; }
.hero .sub { animation-delay: 150ms; }
.hero .cta { animation-delay: 240ms; }
.facts     { animation-delay: 320ms; }

/* ---------- header ---------- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mark {
    width: 7rem;
    filter: drop-shadow(0 2px 8px rgba(20,50,60,.3));
}

.pill {
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.16px;
    cursor: pointer;
    transition: transform 110ms cubic-bezier(0, 0, 0.38, 0.9),
                background 110ms ease, filter 110ms ease;
}
.pill:hover { transform: translateY(-2px); background: rgba(255,255,255,.4); }
.pill:active { transform: scale(.96); }

/* ---------- hero ---------- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.625rem, 8vw, 4.75rem); /* display: 42 → 76px */
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.sub {
    margin: 0;
    max-width: 36em;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(20,50,60,.65);
    text-wrap: balance;
}

.cta {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 650;
    background: linear-gradient(135deg, rgba(189,255,139,.85), rgba(189,255,139,.6));
    border-color: rgba(255,255,255,.6);
}
.cta:hover { background: linear-gradient(135deg, rgba(189,255,139,.95), rgba(189,255,139,.7)); }

/* ---------- footer facts ---------- */
.facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: rgba(20,50,60,.65);
}
.facts a {
    color: inherit;
    text-decoration: none;
    transition: color 110ms ease;
}
.facts a:hover { color: #14323a; text-decoration: underline; }
.dot { opacity: .5; }

/* ---------- dialogs (message + sign in) ---------- */
.dlg {
    width: min(25rem, calc(100vw - 2rem));
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 1.5rem;
    padding: 2rem;
    box-sizing: border-box;
    margin: auto;
    position: relative;
}
.dlg[open] { animation: rise 240ms cubic-bezier(0, 0, 0.3, 1); }
.dlg::backdrop {
    background: rgba(20,50,60,.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.dlg h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.dlg-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(20,50,60,.6);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 110ms ease, color 110ms ease;
}
.dlg-close:hover { background: rgba(255,255,255,.4); color: #14323a; }

/* forms */
#msg-form, #login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.field {
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    font: inherit;
    color: inherit;
    outline: none;
    resize: none;
    transition: background 110ms ease, border-color 110ms ease;
}
.field::placeholder { color: rgba(20,50,60,.45); }
.field:focus { background: rgba(255,255,255,.45); border-color: rgba(255,255,255,.8); }

.send {
    border-radius: 999px;
    padding: 0.75rem;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(189,255,139,.85), rgba(189,255,139,.6));
    border-color: rgba(255,255,255,.6);
    transition: transform 110ms cubic-bezier(0, 0, 0.38, 0.9), filter 110ms ease;
}
.send:hover { transform: scale(1.02); filter: brightness(1.05); }
.send:active { transform: scale(.97); }

.form-note {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
    color: rgba(20,50,60,.75);
}

button:focus-visible, a:focus-visible, .field:focus-visible {
    outline: 2px solid #7fb84d;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition: none !important;
    }
}
