/* Source: supplied Joud homepage artwork. This file affects the public homepage only. */

:root {
    color-scheme: light;
    --navy: #153f75;
    --ink: #12335c;
    --teal: #00a88f;
    --green: #00c99e;
    --dark-teal: #00756c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial,"Segoe UI",Tahoma,sans-serif;
    background: #fff;
    color: var(--ink);
}

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

button {
    font: inherit;
}

a,button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible {
    outline: 3px solid var(--dark-teal);
    outline-offset: 5px;
}

button[aria-disabled=true] {
    cursor: default;
}

button[aria-disabled=true]:focus-visible {
    outline-color: var(--navy);
}

.landing {
    position: relative;
    isolation: isolate;
    min-height: 62.5vw;
    max-width: 1920px;
    margin: auto;
    overflow: hidden;
}

.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 2.5vw 4.8vw 0;
    min-height: 19.9vw;
    gap: 24px;
}

.brand-logo {
    display: block;
    width: 14vw;
    max-width: 269px;
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.6vw;
    padding-top: .65vw;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .6em;
    border: 0;
    border-radius: 11px;
    padding: .8em 1.05em;
    font-size: clamp(14px,1.38vw,26px);
    font-weight: 600;
    line-height: 1.15;
    min-height: 2.5em;
    cursor: pointer;
    text-align: center;
    transition: filter .15s,box-shadow .15s;
}

.button:hover:not([aria-disabled=true]) {
    filter: brightness(.94);
}

.button svg {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    stroke-width: 1.1;
}

.button-navy {
    color: #fff;
    background: #12335c;
}

.button-teal {
    background: var(--teal);
    color: #fff;
}

.button-outline {
    border: 2px solid var(--ink);
    background: #fff;
    color: var(--ink);
}

.language-switch {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}

.language-switch a {
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
}

.language-switch [aria-current=page] {
    border-color: var(--teal);
    font-weight: 700;
}

.hero {
    padding: 0 5vw 3.5vw;
}

.hero-copy {
    overflow-wrap: anywhere;
    position: relative;
    z-index: 1;
    width: 45vw;
    max-width: 864px;
}

.eyebrow {
    font-size: clamp(14px,1.48vw,28px);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: .35em;
    white-space: nowrap;
}

.eyebrow::before,.eyebrow::after {
    content: "";
    width: 2.7vw;
    height: 3px;
    background: var(--green);
    flex-shrink: 0;
}

.eyebrow-accent {
    color: var(--teal);
}

h1 {
    font-size: clamp(34px,3.9vw,75px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.018em;
    margin: 2.45vw 0 1.35vw;
}

h1 span {
    display: block;
    color: var(--teal);
    white-space: pre-line;
}

.hero-description {
    font-size: clamp(17px,1.48vw,28px);
    line-height: 1.25;
    margin: 0;
    max-width: 42vw;
}

.hero-actions {
    display: flex;
    align-items: stretch;
    gap: 2vw;
    margin-top: 3vw;
    flex-wrap: wrap;
}

.hero-actions .button {
    font-size: clamp(15px,1.39vw,27px);
    padding: .8em .9em;
}

.benefits {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 3.2vw 0 0;
    max-width: 44vw;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: .8vw;
    flex: 1;
    padding: 0 1vw;
    min-width: 0;
    font-size: clamp(12px,.9vw,17px);
    line-height: 1.2;
}

.benefits li:first-child {
    padding-inline-start: .8vw;
}

.benefits li+li {
    border-inline-start: 2px solid var(--teal);
}

.benefits span {
    white-space: pre-line;
}

.benefits svg {
    color: var(--teal);
    width: 2.5vw;
    height: 2.5vw;
    max-width: 48px;
    max-height: 48px;
    min-width: 25px;
    stroke-width: .8;
}

.hero-art {
    position: absolute;
    inset-inline-end: 0;
    top: 6.875vw;
    width: 52%;
    z-index: 0;
    pointer-events: none;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 5%;
    font-size: 13px;
    color: #516171;
    max-width: 1920px;
    margin: auto;
    border-top: 1px solid #e9efef;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
}

.footer-social-links a:hover {
    color: var(--dark-teal);
    background: #edf9f6;
}

.footer-social-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.powered-by a {
    color: var(--dark-teal);
    font-weight: 700;
}

.powered-by a:hover {
    text-decoration: underline;
}

.walkthrough {
    border: 1px solid #d9e6e6;
    border-radius: 20px;
    padding: 28px;
    color: var(--ink);
    width: min(640px,calc(100% - 32px));
    max-height: 90dvh;
    overflow-y: auto;
}

.walkthrough::backdrop {
    background: rgba(3,13,28,.6);
}

.walkthrough-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: space-between;
}

.walkthrough h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
}

.close-button {
    border: 0;
    background: #edf6f4;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    cursor: pointer;
    color: var(--ink);
}

.close-button svg {
    width: 20px;
    height: 20px;
}

.walkthrough ol {
    padding-inline-start: 25px;
    margin-block: 24px;
}

.walkthrough li {
    padding-inline-start: 6px;
    margin-bottom: 22px;
}

.walkthrough h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.walkthrough p {
    margin: 0;
    color: #4c6074;
    line-height: 1.65;
}

.walkthrough>.button {
    font-size: 16px;
    margin-block-start: 8px;
}

[dir=rtl] body {
    font-family: Tahoma,"Segoe UI",Arial,sans-serif;
}

[dir=rtl] .eyebrow {
    white-space: normal;
    line-height: 1.6;
}

[dir=rtl] h1 {
    font-size: clamp(32px,3.3vw,64px);
    letter-spacing: 0;
    line-height: 1.55;
    margin-top: 1.5vw;
}

[dir=rtl] .hero-description {
    line-height: 1.8;
    font-size: clamp(17px,1.35vw,26px);
}

[dir=rtl] .hero-actions {
    gap: 1vw;
    margin-top: 2vw;
}

[dir=rtl] .benefits {
    margin-top: 2.6vw;
    line-height: 1.65;
}

@media (min-width:1920px) {
    .landing {
        min-height: 1200px;
    }
    .site-header {
        padding: 48px 92px 0;
        min-height: 382px;
    }
    .hero {
        padding: 0 96px 67px;
    }
    .hero-copy {
        width: 864px;
    }
    .hero-art {
        top: 132px;
    }
    .hero-description {
        max-width: 806px;
    }
    .eyebrow::before,.eyebrow::after {
        width: 52px;
    }
    h1 {
        margin: 47px 0 26px;
    }
    .hero-actions {
        gap: 38px;
        margin-top: 58px;
    }
    .benefits {
        margin-top: 61px;
        max-width: 845px;
    }
    .header-actions {
        gap: 30px;
        padding-top: 12px;
    }
}

@media (max-width:1100px) {
    .header-actions {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .language-switch {
        width: 100%;
        justify-content: flex-end;
    }
    .site-header {
        min-height: 21vw;
    }
    .eyebrow {
        white-space: normal;
    }
    .hero-actions {
        gap: 12px;
    }
    .hero-copy {
        width: 44vw;
    }
    .hero-description {
        max-width: 44vw;
    }
    .button {
    max-width: 100%;
    overflow-wrap: anywhere;
        border-radius: 8px;
    }
    .benefits {
        max-width: 44vw;
        flex-wrap: wrap;
        gap: 16px 0;
    }
    .benefits li {
        flex-basis: 50%;
        font-size: 13px;
    }
    .benefits li:nth-child(3) {
        border-inline-start: 0;
    }
}

@media (max-width:760px) {
    .landing {
        min-height: 0;
    }
    .site-header {
        padding: 22px 6%;
        min-height: 0;
        align-items: center;
        gap: 16px;
    }
    .brand-logo {
        width: 120px;
    }
    .header-actions {
        max-width: 240px;
        gap: 9px;
    }
    .header-actions .button {
        font-size: 13px;
        padding: 11px 12px;
        gap: 6px;
        min-height: 40px;
    }
    .language-switch {
        font-size: 12px;
        padding-bottom: 2px;
    }
    .hero {
        display: flex;
        flex-direction: column;
        padding: 38px 6% 0;
    }
    .hero-copy {
        width: 100%;
        max-width: none;
    }
    .eyebrow {
        font-size: 12px;
        line-height: 1.6;
        white-space: normal;
        gap: 5px;
        flex-wrap: wrap;
    }
    .eyebrow::before,.eyebrow::after {
        width: 20px;
        height: 2px;
    }
    h1 {
        font-size: clamp(32px,7.8vw,52px);
        line-height: 1.2;
        margin: 24px 0 20px;
        letter-spacing: -.02em;
    }
    .hero-description {
        font-size: 17px;
        line-height: 1.6;
        max-width: none;
    }
    .hero-actions {
        margin-top: 26px;
        gap: 12px;
    }
    .hero-actions .button {
        font-size: 15px;
        padding: 15px 16px;
    }
    .benefits {
        max-width: none;
        margin-top: 30px;
        margin-bottom: 16px;
        gap: 20px 0;
    }
    .benefits li {
        font-size: 13px;
        gap: 10px;
        padding-inline: 14px;
    }
    .benefits svg {
        width: 32px;
        height: 32px;
    }
    .hero-art {
        position: relative;
        inset: auto;
        width: calc(100% + 12vw);
        margin-inline: -6vw;
        margin-top: 0;
        max-height: none;
    }
    .hero-art img {
        width: 100%;
        height: auto;
    }
    .site-footer {
        padding: 20px 6%;
        font-size: 12px;
        justify-content: center;
        text-align: center;
    }
    [dir=rtl] h1 {
        font-size: clamp(29px,7vw,46px);
        line-height: 1.65;
        margin-top: 20px;
    }
    [dir=rtl] .hero-description {
        font-size: 17px;
        line-height: 1.9;
    }
    [dir=rtl] .hero-actions {
        margin-top: 24px;
        gap: 12px;
    }
    [dir=rtl] .benefits {
        margin-top: 28px;
    }
}

@media (max-width:390px) {
    .eyebrow {
        display: block;
    }
    .eyebrow::before, .eyebrow::after {
        display: none;
    }
    .eyebrow-accent {
        margin-inline-end: .35em;
    }
    .brand-logo {
        width: 96px;
    }
    .site-header {
        gap: 12px;
    }
    .header-actions {
        max-width: 210px;
    }
    .header-actions .button {
        font-size: 12px;
        padding: 10px;
    }
    .hero-actions .button {
        width: 100%;
    }
    .hero {
        padding-top: 28px;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Desktop reference alignment; mobile and RTL keep their own text rhythm. */

.button-teal {
    background-image: url('../images/homepage/joud-homepage-button-fill.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

@media (min-width:761px) and (max-width:1919px) {
    .site-header {
        padding-top: 1.625vw;
    }
    .header-actions {
        padding-top: 1.5vw;
    }
    .header-actions>.button {
        font-size: clamp(14px,1.125vw,22px);
    }
    html:not([dir=rtl]) h1 {
        margin-block-start: 2vw;
        margin-block-end: 1.05vw;
    }
    html:not([dir=rtl]) .hero-description {
        font-family: "Segoe UI",Arial,sans-serif;
    }
    .hero-actions .button {
        padding-block: .7em;
    }
    .benefits {
        margin-top: 2.9vw;
    }
}

@media (min-width:1101px) {
    html:not([dir=rtl]) .hero-description {
        max-width: 45vw;
        white-space: pre-line;
    }
    .hero-actions .trial-button {
        font-size: clamp(15px,1.32vw,25px);
        min-height: 60px;
    }
    .hero-actions .button-outline {
        padding-inline: 1.15em;
    }
}
