/* Isolated homepage hero concept. The production repository is unchanged. */

.navbar {
    height: 82px;
}

.navbar:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(1, 25, 19, 0.5), transparent);
}

.hero-cover {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    align-items: stretch;
    isolation: isolate;
    background: #021f18;
}

.hero-cover__skyline,
.hero-cover__texture,
.hero-cover__treatment {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-cover__skyline {
    z-index: -4;
    background-image: image-set(
        url("/assets/hero-preview/riyadh-source.webp") type("image/webp"),
        url("/assets/hero-preview/riyadh-source.png") type("image/png")
    );
    background-position: center 58%;
    background-size: cover;
    transform: scaleX(-1) scale(1.015);
    opacity: 0.72;
}

.hero-cover__texture {
    z-index: -3;
    background-image: image-set(
        url("/assets/hero-preview/emerald-texture.webp") type("image/webp"),
        url("/assets/hero-preview/emerald-texture.png") type("image/png")
    );
    background-position: center 48%;
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 0.82;
}

.hero-cover__treatment {
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(23, 166, 100, 0.58) 0%,
            rgba(5, 83, 59, 0.68) 30%,
            rgba(1, 37, 28, 0.88) 67%,
            rgba(0, 27, 21, 0.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 25, 19, 0.44) 0%,
            rgba(0, 28, 21, 0.15) 45%,
            rgba(0, 22, 17, 0.78) 100%
        );
}

.hero-cover__content {
    position: relative;
    z-index: 2;
    min-height: inherit;
    padding-top: 108px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-cover__brand {
    width: 100%;
    display: grid;
    justify-items: center;
}

.hero-cover__logo {
    width: 62px;
    height: auto;
    display: block;
}

.hero-cover__wordmark {
    width: min(58vw, 820px);
    height: auto;
    display: block;
    margin-top: 14px;
}

.hero-cover__headline {
    margin-top: 12px;
    color: #15a061;
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
}

.hero-cover__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    margin-top: 18px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(2, 31, 24, 0.34);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.hero-cover__badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #45d59b;
}

.hero-cover__description {
    max-width: 690px;
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.9;
}

.hero-cover__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.hero-cover .btn {
    min-width: 158px;
    min-height: 48px;
    border-radius: 8px;
}

.hero-cover .btn-primary {
    background: #37916a;
}

.hero-cover .btn-primary:hover,
.hero-cover .btn-primary:focus-visible {
    background: #15a061;
}

.hero-cover .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(2, 31, 24, 0.25);
    backdrop-filter: blur(10px);
}

.hero-cover .btn-outline:hover,
.hero-cover .btn-outline:focus-visible {
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(2, 31, 24, 0.55);
}

@media (min-width: 1001px) and (max-height: 820px) {
    .hero-cover__content {
        padding-top: 94px;
        padding-bottom: 30px;
    }

    .hero-cover__logo {
        width: 52px;
    }

    .hero-cover__wordmark {
        width: min(52vw, 720px);
        margin-top: 8px;
    }

    .hero-cover__headline {
        margin-top: 8px;
        font-size: 36px;
    }

    .hero-cover__badge {
        margin-top: 12px;
    }

    .hero-cover__description {
        margin-top: 9px;
        line-height: 1.7;
    }

    .hero-cover__actions {
        margin-top: 16px;
    }
}

@media (max-width: 1000px) {
    .hero-cover {
        padding-top: 0;
    }

    .hero-cover__content {
        padding-top: 108px;
        padding-bottom: 42px;
    }

    .hero-cover__wordmark {
        width: min(74vw, 700px);
    }

    .hero-cover__headline {
        font-size: 36px;
    }

    .hero-cover__skyline {
        background-position: 46% 58%;
    }
}

@media (max-width: 650px) {
    .navbar {
        height: 74px;
    }

    .hero-cover {
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
    }

    .hero-cover__content {
        min-height: inherit;
        padding-top: 94px;
        padding-bottom: 32px;
        justify-content: center;
    }

    .hero-cover__logo {
        width: 45px;
    }

    .hero-cover__wordmark {
        width: min(92vw, 440px);
        margin-top: 8px;
    }

    .hero-cover__headline {
        max-width: 340px;
        margin-top: 9px;
        font-size: 30px;
        line-height: 1.3;
    }

    .hero-cover__badge {
        margin-top: 14px;
    }

    .hero-cover__description {
        max-width: 350px;
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-cover__actions {
        width: 100%;
        max-width: 360px;
        margin-top: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-cover .btn {
        width: 100%;
        min-height: 48px;
    }

    .hero-cover__skyline {
        background-position: 43% 58%;
    }

    .hero-cover__texture {
        opacity: 0.88;
    }

    .hero-cover__treatment {
        background:
            linear-gradient(
                90deg,
                rgba(16, 126, 81, 0.44) 0%,
                rgba(2, 49, 37, 0.78) 48%,
                rgba(0, 28, 21, 0.92) 100%
            ),
            linear-gradient(
                180deg,
                rgba(0, 24, 18, 0.52) 0%,
                rgba(0, 26, 20, 0.3) 48%,
                rgba(0, 20, 15, 0.84) 100%
            );
    }
}

/* Company-profile comparison treatment for the isolated preview. */
.why {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(1, 36, 28, 0.94), rgba(3, 65, 47, 0.72)),
        #022b21;
}

.why::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: image-set(
        url("/assets/hero-preview/emerald-texture.webp") type("image/webp"),
        url("/assets/hero-preview/emerald-texture.png") type("image/png")
    );
    background-position: center;
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 0.55;
    pointer-events: none;
}

.why > .container {
    position: relative;
    z-index: 1;
}

.comparison--profile {
    margin-top: 56px;
    display: grid;
    gap: 12px;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.comparison--profile .comparison-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
    gap: 12px;
    border: 0;
}

.comparison--profile .comparison-cell {
    min-width: 0;
    min-height: 84px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    line-height: 1.55;
    text-align: center;
}

.comparison--profile .comparison-criterion {
    background: linear-gradient(90deg, rgba(2, 41, 31, 0.94), rgba(21, 112, 64, 0.88));
    font-size: 23px;
    font-weight: 700;
}

.comparison--profile .comparison-imported {
    background: rgba(138, 157, 149, 0.62);
    color: rgba(255, 255, 255, 0.94);
}

.comparison--profile .comparison-marsos {
    background: #37916a;
    color: #fff;
}

.comparison--profile .comparison-row--header .comparison-cell {
    min-height: 76px;
    font-size: 30px;
    font-weight: 700;
}

.comparison--profile .comparison-row--header .comparison-criterion {
    visibility: hidden;
}

.comparison--profile .comparison-row--header .comparison-imported {
    background: rgba(0, 8, 6, 0.94);
}

.comparison--profile .comparison-row--header .comparison-marsos {
    background: linear-gradient(90deg, #37916a, #167547);
}

@media (max-width: 1000px) {
    .comparison--profile {
        gap: 9px;
    }

    .comparison--profile .comparison-row {
        grid-template-columns: minmax(150px, 0.78fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
    }

    .comparison--profile .comparison-cell {
        min-height: 82px;
        padding: 14px;
        font-size: 18px;
    }

    .comparison--profile .comparison-criterion {
        font-size: 19px;
    }

    .comparison--profile .comparison-row--header .comparison-cell {
        min-height: 66px;
        font-size: 24px;
    }
}

@media (max-width: 700px) {
    .comparison--profile {
        margin-top: 42px;
        gap: 20px;
    }

    .comparison--profile .comparison-row--header {
        display: none;
    }

    .comparison--profile .comparison-row:not(.comparison-row--header) {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .comparison--profile .comparison-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .comparison--profile .comparison-cell {
        min-height: 0;
        padding: 14px 16px;
        justify-content: flex-start;
        border-radius: 8px;
        font-size: 18px;
        line-height: 1.65;
        text-align: right;
    }

    .comparison--profile .comparison-criterion {
        min-height: 54px;
        font-size: 20px;
    }

    .comparison--profile .comparison-imported,
    .comparison--profile .comparison-marsos {
        grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr);
        gap: 12px;
        align-items: center;
    }

    .comparison--profile .comparison-imported::before,
    .comparison--profile .comparison-marsos::before {
        content: attr(data-column);
        font-size: 12px;
        font-weight: 700;
        opacity: 0.76;
    }
}

/* Company-profile methodology composition for the isolated preview. */
.process--profile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 120px 0 0;
    background:
        linear-gradient(90deg, rgba(1, 34, 26, 0.9), rgba(3, 57, 42, 0.72)),
        #022a20;
    color: #fff;
}

.process--profile::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: image-set(
        url("/assets/hero-preview/emerald-texture.webp") type("image/webp"),
        url("/assets/hero-preview/emerald-texture.png") type("image/png")
    );
    background-position: center;
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 0.7;
    pointer-events: none;
}

.process--profile > .container {
    position: relative;
    z-index: 1;
}

.process-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: auto;
}

.process--profile .section-label {
    color: #45d59b;
}

.process--profile .section-label::before {
    background: #45d59b;
}

.process--profile .section-title {
    max-width: 720px;
    color: #fff;
}

.process--profile .section-description {
    max-width: 700px;
    color: #15a061;
    font-size: 24px;
    line-height: 1.65;
}

.process--profile .process-grid {
    position: relative;
    z-index: 1;
    min-height: 670px;
    margin-top: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    grid-template-areas:
        "step2 palm step1"
        "step4 palm step3";
    gap: 28px 46px;
    align-items: center;
    direction: ltr;
    border: 0;
}

.process-core {
    grid-area: palm;
    align-self: stretch;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.process-core img {
    display: block;
    width: min(560px, 46vw);
    max-width: none;
    height: auto;
    margin-bottom: -110px;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.28));
}

.process--profile .process-item {
    position: relative;
    z-index: 2;
    min-height: 210px;
    padding: 30px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(69, 213, 155, 0.2);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(15, 91, 53, 0.9), rgba(11, 85, 54, 0.56));
    color: #fff;
    text-align: center;
    direction: rtl;
}

.process--profile .process-item:hover {
    background: linear-gradient(90deg, rgba(20, 116, 67, 0.94), rgba(15, 99, 62, 0.68));
    border-color: rgba(69, 213, 155, 0.42);
    transform: translateY(-3px);
}

.process-item--1 {
    grid-area: step1;
}

.process-item--2 {
    grid-area: step2;
}

.process-item--3 {
    grid-area: step3;
}

.process-item--4 {
    grid-area: step4;
}

.process--profile .process-number {
    position: absolute;
    top: 50%;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 68, 38, 0.72);
    color: #19b77c;
    font-size: 62px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

.process-item--1 .process-number,
.process-item--3 .process-number {
    left: -72px;
}

.process-item--2 .process-number,
.process-item--4 .process-number {
    right: -72px;
}

.process--profile .process-item h3 {
    margin-top: 0;
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
}

.process--profile .process-item p {
    max-width: 390px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.75;
}

@media (max-width: 1100px) {
    .process--profile {
        padding-top: 100px;
    }

    .process-brand {
        width: 48px;
    }

    .process--profile .process-grid {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 360px repeat(2, minmax(190px, auto));
        grid-template-areas:
            "palm palm"
            "step2 step1"
            "step4 step3";
        gap: 18px;
    }

    .process-core {
        overflow: hidden;
    }

    .process-core img {
        width: 360px;
        margin-bottom: -105px;
    }

    .process--profile .process-item {
        min-height: 190px;
        padding: 28px 32px;
    }

    .process--profile .process-number,
    .process-item--1 .process-number,
    .process-item--2 .process-number,
    .process-item--3 .process-number,
    .process-item--4 .process-number {
        top: -26px;
        right: 22px;
        left: auto;
        width: 62px;
        height: 62px;
        font-size: 36px;
        transform: none;
    }

    .process--profile .process-item h3 {
        font-size: 36px;
    }

    .process--profile .process-item p {
        font-size: 18px;
    }
}

@media (max-width: 650px) {
    .process--profile {
        padding: 90px 0 70px;
    }

    .process-brand {
        display: none;
    }

    .process--profile .section-description {
        font-size: 19px;
    }

    .process--profile .process-grid {
        margin-top: 34px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .process-core {
        order: 0;
        width: 100%;
        height: 280px;
        flex: none;
    }

    .process-core img {
        width: 260px;
        margin-bottom: -42px;
    }

    .process-item--1 {
        order: 1;
    }

    .process-item--2 {
        order: 2;
    }

    .process-item--3 {
        order: 3;
    }

    .process-item--4 {
        order: 4;
    }

    .process--profile .process-item {
        width: 100%;
        min-height: 158px;
        padding: 24px 26px 24px 88px;
        align-items: flex-start;
        text-align: right;
    }

    .process--profile .process-number,
    .process-item--1 .process-number,
    .process-item--2 .process-number,
    .process-item--3 .process-number,
    .process-item--4 .process-number {
        top: 50%;
        right: auto;
        left: 18px;
        width: 56px;
        height: 56px;
        font-size: 32px;
        transform: translateY(-50%);
    }

    .process--profile .process-item h3 {
        font-size: 34px;
    }

    .process--profile .process-item p {
        margin-top: 8px;
        font-size: 17px;
        line-height: 1.7;
    }
}

/* Isolated product-card preview using the supplied brand artwork. */
.impact-grid {
    gap: 20px;
}

.impact-card {
    min-height: 510px;
    padding: 38px;
    justify-content: flex-start;
}

.impact-index {
    font-size: 18px;
}

.impact-card__logo {
    width: min(100%, 270px);
    height: 160px;
    margin: 22px auto 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.impact-card__logo--light {
    padding: 14px;
    border-radius: 8px;
    background: #fff;
}

.impact-card__logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.impact-card__logo--marketplace img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    max-height: none;
    height: 250px;
    transform: translate(-50%, -50%);
}

.impact-card__logo--marketplace {
    position: relative;
}

.impact-card__logo--revops img {
    width: 170px;
}

.impact-card__logo--mujamma img {
    width: 235px;
}

.impact-card__content {
    margin-top: auto;
    padding-top: 28px;
}

.impact-card h3 {
    font-size: 42px;
    line-height: 1.25;
}

.impact-card p {
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.85;
}

@media (max-width: 1000px) {
    .impact-card {
        min-height: 460px;
    }
}

@media (max-width: 650px) {
    .impact-grid {
        margin-top: 44px;
    }

    .impact-card {
        min-height: 430px;
        padding: 28px;
    }

    .impact-card__logo {
        width: min(100%, 240px);
        height: 138px;
        margin-top: 18px;
    }

    .impact-card__logo--marketplace img {
        height: 220px;
    }

    .impact-card h3 {
        font-size: 38px;
    }

    .impact-card p {
        font-size: 19px;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-cover__logo,
    .hero-cover__wordmark,
    .hero-cover__headline,
    .hero-cover__badge,
    .hero-cover__description,
    .hero-cover__actions {
        animation: hero-cover-enter 700ms ease both;
    }

    .hero-cover__wordmark {
        animation-delay: 70ms;
    }

    .hero-cover__headline {
        animation-delay: 130ms;
    }

    .hero-cover__badge,
    .hero-cover__description,
    .hero-cover__actions {
        animation-delay: 190ms;
    }
}

@keyframes hero-cover-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Readability pass: keep essential copy comfortably legible at normal zoom. */
:root {
    --text-muted: #b8cbc3;
}

body {
    font-size: 18px;
}

.nav-links a,
.nav-cta,
.section-label {
    font-size: 16px;
}

.nav-links.mobile-open a {
    padding: 13px 15px;
    font-size: 18px;
}

.menu-button span {
    font-size: 24px;
    line-height: 1;
}

.btn {
    font-size: 17px;
}

.hero-cover__badge {
    min-height: 38px;
    padding-inline: 15px;
    font-size: 16px;
}

.hero-cover__description {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.85;
}

.section-description {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.85;
}

.stat-label {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.problem .section-description,
.process:not(.process--profile) .section-description,
.problem-list li {
    color: #4f625a;
}

.problem-list li {
    font-size: 18px;
    line-height: 1.75;
}

.product-number,
.product-tag {
    font-size: 16px;
}

.product p {
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.85;
}

.product-feature {
    min-height: 42px;
    padding: 9px 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.45;
}

.arabic-first .section-description {
    color: rgba(255, 255, 255, 0.88);
}

.arabic-feature strong {
    font-size: 20px;
}

.arabic-feature span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.65;
}

.cta p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.8;
}

.footer-brand p,
.footer-column h4,
.footer-column li,
.footer-column a,
.footer-bottom,
.footer-legal a {
    font-size: 16px;
}

.footer-brand p,
.footer-column li,
.footer-column a,
.footer-legal a {
    color: var(--text-muted);
}

.footer-bottom {
    color: #a8bdb5;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .comparison--profile .comparison-imported::before,
    .comparison--profile .comparison-marsos::before {
        font-size: 16px;
        opacity: 0.9;
    }
}

@media (max-width: 650px) {
    .hero-cover__description,
    .process--profile .process-item p {
        font-size: 18px;
    }

    .section-description,
    .impact-card p {
        font-size: 19px;
    }

}

/* Accessible demo request modal, connected to the existing protected API. */
body.dialog-open {
    overflow: hidden;
}

button.btn {
    border: 0;
    color: var(--white);
    cursor: pointer;
}

.demo-dialog {
    width: min(900px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(69, 213, 155, 0.28);
    border-radius: 8px;
    background: #032d23;
    color: var(--white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.demo-dialog::backdrop {
    background: rgba(0, 17, 13, 0.78);
    backdrop-filter: blur(7px);
}

.demo-dialog__surface {
    position: relative;
    padding: 48px;
}

.demo-dialog__close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.demo-dialog__close:hover,
.demo-dialog__close:focus-visible {
    border-color: var(--green-400);
    background: rgba(69, 213, 155, 0.1);
}

.demo-dialog__intro {
    max-width: 670px;
    padding-left: 54px;
}

.demo-dialog__intro h2 {
    font-size: 42px;
    line-height: 1.25;
}

.demo-dialog__intro p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.demo-form {
    margin-top: 34px;
}

.demo-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.demo-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.demo-field {
    min-width: 0;
    display: grid;
    gap: 9px;
    color: var(--white-soft);
    font-size: 17px;
}

.demo-field--wide {
    grid-column: 1 / -1;
}

.demo-field small {
    color: var(--text-muted);
    font-size: 16px;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    outline: 0;
    background: rgba(1, 24, 18, 0.72);
    color: var(--white);
    font-size: 17px;
    line-height: 1.55;
}

.demo-field textarea {
    min-height: 116px;
    resize: vertical;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(69, 213, 155, 0.2);
}

.demo-field input[aria-invalid="true"],
.demo-field select[aria-invalid="true"],
.demo-field textarea[aria-invalid="true"] {
    border-color: #ff9e9e;
}

.demo-consent {
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.demo-consent input {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    flex: none;
    accent-color: var(--green-500);
}

.demo-consent a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-form__status {
    min-height: 30px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
}

.demo-form__status.is-error {
    color: #ffb5b5;
}

.demo-form__status.is-success {
    color: #73e2b6;
}

.demo-form__actions {
    display: flex;
    gap: 12px;
}

.demo-form__actions .btn {
    min-width: 150px;
}

.demo-form__actions .btn:disabled {
    cursor: wait;
    opacity: 0.64;
}

@media (max-width: 650px) {
    .demo-dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    .demo-dialog__surface {
        padding: 34px 22px 26px;
    }

    .demo-dialog__close {
        top: 14px;
        left: 14px;
    }

    .demo-dialog__intro {
        padding-left: 46px;
    }

    .demo-dialog__intro h2 {
        font-size: 34px;
    }

    .demo-form__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-field--wide {
        grid-column: auto;
    }

    .demo-form__actions {
        flex-direction: column;
    }

    .demo-form__actions .btn {
        width: 100%;
    }
}
