/* R47 theme t04 «دوپاره», R48 — group «split»: the form on a plain surface, the other half a brand-coloured view (tinted over the
   site's background picture when it has one) with a wavy edge that keeps flowing, drifting rings and a line that rotates through the
   site's features. On a tablet or a phone the view becomes a band on top and the wave runs along its foot.
   Every selector is under html.st-t04 and every theme class is «t04-…», so nothing here reaches another theme. */

html.st-t04 { background: #ffffff; }
html.st-t04[data-theme="dark"] { background: #13161c; }

html.st-t04 .ra-body {
    --bg: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #f4f5f9;
    --surface-3: rgba(17, 24, 39, .05);
    --field-bg: #f8f9fc;
    --field-bg-focus: #ffffff;
    --field-border: rgba(17, 24, 39, .15);
    --line: rgba(17, 24, 39, .09);
    --line-strong: rgba(17, 24, 39, .17);
    --ghost-bg: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --faint: #6b7280;
    --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 12px 30px -16px rgba(17, 24, 39, .2);
    --shadow-lg: 0 30px 80px -30px rgba(17, 24, 39, .3);
    --st-top-ink: var(--primary-text);
}
html.st-t04[data-theme="dark"] .ra-body {
    --bg: #0f1115;
    --surface: #13161c;
    --surface-2: rgba(255, 255, 255, .04);
    --surface-3: rgba(255, 255, 255, .07);
    --field-bg: rgba(255, 255, 255, .04);
    --field-bg-focus: rgba(255, 255, 255, .07);
    --field-border: rgba(255, 255, 255, .15);
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .17);
    --ghost-bg: rgba(255, 255, 255, .04);
    --text: #eceef3;
    --muted: #a7adbb;
    --faint: #8b92a1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -16px rgba(0, 0, 0, .65);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .75);
}
html.st-t04 .t04-page { background: var(--surface); }

/* ---------------------------------------------------------------- the view */
html.st-t04 .t04-vis {
    display: flex; align-items: center; padding: clamp(40px, 6vw, 96px) clamp(72px, 8vw, 128px) clamp(40px, 6vw, 96px) clamp(40px, 6vw, 96px);
    background: radial-gradient(70% 60% at 20% 15%, rgba(var(--accent-rgb), .35), transparent 60%), linear-gradient(160deg, var(--primary), var(--primary-strong));
}
html.st-t04[data-theme="dark"] .t04-vis {
    background: radial-gradient(70% 60% at 20% 15%, rgba(var(--accent-rgb), .25), transparent 60%), linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .3)), linear-gradient(160deg, var(--primary), var(--primary-strong));
}
html.st-t04.st-has-bg .t04-vis {
    background: linear-gradient(160deg, rgba(var(--p-rgb), .9), rgba(var(--p-rgb), .72)), var(--st-photo) center / cover no-repeat;
}
html.st-t04 .t04-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
html.st-t04 .t04-ring {
    position: absolute; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .18;
    translate: calc((var(--mx, .5) - .5) * 30px) calc((var(--my, .5) - .5) * 24px);
    animation: t04-spin 70s linear infinite;
}
html.st-t04 .t04-ring-1 { width: 620px; height: 620px; top: -220px; left: -200px; }
html.st-t04 .t04-ring-2 { width: 360px; height: 360px; top: -90px; left: -70px; border-style: solid; opacity: .22; animation-duration: 46s; animation-direction: reverse; }
html.st-t04 .t04-orb {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), 0));
    translate: calc((var(--mx, .5) - .5) * -50px) calc((var(--my, .5) - .5) * -36px);
    animation: t04-float 14s ease-in-out infinite alternate;
}
html.st-t04 .t04-orb-1 { bottom: -160px; right: 4%; }
html.st-t04 .t04-orb-2 { top: 18%; left: -120px; width: 300px; height: 300px; opacity: .6; animation-duration: 18s; animation-delay: -6s; }
@keyframes t04-spin { to { transform: rotate(360deg); } }
@keyframes t04-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, -60px) scale(1.15); } }

html.st-t04 .t04-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; max-width: 560px; margin: 0 auto; }
html.st-t04 .t04-kicker {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: rgba(255, 255, 255, .16); background: color-mix(in srgb, currentColor 14%, transparent);
    border: 1px solid rgba(255, 255, 255, .26); border-color: color-mix(in srgb, currentColor 26%, transparent);
}
html.st-t04 .t04-headline { color: inherit; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.38; }
html.st-t04 .t04-headline em { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .9); text-decoration-thickness: 5px; text-underline-offset: 10px; }
html.st-t04 .t04-rot { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.6; }
html.st-t04 .t04-rot-item {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 14px; border-radius: 14px; white-space: nowrap;
    background: rgba(255, 255, 255, .14); background: color-mix(in srgb, currentColor 13%, transparent);
}
html.st-t04 .t04-rot-item .st-i { width: 22px; height: 22px; }
html.st-t04 .t04-lead { color: inherit; opacity: .92; font-size: 16.5px; }
html.st-t04 .t04-features { margin-top: 6px; gap: 14px; }
html.st-t04 .t04-features .st-fi { width: 42px; height: 42px; border-radius: 13px; }
html.st-t04 .t04-features .st-ft b { font-size: 15px; }

/* the wave between the two halves: the surface's colour cut by a wave that keeps moving */
html.st-t04 .t04-edge {
    position: absolute; top: 0; bottom: 0; right: -1px; width: 56px; z-index: 2; pointer-events: none; background: var(--surface);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='240' viewBox='0 0 56 240' preserveAspectRatio='none'%3E%3Cpath d='M56 0H28C8 40 8 80 28 120S48 200 28 240H56Z'/%3E%3C/svg%3E") 0 0 / 56px 240px repeat-y;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='240' viewBox='0 0 56 240' preserveAspectRatio='none'%3E%3Cpath d='M56 0H28C8 40 8 80 28 120S48 200 28 240H56Z'/%3E%3C/svg%3E") 0 0 / 56px 240px repeat-y;
    animation: t04-wave-y 9s linear infinite;
}
@keyframes t04-wave-y { to { -webkit-mask-position: 0 240px; mask-position: 0 240px; } }
@keyframes t04-wave-x { to { -webkit-mask-position: 320px 0; mask-position: 320px 0; } }
@keyframes t04-wave-xs { to { -webkit-mask-position: 240px 0; mask-position: 240px 0; } }

/* ---------------------------------------------------------------- the form */
html.st-t04 .t04-form { max-width: 410px; }
html.st-t04 .t04-g { margin: 0; }

/* ---------------------------------------------------------------- tablet: a band on top, the wave along its foot */
@media (max-width: 1023.98px) {
    html.st-t04 .t04-vis { align-items: flex-end; padding: 84px var(--st-gutter) 64px; }
    html.st-t04 .t04-copy { gap: 10px; align-items: center; text-align: center; max-width: 620px; }
    html.st-t04 .t04-headline { font-size: clamp(24px, 4.4vw, 32px); }
    html.st-t04 .t04-rot { font-size: 16px; }
    html.st-t04 .t04-lead { display: none; }
    html.st-t04 .t04-features { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    html.st-t04 .t04-edge {
        top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 42px;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='42' viewBox='0 0 320 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42V21C40 4 80 4 160 21S280 38 320 21V42Z'/%3E%3C/svg%3E") 0 0 / 320px 42px repeat-x;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='42' viewBox='0 0 320 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42V21C40 4 80 4 160 21S280 38 320 21V42Z'/%3E%3C/svg%3E") 0 0 / 320px 42px repeat-x;
        animation-name: t04-wave-x;
    }
    html.st-t04 .t04-ring-1 { width: 440px; height: 440px; }
}
@media (max-width: 639.98px) {
    html.st-t04 .t04-vis { clip-path: none; height: clamp(240px, 34vh, 290px); padding: 70px 16px 46px; }
    html.st-t04 .t04-kicker { display: none; }
    html.st-t04 .t04-headline { font-size: 21px; }
    html.st-t04 .t04-rot { font-size: 14.5px; }
    html.st-t04 .t04-rot-item { padding: 4px 12px; }
    html.st-t04 .t04-edge { height: 30px; -webkit-mask-size: 240px 30px; mask-size: 240px 30px; animation-name: t04-wave-xs; }
}
