:root {
    --journey-green: #1dbea5;
    --journey-green-dark: #128a78;
    --journey-ink: #13201e;
    --journey-muted: #62716e;
    --journey-line: #dbe9e6;
    --journey-soft: #f4fbf9;
    --journey-warm: #fffaf2;
    --journey-white: #ffffff;
    --journey-focus: #0b6f62;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--journey-soft);
    color: var(--journey-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

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

.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-header,
.public-footer,
.hero,
.content-section,
.final-call,
.error-page {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
}

.public-header,
.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-header {
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo-frame {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 108px;
    height: auto;
}

.brand-journey {
    color: var(--journey-ink);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.language-nav {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.language-nav a {
    width: 48px;
    height: 38px;
    padding: 4px;
    border: 1px solid var(--journey-line);
    border-radius: 8px;
    color: var(--journey-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    background: var(--journey-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.language-nav img {
    display: block;
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}

.public-language-trigger {
    display: grid;
    width: 58px;
    height: 42px;
    flex: 0 0 58px;
    place-items: center;
    padding: 4px;
    overflow: hidden;
    border: 2px solid var(--journey-green);
    border-radius: 9px;
    background: var(--journey-white);
    cursor: pointer;
}
.public-language-trigger img { display: block; width: 100%; height: 100%; border-radius: 5px; object-fit: cover; }
.public-language-dialog[hidden] { display: none; }
.public-language-dialog {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgb(5 15 22 / 76%);
}
.public-language-panel {
    width: min(100%, 390px);
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    color: var(--journey-ink);
    box-shadow: 0 22px 70px rgb(0 0 0 / 42%);
}
.public-language-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.public-language-panel h2 { margin: 0; font-size: 1.25rem; }
.public-language-panel > header button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--journey-soft);
    color: var(--journey-ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.public-language-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.public-language-options a {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 4px;
    border: 1px solid var(--journey-line);
    border-radius: 9px;
    background: #fff;
}
.public-language-options img { display: block; width: 100%; aspect-ratio: 10 / 7; border-radius: 5px; object-fit: cover; }
body.jpm-language-open { overflow: hidden; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-nav a[aria-current="true"] {
    border-color: var(--journey-green);
    color: var(--journey-green-dark);
    background: var(--journey-soft);
}

.public-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.hero {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: 34px 0 38px;
}

.hero-copy,
.journey-demo-card,
.steps-grid > article,
.messenger-card {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--journey-green-dark);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(2.35rem, 13vw, 5rem);
    line-height: 0.98;
}

.slogan {
    margin-bottom: 18px;
    color: var(--journey-green-dark);
    font-size: clamp(1.22rem, 5vw, 2rem);
    font-weight: 800;
}

.intro,
.section-heading p,
.final-call p,
.error-page p {
    color: var(--journey-muted);
    font-size: 1.04rem;
}

.intro {
    max-width: 650px;
    margin-bottom: 24px;
}

.hero-actions {
    display: grid;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    background: var(--journey-green);
    color: var(--journey-white);
}

.button-secondary {
    border-color: var(--journey-line);
    background: var(--journey-white);
    color: var(--journey-ink);
}

.button-play {
    border-color: #13201e;
    background: #13201e;
    color: #ffffff;
}

.landing-qr {
    width: fit-content;
    margin: 26px 0 0;
    padding: 12px;
    border: 1px solid var(--journey-line);
    border-radius: 12px;
    background: var(--journey-white);
    text-align: center;
}

.landing-qr img { display: block; width: 180px; height: 180px; }
.landing-qr figcaption { max-width: 180px; margin-top: 8px; color: var(--journey-muted); font-size: .8rem; }

.hero-visual {
    min-width: 0;
}

.hero-visual .landing-qr {
    margin-inline: auto 0;
}

.journey-landing-mobile .hero { min-height: calc(100vh - 190px); min-height: calc(100dvh - 190px); align-content: center; padding-block: 24px; }
.journey-landing-mobile .landing-long-form,
.journey-landing-mobile .landing-qr { display: none; }
.journey-landing-mobile .hero-copy { width: min(100%, 540px); margin-inline: auto; text-align: center; }
.journey-landing-mobile .hero-actions { max-width: 420px; margin-inline: auto; }
.journey-landing-mobile .intro { margin-inline: auto; }

.journey-demo-card,
.steps-grid article,
.messenger-card,
.final-call,
.error-page {
    border: 1px solid var(--journey-line);
    border-radius: 8px;
    background: var(--journey-white);
}

.journey-demo-card {
    padding: 18px;
}

.demo-card-header,
.route-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--journey-muted);
    font-size: 0.84rem;
}

.demo-status {
    color: var(--journey-green-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.demo-message {
    margin: 22px 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.route-line {
    display: grid;
    grid-template-columns: 18px 1fr 18px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.route-point {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 4px solid var(--journey-green);
    background: var(--journey-white);
}

.route-destination {
    border-color: var(--journey-ink);
}

.route-track {
    height: 4px;
    border-radius: 999px;
    background: var(--journey-line);
    overflow: hidden;
}

.route-track span {
    display: block;
    width: 58%;
    height: 100%;
    border-radius: inherit;
    background: var(--journey-green);
}

.content-section,
.final-call,
.error-page {
    margin-top: 22px;
}

.content-section {
    padding: 28px 0 10px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 18px;
}

.section-heading h2,
.final-call h2,
.error-page h1 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 7vw, 2.6rem);
    line-height: 1.08;
}

.steps-grid,
.messenger-grid {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.steps-grid article,
.messenger-card {
    padding: 16px;
}

.journey-landing-desktop .steps-grid article {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
}

.journey-landing-desktop .steps-grid article > span {
    grid-column: 1;
}

.journey-landing-desktop .steps-grid article > h3 {
    grid-column: 2;
}

.journey-landing-desktop .steps-grid article > p {
    grid-column: 1 / -1;
}

.steps-grid span {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    background: var(--journey-green);
    color: var(--journey-white);
    font-weight: 900;
}

.journey-landing-desktop .steps-grid span,
.journey-landing-desktop .steps-grid h3 {
    margin-bottom: 10px;
}

.steps-grid h3,
.messenger-card h3 {
    margin-bottom: 8px;
    font-size: 1.06rem;
}

.steps-grid p,
.messenger-card p {
    margin-bottom: 0;
    color: var(--journey-muted);
}

.messenger-card {
    display: grid;
    gap: 8px;
    align-content: start;
    overflow: hidden;
}

.messenger-icon {
    display: block;
    width: clamp(88px, 24vw, 110px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.journey-landing-desktop .messenger-card .messenger-icon {
    margin-inline: auto;
}

.journey-landing-desktop .messenger-card h3 {
    text-align: center;
}

.journey-landing-desktop .messenger-card .messenger-speed {
    text-align: center;
}

.messenger-card h3,
.messenger-card p,
.messenger-speed {
    overflow-wrap: anywhere;
}

.messenger-speed {
    color: var(--journey-green-dark);
    font-size: 0.86rem;
    font-weight: 850;
}

.privacy-section {
    padding-bottom: 28px;
}

.journey-landing-desktop .privacy-section {
    padding: 22px;
    border: 1px solid var(--journey-line);
    border-radius: 8px;
    background: var(--journey-white);
}

.journey-landing-desktop .privacy-section .section-heading {
    margin-bottom: 0;
}

.final-call,
.error-page {
    padding: 22px;
    margin-bottom: 42px;
}

.public-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 24px 0;
    border-top: 1px solid var(--journey-line);
    color: var(--journey-muted);
    font-size: 0.92rem;
    text-align: center;
}

.public-footer a {
    color: var(--journey-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.journey-landing-mobile .public-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

@media (min-width: 680px) {
    .hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

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

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

    .messenger-icon {
        width: 120px;
    }
}

@media (min-width: 920px) {
    .public-header {
        padding-top: 24px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
        padding: 70px 0 54px;
    }

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

@media (min-width: 1180px) {
    .journey-landing-desktop .hero {
        position: relative;
        align-items: start;
        padding-bottom: 28px;
    }

    .journey-landing-desktop .hero-visual .landing-qr {
        position: absolute;
        top: calc(100% - 130px);
        right: 88px;
        z-index: 1;
        margin: 0;
    }

    .journey-landing-desktop #how-it-works {
        min-height: 245px;
        padding-right: 250px;
    }

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

@media (max-width: 620px) {
    .public-header,
    .public-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .language-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .journey-landing-mobile .public-header {
        align-items: center;
        flex-direction: row;
        padding-block: 18px 10px;
    }
}

@media (max-width: 360px) {
    .public-language-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
/* The classic WhatsGo modal is shared with the official app WebView. */
.jpm-classic-landing-host{position:relative;z-index:1000}.hero-actions button.button{font:inherit;cursor:pointer}.journey-public-mobile .jpm-quick-dialog{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
