
:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #101828;
    --muted: #667085;
    --border: #cbd5e1;
    --border-strong: #94a3b8;
    --dark: #101828;

    --companion: #7c3aed;
    --companion-soft: #f5f3ff;

    --driver: #087f5b;
    --driver-soft: #ecfdf5;

    --backend: #3346a8;
    --backend-soft: #eef2ff;

    --danger: #b42318;
    --warning: #b54708;
    --success: #067647;

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.ra-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.ra-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 66px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.96);
    border-bottom: 1.5px solid var(--border);
    backdrop-filter: blur(14px);
}

.ra-topbar-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ra-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 900;
}

.ra-logo {
    width: 36px;
    height: 36px;
    border: 2px solid var(--dark);
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.ra-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ra-nav a {
    padding: 8px 10px;
    border: 1.5px solid transparent;
    border-radius: 9px;
    color: #475467;
    font-size: 12px;
    font-weight: 750;
}

.ra-nav a:hover {
    background: #fff;
    border-color: var(--border);
}

.ra-page {
    padding: 30px 0 55px;
}

.ra-hero {
    min-height: 475px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
    overflow: hidden;
    border: 2px solid var(--border-strong);
    border-radius: 25px;
    background: #fff;
}

.ra-hero-copy {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ra-role-chip {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    margin-bottom: 17px;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.ra-role-companion {
    color: var(--companion);
}

.ra-role-driver {
    color: var(--driver);
}

.ra-role-backend {
    color: var(--backend);
}

.ra-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(36px, 5vw, 59px);
    line-height: 1.01;
    letter-spacing: -.048em;
}

.ra-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.67;
}

.ra-actions {
    margin-top: 27px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ra-btn {
    min-height: 46px;
    padding: 0 19px;
    border: 2px solid var(--dark);
    border-radius: 10px;
    background: #fff;
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 850;
}

.ra-btn-primary {
    background: var(--dark);
    color: white;
}

.ra-btn-companion-primary {
    background: var(--companion);
    border-color: var(--companion);
    color: #fff;
}

.ra-btn-driver-primary {
    background: var(--driver);
    border-color: var(--driver);
    color: #fff;
}

.ra-btn-backend-primary {
    background: var(--backend);
    border-color: var(--backend);
    color: #fff;
}

.ra-visual {
    padding: 35px;
    display: grid;
    place-items: center;
}

.ra-visual-companion {
    background:
        radial-gradient(circle at 50% 18%, #fff 0, transparent 34%),
        var(--companion-soft);
}

.ra-visual-driver {
    background:
        radial-gradient(circle at 50% 18%, #fff 0, transparent 34%),
        var(--driver-soft);
}

.ra-visual-backend {
    background:
        radial-gradient(circle at 50% 18%, #fff 0, transparent 34%),
        var(--backend-soft);
}

.ra-preview {
    width: min(100%, 410px);
    min-height: 335px;
    padding: 25px;
    border: 2px solid rgba(15,23,42,.16);
    border-radius: 23px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 25px 60px rgba(15,23,42,.11);
}

.ra-preview-symbol {
    width: 78px;
    height: 78px;
    border: 2px solid currentColor;
    border-radius: 21px;
    display: grid;
    place-items: center;
    font-size: 36px;
}

.ra-preview h2 {
    margin: 23px 0 8px;
    font-size: 24px;
}

.ra-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.ra-preview-grid {
    margin-top: 23px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ra-preview-grid div {
    min-height: 59px;
    padding: 9px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #475467;
    font-size: 10px;
    font-weight: 800;
}

.ra-section {
    margin-top: 18px;
    padding: 25px;
    border: 1.8px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.ra-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ra-section h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -.025em;
}

.ra-section-head p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.ra-grid {
    display: grid;
    gap: 13px;
}

.ra-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.ra-card {
    padding: 17px;
    border: 1.7px solid var(--border);
    border-radius: 13px;
    background: #fff;
}

.ra-card h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.ra-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.57;
}

.ra-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 11px 22px;
}

.ra-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #344054;
    font-size: 13px;
    line-height: 1.47;
}

.ra-feature-list li::before {
    content: "✓";
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border: 1.5px solid #667085;
    border-radius: 50%;
    color: #344054;
    font-size: 10px;
    font-weight: 900;
}

.ra-callout {
    padding: 16px;
    border: 1.7px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-soft);
    color: #475467;
    font-size: 12px;
    line-height: 1.6;
}

.ra-form-shell {
    max-width: 1000px;
    margin: 0 auto;
}

.ra-form-header {
    margin-bottom: 19px;
}

.ra-form-header h1 {
    margin: 0;
    font-size: clamp(29px, 4vw, 43px);
    letter-spacing: -.04em;
}

.ra-form-header p {
    color: var(--muted);
    line-height: 1.6;
}

.ra-form-section {
    margin-top: 13px;
    padding: 20px;
    border: 1.7px solid var(--border);
    border-radius: 15px;
    background: #fff;
}

.ra-form-section h2 {
    margin: 0 0 5px;
    font-size: 17px;
}

.ra-form-section > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

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

.ra-field {
    display: grid;
    gap: 6px;
}

.ra-field-full {
    grid-column: 1 / -1;
}

.ra-field label {
    color: #344054;
    font-size: 11px;
    font-weight: 850;
}

.ra-required {
    color: var(--danger);
}

.ra-field input,
.ra-field select,
.ra-field textarea {
    width: 100%;
    min-height: 43px;
    padding: 9px 10px;
    border: 1.7px solid var(--border);
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--text);
}

.ra-field textarea {
    min-height: 95px;
    resize: vertical;
}

.ra-field input:focus,
.ra-field select:focus,
.ra-field textarea:focus {
    border-color: #475467;
}

.ra-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.ra-check input {
    margin-top: 2px;
}

.ra-check label {
    color: #475467;
    font-size: 12px;
    line-height: 1.5;
}

.ra-progress {
    margin-bottom: 17px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: white;
    display: flex;
    gap: 7px;
    overflow-x: auto;
}

.ra-progress span {
    white-space: nowrap;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.ra-security {
    margin-top: 14px;
    padding: 16px;
    border: 1.7px solid #86b7a4;
    border-radius: 12px;
    background: #f0fdf7;
}

.ra-security strong {
    display: block;
    color: #067647;
    margin-bottom: 4px;
}

.ra-security p {
    margin: 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.6;
}

.ra-submit-row {
    margin-top: 17px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ra-demo-note {
    font-size: 11px;
    color: #667085;
}

.ra-signin-wrap {
    min-height: calc(100vh - 67px);
    display: grid;
    place-items: center;
    padding: 30px 0;
}

.ra-signin-grid {
    width: min(100%, 930px);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    border: 2px solid var(--border-strong);
    border-radius: 23px;
    background: white;
}

.ra-signin-form {
    padding: 34px;
}

.ra-signin-form h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -.04em;
}

.ra-signin-form > p {
    color: var(--muted);
    line-height: 1.55;
}

.ra-demo-panel {
    padding: 34px;
    background: #f8fafc;
    border-left: 1.5px solid var(--border);
}

.ra-demo-panel h2 {
    margin: 0;
    font-size: 19px;
}

.ra-demo-account {
    margin-top: 12px;
    padding: 13px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    background: white;
}

.ra-demo-account strong {
    font-size: 12px;
}

.ra-demo-account code {
    display: block;
    margin-top: 5px;
    padding: 4px 0;
    color: #475467;
    font-size: 11px;
    word-break: break-all;
}

.ra-demo-banner {
    padding: 11px;
    margin-bottom: 15px;
    border: 1.5px solid #f2c94c;
    border-radius: 10px;
    background: #fff8dd;
    color: #7a4d00;
    font-size: 11px;
    line-height: 1.5;
}

.ra-message {
    display: none;
    margin-top: 13px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
}

.ra-message.show {
    display: block;
}

.ra-message-success {
    background: #ecfdf3;
    border-color: #75c29d;
    color: #067647;
}

.ra-message-error {
    background: #fef3f2;
    border-color: #f0a19a;
    color: #b42318;
}

.ra-footer {
    margin-top: 26px;
    padding: 23px 0 30px;
    border-top: 1px solid var(--border);
    color: #667085;
    font-size: 11px;
}

@media (max-width: 900px) {
    .ra-hero {
        grid-template-columns: 1fr;
    }

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

    .ra-signin-grid {
        grid-template-columns: 1fr;
    }

    .ra-demo-panel {
        border-left: 0;
        border-top: 1.5px solid var(--border);
    }
}

@media (max-width: 680px) {
    .ra-shell {
        width: min(100% - 20px, 650px);
    }

    .ra-nav {
        display: none;
    }

    .ra-hero-copy,
    .ra-visual,
    .ra-signin-form,
    .ra-demo-panel {
        padding: 25px;
    }

    .ra-feature-list,
    .ra-grid-2,
    .ra-grid-3,
    .ra-grid-4,
    .ra-form-grid {
        grid-template-columns: 1fr;
    }

    .ra-field-full {
        grid-column: auto;
    }

    .ra-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ra-btn {
        width: 100%;
    }
}
