/*
 * Movora public pages: home, privacy and terms, the checkout page the apps
 * open, and the shared-trip page. Plain CSS, no build step.
 * Fonts: Fredoka and Onest, SIL Open Font License 1.1 (assets/fonts).
 */

/* ------------------------------------------------------------------ fonts */

/* Fredoka and Onest, SIL Open Font License 1.1 (assets/fonts/*-OFL.txt).
   Latin and Latin Extended only; other scripts (Arabic, Urdu...) use the
   system font, which the browser picks per character. */

@font-face {
    font-family: "Fredoka";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/Fredoka-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fredoka";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/Fredoka-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/Onest-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/Onest-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --brand: #0E6B4F;
    --brand-dark: #0A4F3A;
    --accent: #C6F36B;
    --accent-ink: #0A3A2A;
    --coral: #FF7A59;
    --bg: #F4FBF7;
    --surface: #FFFFFF;
    --line: #E1EDE7;
    --ink: #10291F;
    --ink-2: #35574A;
    --muted: #6B8079;
    --radius: 22px;
    --shadow: 0 1px 2px rgba(16, 41, 31, .04), 0 10px 30px rgba(16, 41, 31, .08);
    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Fredoka", "Onest", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
}

img,
svg {
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
    margin: 0 0 .4em;
}

/* ------------------------------------------------------------------ header and footer */

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 600;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-head nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.site-head nav a {
    color: var(--ink-2);
    font-weight: 500;
    text-decoration: none;
}

.site-head nav a:hover {
    color: var(--brand);
}

.site-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 24px 20px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

/* ------------------------------------------------------------------ home */

.hero {
    position: relative;
    max-width: 1080px;
    margin: 10px auto 0;
    padding: 56px 28px 64px;
    border-radius: 34px;
    background: radial-gradient(120% 120% at 90% 0%, #17855F 0%, #0E6B4F 45%, #0A4F3A 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 44px solid rgba(198, 243, 107, .08);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 56px);
}

.hero p {
    max-width: 560px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
}

.stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 20px;
    border-radius: 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    text-decoration: none;
}

.store svg {
    width: 22px;
    height: 22px;
}

.store small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: .8;
}

.store span {
    line-height: 1.2;
    text-align: left;
}

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1080px;
    margin: -36px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.service {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.service img {
    width: 92px;
    height: 92px;
    flex: none;
}

.service h2 {
    font-size: 24px;
    margin: 0 0 4px;
}

.service p {
    margin: 0;
    color: var(--ink-2);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.feature {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature img {
    width: 56px;
    height: 56px;
}

.feature h3 {
    font-size: 19px;
    margin-top: 10px;
}

.feature p {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
}

.partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.partner {
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #D6F98A, var(--accent));
    color: var(--accent-ink);
}

.partner.dark {
    background: var(--ink);
    color: #fff;
}

.partner h2 {
    font-size: 24px;
}

.partner p {
    margin: 0 0 14px;
}

.partner a {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.partner.dark a {
    background: var(--accent);
    color: var(--accent-ink);
}

/* ------------------------------------------------------------------ text pages */

.page {
    max-width: 780px;
    margin: 20px auto 0;
    padding: 34px clamp(20px, 5vw, 48px);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.prose h1 {
    font-size: 34px;
}

.prose h2 {
    font-size: 23px;
    margin-top: 1.4em;
}

.prose h3 {
    font-size: 19px;
    margin-top: 1.2em;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 1em;
    color: var(--ink-2);
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose blockquote {
    margin: 0 0 1em;
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--bg);
}

.updated {
    color: var(--muted);
    font-size: 14px;
}

/* ------------------------------------------------------------------ checkout page (opened by the apps) */

body.pay {
    display: grid;
    place-items: start center;
    min-height: 100vh;
    padding: 24px 16px;
}

.pay-card {
    width: 100%;
    max-width: 440px;
    padding: 26px 22px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pay-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
}

.pay-card h1 {
    font-size: 26px;
}

.pay-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--bg);
    color: var(--ink-2);
}

.pay-summary strong {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 600;
}

.pay-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.pay-options form {
    margin: 0;
}

.pay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.pay-option:hover {
    border-color: var(--brand);
}

.pay-option span {
    color: var(--muted);
    font-size: 22px;
}

.pay-button {
    display: block;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 18px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 54px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.pay-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.pay-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFF3D6;
    color: #6B4A00;
    font-size: 14px;
}

.pay-foot {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.pay-result {
    text-align: center;
}

.pay-result-mark {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 30px;
    font-weight: 700;
}

.pay-result.is-failed .pay-result-mark {
    background: #FFE4DB;
    color: #D04A2A;
}

/* ------------------------------------------------------------------ shared trip */

.trip {
    max-width: 520px;
    margin: 10px auto 0;
    padding: 0 16px;
}

.trip-card {
    padding: 24px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.trip-kicker {
    margin: 0 0 4px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.trip-route {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.trip-route li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.dot {
    width: 12px;
    height: 12px;
    flex: none;
    margin-top: 6px;
    border-radius: 50%;
}

.dot-from {
    border: 3px solid var(--brand);
}

.dot-to {
    border-radius: 3px;
    background: var(--coral);
}

.trip-driver {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--bg);
}

.trip-driver .plate {
    justify-self: start;
    margin-top: 4px;
    padding: 2px 10px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: #FFF7D6;
    font-weight: 700;
    letter-spacing: .06em;
}

.trip-foot {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 760px) {
    .services,
    .features,
    .partners {
        grid-template-columns: minmax(0, 1fr);
    }

    .services {
        margin-top: -28px;
    }

    .hero {
        margin: 0 12px;
        padding: 44px 20px 56px;
        border-radius: 28px;
    }
}
