:root {
    --roamase-focus: #71fff1;
    --roamase-radius: 22px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--roamase-focus);
    outline-offset: 3px;
}

.roamase-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.11);
    backdrop-filter: blur(14px);
}

.admin-bar .roamase-header { top: 32px; }
.roamase-header .wp-block-navigation a { text-decoration: none; }
.roamase-header .wp-block-site-title a { text-decoration: none; }

.roamase-network-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.roamase-network-bg::before,
.roamase-network-bg::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.roamase-network-bg::before {
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(28,200,183,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28,200,183,.22) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom right, transparent 5%, #000 70%);
}

.roamase-network-bg::after {
    width: 42rem;
    height: 42rem;
    right: -14rem;
    top: -13rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28,200,183,.28), transparent 65%);
    filter: blur(10px);
}

.roamase-kicker {
    color: var(--wp--preset--color--teal);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.roamase-lead { max-width: 720px; }

.roamase-orbit-card {
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    box-shadow: 0 30px 90px rgba(0,0,0,.24);
}

.roamase-status-chip {
    display: inline-block;
    width: fit-content;
    padding: .42rem .72rem;
    border: 1px solid rgba(28,200,183,.5);
    border-radius: 999px;
    color: var(--wp--preset--color--teal);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .03em;
}

.roamase-status-chip--light { background: #E5FBF8; color: #0B736B; }

.roamase-check-list,
.roamase-security-list {
    list-style: none;
    padding-left: 0;
}

.roamase-check-list li,
.roamase-security-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: .75rem;
}

.roamase-check-list li::before,
.roamase-security-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--teal);
    font-weight: 900;
}

.roamase-card-grid { align-items: stretch !important; }
.roamase-card-grid > .wp-block-column { display: flex; }

.roamase-card {
    width: 100%;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--wp--preset--color--line);
    border-radius: var(--roamase-radius);
    background: #fff;
    box-shadow: var(--wp--preset--shadow--soft);
}

.roamase-card--accent { border-top: 4px solid var(--wp--preset--color--teal); }
.roamase-card p:last-child { color: var(--wp--preset--color--muted); }

.roamase-steps > .wp-block-column {
    padding: 1.5rem 1.5rem 1rem;
    border-top: 1px solid var(--wp--preset--color--line);
}

.roamase-step-number {
    color: var(--wp--preset--color--teal-dark);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.roamase-dark-section h2,
.roamase-dark-section h3 { color: #fff; }

.roamase-rail-list {
    overflow: hidden;
    border: 1px solid #315268;
    border-radius: var(--roamase-radius);
}

.roamase-rail {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #315268;
    background: rgba(255,255,255,.035);
}

.roamase-rail:last-child { border-bottom: 0; }
.roamase-rail p { margin: 0; }
.roamase-rail p:last-child { color: #AFC2CE; }

.roamase-stack-diagram {
    display: grid;
    gap: .65rem;
    padding: clamp(1.5rem,4vw,2.4rem);
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--wp--preset--shadow--soft);
    text-align: center;
}

.roamase-stack-diagram p {
    margin: 0;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: var(--wp--preset--color--surface);
}

.roamase-stack-diagram span { color: var(--wp--preset--color--teal-dark); font-weight: 800; }

.roamase-security-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .9rem;
}

.roamase-security-list li {
    margin: 0;
    padding: 1.1rem 1.1rem 1.1rem 2.7rem;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 16px;
}

.roamase-security-list li::before { left: 1rem; top: 1.05rem; }

.roamase-border-panel {
    padding: clamp(2rem,5vw,4rem);
    border-left: 5px solid var(--wp--preset--color--teal);
    border-radius: 0 var(--roamase-radius) var(--roamase-radius) 0;
    background: #fff;
}

.roamase-timeline { border-left: 2px solid var(--wp--preset--color--teal); }
.roamase-timeline > p {
    display: grid;
    grid-template-columns: minmax(110px, .3fr) 1fr;
    gap: 1rem;
    margin: 0;
    padding: 1.2rem 0 1.2rem 1.6rem;
    border-bottom: 1px solid var(--wp--preset--color--line);
}
.roamase-timeline strong { color: var(--wp--preset--color--teal-dark); }

.roamase-early-access-form {
    padding: clamp(1.35rem,4vw,2.25rem);
    border: 1px solid #36566C;
    border-radius: 28px;
    background: #fff;
    color: var(--wp--preset--color--ink);
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.roamase-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
}

.roamase-field--full { grid-column: 1 / -1; }
.roamase-field label,
.roamase-field legend { display: block; margin-bottom: .38rem; font-size: .9rem; font-weight: 720; }
.roamase-field input,
.roamase-field select,
.roamase-field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #B9CBD5;
    border-radius: 12px;
    padding: .8rem .9rem;
    background: #fff;
    color: #142536;
    font: inherit;
}
.roamase-field textarea { min-height: 115px; resize: vertical; }
.roamase-consent { display: flex; gap: .65rem; align-items: flex-start; }
.roamase-consent input { width: auto; margin-top: .35rem; }
.roamase-form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.roamase-form-actions button {
    border: 0;
    border-radius: 999px;
    padding: .88rem 1.35rem;
    background: var(--wp--preset--color--teal);
    color: var(--wp--preset--color--navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.roamase-form-note { margin: 0; color: #5D6E7E; font-size: .83rem; }
.roamase-form-message { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 12px; }
.roamase-form-message--success { background: #DDF8EF; color: #075F4D; }
.roamase-form-message--error { background: #FCE9E9; color: #812626; }
.roamase-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.roamase-footer a { color: #DDEAF0; text-decoration-color: #527386; }
.roamase-footer a:hover { color: var(--wp--preset--color--teal); }
.roamase-footer h3 { color: #fff; }

@media (max-width: 960px) {
    .roamase-header-cta { display: none; }
    .roamase-security-list { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
    .admin-bar .roamase-header { top: 46px; }
    .roamase-form-grid { grid-template-columns: 1fr; }
    .roamase-timeline > p { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Roamase brand integration. */
.roamase-brand-lockup,
.roamase-footer-brand {
    gap: .7rem !important;
}

.roamase-brand-lockup .wp-block-site-title,
.roamase-footer-brand .wp-block-site-title {
    margin: 0;
}

.roamase-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent url("../images/roamase-mark.png") center / contain no-repeat;
}

.roamase-hero-mark {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 0 1rem auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}

.roamase-footer-mark {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.roamase-badge-grid {
    align-items: stretch !important;
}

.roamase-badge-grid > .wp-block-column {
    display: flex;
}

.roamase-badge-preview {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 260px;
    margin: 0;
    padding: clamp(1.1rem, 3vw, 1.8rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: var(--roamase-radius);
    background:
        linear-gradient(135deg, rgba(8, 27, 44, .035), transparent 55%),
        var(--wp--preset--color--surface);
    box-shadow: var(--wp--preset--shadow--soft);
}

.roamase-badge-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.roamase-badge-preview--wide img { width: min(100%, 390px); }
.roamase-badge-preview--compact img { width: min(100%, 340px); }
.roamase-badge-preview--round img { width: min(100%, 180px); }

.roamase-badge-preview figcaption {
    margin-top: 1rem;
    color: var(--wp--preset--color--muted);
    font-size: .82rem;
    font-weight: 720;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.roamase-badge-disclosure {
    gap: .8rem !important;
    margin-top: var(--wp--preset--spacing--40);
    padding: 1rem 1.15rem;
    align-items: flex-start !important;
    border: 1px solid #B9DDE0;
    border-radius: 16px;
    background: #EFFBFA;
}

.roamase-badge-disclosure p { margin: 0; }

.roamase-badge-disclosure__icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--wp--preset--color--teal-dark);
    color: #fff;
    font-size: .82rem;
    font-weight: 850;
}

@media (max-width: 960px) {
    .roamase-badge-grid {
        flex-wrap: wrap !important;
    }

    .roamase-badge-grid > .wp-block-column {
        flex-basis: calc(50% - 1rem) !important;
    }
}

@media (max-width: 640px) {
    .roamase-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .roamase-header .wp-block-site-title {
        font-size: 1.15rem;
    }

    .roamase-badge-grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    .roamase-badge-preview {
        min-height: 220px;
    }
}
