/*
 * Public website (landing page, delete account) on top of Bootstrap 5.3. Plain CSS, no build step.
 * Brand (CLAUDE.md rule 5A): green, Barlow / Barlow Condensed, Noto Sans Devanagari for Hindi (public/css/fonts.css).
 * Every colour is a variable below; light and dark use the same names. The Admin Panel has its own admin.css.
 */

/* ---------- Light ---------- */
:root,
[data-bs-theme="light"] {
    --site-bg: #f6f5ef;            /* warm off-white, easy on the eyes */
    --site-bg-alt: #eef3ea;        /* every other section */
    --site-surface: #ffffff;
    --site-border: #e2e5db;
    --site-text: #16221a;
    --site-muted: #5b695f;
    --site-green: #1e9a4b;         /* brand */
    --site-green-hover: #177f3d;
    --site-green-ink: #12703a;     /* green text on light backgrounds */
    --site-green-soft: #ddf1e3;
    --site-amber: #e8961c;
    --site-amber-soft: #fcefd4;
    --site-blue-soft: #e0ecfb;
    --site-on-green: #ffffff;
    --site-band: linear-gradient(135deg, #1e9a4b 0%, #157a3b 60%, #0e5a2e 100%);
    --site-hero-glow: radial-gradient(55% 60% at 85% 35%, rgba(30, 154, 75, 0.16), transparent 70%),
        radial-gradient(40% 45% at 5% 10%, rgba(232, 150, 28, 0.12), transparent 70%);
    --site-shadow: 0 1px 2px rgba(22, 34, 26, 0.05), 0 12px 32px rgba(22, 34, 26, 0.08);
    --site-phone: #101612;

    /* Phone pictures: the Customer / Partner App colours (customer/docs/DESIGN.md) */
    --ph-bg: #f2f2f3;
    --ph-surface: #ffffff;
    --ph-card: #ffffff;
    --ph-border: #e1e2e4;
    --ph-text: #1d1f20;
    --ph-muted: #6b6f72;
    --ph-accent: #1e9a4b;
    --ph-head-1: #1e9a4b;
    --ph-head-2: #13703a;
    --ph-accent-ink: #14703a;
    --ph-on-accent: #f5fff8;
    --ph-tint: #e4f5ea;
    --ph-highlight: #ffd23f;
    --ph-highlight-ink: #3a2c00;
    --map-land: #ecefe6;
    --map-road: #ffffff;
    --map-park: #cfe8c9;

    /* Colourful tiles: saturation / lightness used with each tile's hue */
    --tile-s1: 75%;
    --tile-l1: 95%;
    --tile-s2: 60%;
    --tile-l2: 86%;
    --tile-ink-s: 55%;
    --tile-ink-l: 30%;

    --bs-body-bg: var(--site-bg);
    --bs-body-color: var(--site-text);
    --bs-border-color: var(--site-border);
    --bs-secondary-color: var(--site-muted);
    --bs-link-color: var(--site-green-ink);
    --bs-link-hover-color: var(--site-green-hover);
    --bs-link-color-rgb: 18, 112, 58;
    --bs-link-hover-color-rgb: 23, 127, 61;
}

/* ---------- Dark ---------- */
[data-bs-theme="dark"] {
    --site-bg: #0e1410;
    --site-bg-alt: #121b15;
    --site-surface: #17211a;
    --site-border: #25352a;
    --site-text: #e5eee7;
    --site-muted: #9aac9f;
    --site-green: #34c26b;
    --site-green-hover: #4fd081;
    --site-green-ink: #5fd38b;
    --site-green-soft: #163823;
    --site-amber: #f3b34d;
    --site-amber-soft: #3a2d12;
    --site-blue-soft: #172a40;
    --site-on-green: #062712;
    --site-band: linear-gradient(135deg, #176e38 0%, #115a2d 60%, #0b3d1f 100%);
    --site-hero-glow: radial-gradient(55% 60% at 85% 35%, rgba(52, 194, 107, 0.14), transparent 70%),
        radial-gradient(40% 45% at 5% 10%, rgba(243, 179, 77, 0.08), transparent 70%);
    --site-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --site-phone: #050806;

    --ph-bg: #0d0f12;
    --ph-surface: #1a1d22;
    --ph-card: #14171b;
    --ph-border: #2a2e34;
    --ph-text: #eef0f3;
    --ph-muted: #9ba1a8;
    --ph-accent: #3ccf74;
    /* white text sits on the header, so it stays a deeper green in dark mode */
    --ph-head-1: #1d7a41;
    --ph-head-2: #11512b;
    --ph-accent-ink: #9df0bb;
    --ph-on-accent: #0d2215;
    --ph-tint: #15301f;
    --ph-highlight: #ffd23f;
    --ph-highlight-ink: #2b2000;
    --map-land: #161a1f;
    --map-road: #272c34;
    --map-park: #15281d;

    --tile-s1: 30%;
    --tile-l1: 20%;
    --tile-s2: 35%;
    --tile-l2: 14%;
    --tile-ink-s: 60%;
    --tile-ink-l: 76%;

    --bs-body-bg: var(--site-bg);
    --bs-body-color: var(--site-text);
    --bs-border-color: var(--site-border);
    --bs-secondary-color: var(--site-muted);
    --bs-link-color: var(--site-green-ink);
    --bs-link-hover-color: var(--site-green-hover);
    --bs-link-color-rgb: 95, 211, 139;
    --bs-link-hover-color-rgb: 79, 208, 129;
}

/* ---------- Base ---------- */
body.site {
    background: var(--site-bg);
    color: var(--site-text);
    font-family: 'Barlow', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site h1,
.site h2,
.site h3,
.site .section-title {
    font-family: 'Barlow Condensed', 'Barlow', 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.site [lang="hi"] {
    font-family: 'Noto Sans Devanagari', 'Barlow', sans-serif;
}

.site-muted {
    color: var(--site-muted);
}

.site-skip {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--site-green);
    color: var(--site-on-green);
}

.site .icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.site :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-green) 55%, transparent);
    outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn-site,
.btn-site-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    padding: 0.55rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
}

.btn-site {
    --bs-btn-bg: var(--site-green);
    --bs-btn-border-color: var(--site-green);
    --bs-btn-color: var(--site-on-green);
    --bs-btn-hover-bg: var(--site-green-hover);
    --bs-btn-hover-border-color: var(--site-green-hover);
    --bs-btn-hover-color: var(--site-on-green);
    --bs-btn-active-bg: var(--site-green-hover);
    --bs-btn-active-border-color: var(--site-green-hover);
    --bs-btn-active-color: var(--site-on-green);
    --bs-btn-disabled-bg: var(--site-green);
    --bs-btn-disabled-border-color: var(--site-green);
    --bs-btn-disabled-color: var(--site-on-green);
}

.btn-site-ghost {
    --bs-btn-color: var(--site-text);
    --bs-btn-border-color: var(--site-border);
    --bs-btn-bg: var(--site-surface);
    --bs-btn-hover-bg: var(--site-green-soft);
    --bs-btn-hover-border-color: var(--site-green);
    --bs-btn-hover-color: var(--site-green-ink);
    --bs-btn-active-bg: var(--site-green-soft);
    --bs-btn-active-color: var(--site-green-ink);
}

.btn-danger {
    min-height: 2.9rem;
    border-radius: 12px;
    font-weight: 600;
}

.site-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface);
    color: var(--site-text);
}

.site-icon-btn:hover {
    border-color: var(--site-green);
    color: var(--site-green-ink);
}

/* Google Play button (our own, not the official badge) */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    padding: 0.45rem 1.15rem 0.45rem 0.95rem;
    border-radius: 14px;
    background: var(--site-text);
    color: var(--site-bg);
    text-decoration: none;
    line-height: 1.15;
    font-weight: 700;
}

.store-btn .icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.store-btn small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.8;
}

.store-btn:hover {
    color: var(--site-bg);
    transform: translateY(-1px);
}

.store-btn-soon {
    cursor: default;
    opacity: 0.88;
}

.store-btn-soon:hover {
    transform: none;
}

.store-btn-light {
    background: #ffffff;
    color: #0e3d20;
}

.store-btn-light:hover {
    color: #0e3d20;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--site-bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--site-border) 70%, transparent);
}

/* 16px side gutter on phones; the navbar's own padding would otherwise remove it from the header */
.site .container {
    --bs-gutter-x: 2rem;
}

.site-header .navbar {
    padding: 0.7rem calc(var(--bs-gutter-x) * 0.5);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--site-text);
    text-decoration: none;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.site-logo:hover {
    color: var(--site-text);
}

.site-logo img {
    border-radius: 10px;
}

.site-header .nav-link {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    color: var(--site-muted);
    font-weight: 500;
}

.site-header .nav-link:hover {
    color: var(--site-green-ink);
}

.site-header .nav-link.active {
    color: var(--site-green-ink);
    font-weight: 600;
}

@media (min-width: 992px) {
    .site-header .nav-link.active {
        box-shadow: inset 0 -2px 0 var(--site-green);
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        order: 3;
        width: 100%;
    }

    .site-header .navbar-nav {
        padding: 0.5rem 0;
    }
}

/* ---------- Icons (x-site-icon: soft fill + line, both currentColor) ---------- */
.si {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.si-fill {
    fill: currentColor;
    opacity: 0.18;
}

.si-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.si-inline {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
}

/* Colourful tile (hue from style="--h: ..."), like the app's category tiles */
.hue-tile {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg,
        hsl(var(--h) var(--tile-s1) var(--tile-l1)),
        hsl(var(--h) var(--tile-s2) var(--tile-l2)));
    color: hsl(var(--h) var(--tile-ink-s) var(--tile-ink-l));
}

/* ---------- Reveal on scroll (site.js adds .is-visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: calc(var(--i, 0) * 90ms);
    }

    .js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        var(--site-hero-glow),
        radial-gradient(color-mix(in srgb, var(--site-green) 14%, transparent) 1.2px, transparent 1.3px) 0 0 / 26px 26px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.site-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--site-green-soft);
    color: var(--site-green-ink);
    font-size: 0.88rem;
    font-weight: 600;
}

.site-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--site-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-green) 25%, transparent);
}

.hero-title {
    margin: 1.25rem 0 0.75rem;
    font-size: clamp(2.8rem, 6.2vw, 5rem);
    line-height: 0.98;
}

.hero-hi {
    color: var(--site-green-ink);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
}

.hero-text {
    max-width: 36rem;
    color: var(--site-muted);
    font-size: 1.2rem;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--site-muted);
    font-weight: 500;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-trust .si {
    color: var(--site-green-ink);
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    overflow: hidden; /* the spinning ring's box grows while it turns */
    padding: 4rem 0 3.5rem;
    background: var(--site-hero-glow);
}

.page-title {
    margin: 0.4rem 0 0.6rem;
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    line-height: 1;
}

.page-hindi {
    color: var(--site-green-ink);
    font-size: 1.2rem;
    font-weight: 600;
}

.page-intro {
    max-width: 38rem;
    color: var(--site-muted);
    font-size: 1.18rem;
}

.text-center .page-intro {
    margin: 0 auto;
}

/* ---------- Picture area next to a hero ---------- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(460px, 92%);
    aspect-ratio: 1;
    border: 2px dashed color-mix(in srgb, var(--site-green) 30%, transparent);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--site-green) 12%, transparent) 0 55%, transparent 56%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ---------- Phone pictures ---------- */
.phone {
    position: relative;
    width: 300px;
    height: 640px;
    flex-shrink: 0;
    padding: 10px;
    border-radius: 46px;
    background: linear-gradient(145deg, #2b332e, #0b0f0c 60%);
    text-align: left; /* the screen is laid out like the app, whatever the card around it does */
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
        0 30px 60px -20px rgba(10, 40, 22, 0.45),
        0 12px 24px -12px rgba(0, 0, 0, 0.35);
}

/* side buttons */
.phone::before,
.phone::after {
    content: '';
    position: absolute;
    right: -3px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #1a201c;
}

.phone::before {
    top: 120px;
    height: 54px;
}

.phone::after {
    top: 196px;
    height: 34px;
}

.phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 37px;
    background: var(--ph-bg);
    color: var(--ph-text);
    font-family: 'Barlow', sans-serif;
    font-size: 11.5px;
    line-height: 1.3;
}

.phone-screen b {
    font-weight: 700;
}

.phone-screen .si {
    width: 1.35em;
    height: 1.35em;
}

.ph-status {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    padding: 4px 20px 0;
    font-size: 11px;
    font-weight: 700;
}

.ph-status-light {
    color: #ffffff;
}

.ph-camera {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #050706;
    transform: translateX(-50%);
}

.ph-status-icons {
    width: 46px;
    height: 11px;
}

/* Customer app: green header */
.ph-head {
    padding: 0 14px 14px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(165deg, var(--ph-head-1), var(--ph-head-2));
    color: #ffffff;
}

.ph-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.ph-pill {
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--ph-highlight);
    color: var(--ph-highlight-ink);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ph-round {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.ph-loc {
    margin-top: 8px;
}

.ph-loc small {
    display: block;
    opacity: 0.85;
}

.ph-loc strong {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13.5px;
}

.ph-loc .icon {
    width: 12px;
    height: 12px;
}

.ph-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 99px;
    background: #ffffff;
    color: #5b665f;
    font-size: 11px;
}

.ph-body {
    padding: 12px 12px 0;
}

.ph-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, hsl(var(--h) var(--tile-s1) var(--tile-l1)), hsl(var(--h) var(--tile-s2) var(--tile-l2)));
    color: hsl(var(--h) var(--tile-ink-s) var(--tile-ink-l));
}

.ph-banner small {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}

.ph-banner b {
    display: block;
    margin: 2px 0 7px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    line-height: 1.1;
}

.ph-banner-btn {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--ph-accent);
    color: var(--ph-on-accent);
    font-size: 10px;
    font-weight: 700;
}

.phone-screen .ph-banner-art {
    width: 54px;
    height: 54px;
}

.ph-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 12px 2px 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
}

.ph-title span {
    color: var(--ph-accent-ink);
    font-family: 'Barlow', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
}

.ph-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.ph-cat .hue-tile {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
}

.phone-screen .ph-cat .si {
    width: 26px;
    height: 26px;
}

.ph-cat small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
}

.ph-shop {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    padding: 8px;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    background: var(--ph-card);
}

.ph-shop .hue-tile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.ph-shop-text {
    flex: 1;
    min-width: 0;
}

.ph-shop-text b,
.ph-shop-text small {
    display: block;
}

.ph-shop-text small {
    color: var(--ph-muted);
    font-size: 10px;
}

.ph-open {
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--ph-tint);
    color: var(--ph-accent-ink);
    font-size: 9.5px;
    font-weight: 700;
}

.ph-cartbar {
    position: absolute;
    right: 10px;
    bottom: 62px;
    left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ph-accent);
    color: var(--ph-on-accent);
    font-size: 11.5px;
    font-weight: 600;
    box-shadow: 0 10px 20px -8px rgba(14, 90, 46, 0.55);
}

.ph-cartbar span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ph-cartbar .icon {
    width: 13px;
    height: 13px;
}

.ph-tabs {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    height: 56px;
    padding: 7px 4px 12px;
    border-top: 1px solid var(--ph-border);
    background: var(--ph-surface);
    color: var(--ph-muted);
    font-size: 9.5px;
}

.ph-tabs span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.phone-screen .ph-tabs .si {
    width: 19px;
    height: 19px;
}

.ph-tabs .active {
    color: var(--ph-accent-ink);
    font-weight: 700;
}

/* Partner app */
.ph-app-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 10px;
}

.ph-app-bar img {
    border-radius: 8px;
}

.ph-app-bar span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.ph-app-bar b,
.ph-app-bar small {
    display: block;
}

.ph-app-bar b {
    font-size: 12.5px;
}

.ph-app-bar small {
    color: var(--ph-muted);
    font-size: 10px;
}

.ph-switch {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 99px;
    background: var(--ph-border);
}

.ph-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    transition: left 0.3s;
}

.ph-switch.is-on {
    background: var(--ph-accent);
}

.ph-switch.is-on::after {
    left: 17px;
}

.ph-today {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ph-today div {
    padding: 9px 11px;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--ph-head-1), var(--ph-head-2));
    color: #ffffff;
}

.ph-today small {
    display: block;
    font-size: 10px;
    opacity: 0.85;
}

.ph-today b {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px;
}

/* Delivery Person: today's numbers under the task, quieter than the shop's green tiles */
.ph-today-soft {
    margin-top: 12px;
}

.ph-today-soft div {
    border: 1px solid var(--ph-border);
    background: var(--ph-card);
    color: var(--ph-text);
}

.ph-today-soft small {
    color: var(--ph-muted);
}

.ph-new {
    margin-top: 10px;
    padding: 10px;
    border: 1.5px solid var(--ph-accent);
    border-radius: 14px;
    background: var(--ph-card);
}

.ph-new-head {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ph-new-head b {
    font-size: 12px;
}

.ph-new-head small {
    margin-left: auto;
    color: var(--ph-muted);
    font-size: 9.5px;
}

.ph-new-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ph-accent);
}

.ph-items {
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

.ph-items li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed var(--ph-border);
    font-size: 10.5px;
}

.ph-new-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    color: var(--ph-muted);
    font-size: 10px;
}

.ph-tag {
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--ph-tint);
    color: var(--ph-accent-ink);
    font-weight: 700;
}

.ph-tag.amber {
    background: var(--ph-highlight);
    color: var(--ph-highlight-ink);
}

.ph-new-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    margin-top: 9px;
}

.ph-btn,
.ph-btn-light {
    display: block;
    padding: 7px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.ph-btn {
    background: var(--ph-accent);
    color: var(--ph-on-accent);
}

.ph-btn-light {
    background: var(--ph-surface);
    color: var(--ph-text);
}

.ph-order {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    background: var(--ph-card);
    font-size: 10.5px;
}

.ph-order span:nth-child(2) {
    flex: 1;
    color: var(--ph-muted);
}

.ph-status-pill {
    padding: 2px 7px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--ph-text) 8%, transparent);
    color: var(--ph-muted);
    font-size: 9.5px;
    font-weight: 700;
}

.ph-status-pill.amber {
    background: var(--ph-highlight);
    color: var(--ph-highlight-ink);
}

.ph-status-pill.green {
    background: var(--ph-tint);
    color: var(--ph-accent-ink);
}

/* Partner App: low-stock reminder under the orders */
.ph-stock {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ph-highlight) 18%, var(--ph-card));
    color: var(--ph-text);
    font-size: 10.5px;
}

.ph-stock .si {
    width: 20px;
    height: 20px;
    color: #b07800;
}

.ph-stock b,
.ph-stock small {
    display: block;
}

.ph-stock small {
    color: var(--ph-muted);
    font-size: 9.5px;
}

.ph-stock .ph-link {
    margin-left: auto;
    color: var(--ph-accent-ink);
    font-weight: 700;
}

/* Partner app: Delivery Person map and code */
.ph-map {
    height: 150px;
    margin: 0 12px;
    overflow: hidden;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
}

.ph-map svg {
    display: block;
    width: 100%;
    height: 100%;
}

.map-land {
    fill: var(--map-land);
}

.map-road {
    fill: none;
    stroke: var(--map-road);
    stroke-width: 12;
}

.map-road.thin {
    stroke-width: 6;
}

.map-park {
    fill: var(--map-park);
}

.map-route {
    fill: none;
    stroke: var(--ph-accent);
    stroke-width: 4;
    stroke-dasharray: 8 6;
    stroke-linecap: round;
}

.map-pin circle {
    fill: var(--ph-accent);
    stroke: #ffffff;
    stroke-width: 2.5;
}

.map-pin.home circle {
    fill: #e8961c;
}

.map-pin path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-rider {
    transform: translate(42px, 112px);
}

.map-rider circle {
    fill: #ffffff;
    stroke: var(--ph-accent);
    stroke-width: 3;
}

.map-rider .map-rider-dot {
    fill: var(--ph-accent);
    stroke: none;
}

.ph-task {
    padding: 10px;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    background: var(--ph-card);
}

.ph-task-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.ph-task-row small,
.ph-task-row b {
    display: block;
}

.ph-task-row small {
    color: var(--ph-muted);
    font-size: 9.5px;
}

.ph-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--ph-accent);
}

.ph-dot.home {
    background: #e8961c;
}

.ph-code {
    margin-top: 10px;
    text-align: center;
}

.ph-code small {
    color: var(--ph-muted);
    font-size: 10px;
}

.ph-code-boxes {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 8px 0 10px;
}

.ph-code-boxes span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 42px;
    border: 1.5px solid var(--ph-accent);
    border-radius: 9px;
    background: var(--ph-tint);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.ph-btn-block {
    padding: 9px;
}

/* ---------- Floating cards around the home phone ---------- */
.float-card,
.float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--site-border);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
    line-height: 1.25;
}

.float-card {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.92rem;
}

.float-card b,
.float-card small {
    display: block;
}

.float-card small {
    color: var(--site-muted);
}

.float-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--site-green-soft);
    color: var(--site-green-ink);
}

.float-icon .si {
    width: 1.5rem;
    height: 1.5rem;
}

.float-icon.amber {
    background: var(--site-amber-soft);
    color: var(--site-amber);
}

.float-progress {
    display: block;
    width: 150px;
    height: 5px;
    margin-top: 0.45rem;
    overflow: hidden;
    border-radius: 99px;
    background: var(--site-green-soft);
}

.float-progress span {
    display: block;
    width: 70%;
    height: 100%;
    border-radius: inherit;
    background: var(--site-green);
}

.float-card .float-code {
    color: var(--site-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    letter-spacing: 0.25em;
}

.float-chip {
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 99px;
    color: var(--site-green-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Desktop: cards sit on the free space left of the phone */
.float-card-route {
    top: 15%;
    left: 0;
}

.float-card-code {
    bottom: 20%;
    left: 3%;
}

.float-chip {
    top: 47%;
    right: 0;
}

.float-chip-left {
    top: 24%;
    right: auto;
    left: 2%;
}

/* Wide screens: the home phone moves right and the cards line up on its left edge, so they hide little of the screen */
@media (min-width: 1200px) {
    .hero-visual-main {
        --phone-gap: 40px;
        justify-content: flex-end;
        padding-right: var(--phone-gap);
    }

    .hero-visual-main .hero-ring {
        left: calc(100% - var(--phone-gap) - 150px);
    }

    .hero-visual-main .float-card-route {
        top: 12%;
        right: calc(var(--phone-gap) + 300px - 26px);
        left: auto;
    }

    .hero-visual-main .float-chip {
        top: 49%;
        right: calc(var(--phone-gap) + 300px - 16px);
    }

    .hero-visual-main .float-card-code {
        bottom: 25%;
        right: calc(var(--phone-gap) + 300px - 22px);
        left: auto;
    }
}

@media (max-width: 991.98px) {
    .float-card,
    .float-chip {
        display: none;
    }
}

@media (max-width: 380px) {
    .hero-visual .phone {
        zoom: 0.88;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
}

.section-tight {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--site-bg-alt);
}

/* Phones: less empty space between blocks */
@media (max-width: 767.98px) {
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .page-hero {
        padding: 2.5rem 0 2.75rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-head {
        margin-bottom: 2rem;
    }
}

.section-head {
    max-width: 40rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.eyebrow {
    margin-bottom: 0.6rem;
    color: var(--site-green-ink);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.section-sub {
    color: var(--site-muted);
    font-size: 1.1rem;
}

.site-narrow {
    max-width: 860px;
}

/* Categories */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

@media (min-width: 576px) {
    .cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .cat-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 1.15rem 0.6rem 1rem;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: var(--site-surface);
    text-align: center;
    line-height: 1.25;
}

.cat-tile {
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 0.55rem;
    border-radius: 16px;
}

.cat-tile .si {
    width: 1.9rem;
    height: 1.9rem;
}

.cat small {
    color: var(--site-muted);
}

/* Steps */
.steps {
    position: relative;
    display: grid;
    gap: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .steps::before {
        content: '';
        position: absolute;
        top: 40px;
        right: 16%;
        left: 16%;
        border-top: 2px dashed color-mix(in srgb, var(--site-green) 35%, transparent);
    }

    .steps-4::before {
        display: none;
    }
}

@media (min-width: 992px) {
    .steps-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps-4::before {
        display: block;
        right: 12%;
        left: 12%;
    }
}

.step {
    position: relative;
    padding: 0 0.75rem;
    text-align: center;
}

.step-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.1rem;
    border: 1px solid var(--site-border);
    border-radius: 50%;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
    color: var(--site-green-ink);
}

.step-icon .si {
    width: 2.1rem;
    height: 2.1rem;
}

.step-no {
    position: absolute;
    top: -2px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--site-green);
    color: var(--site-on-green);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 0.4rem;
    font-size: 1.55rem;
}

.step p {
    margin-bottom: 0.35rem;
    color: var(--site-muted);
}

.step small {
    color: var(--site-green-ink);
    font-weight: 600;
}

/* Join cards (home) */
.join-card {
    display: block;
    height: 100%;
    padding: 2.25rem;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
    color: var(--site-text);
    text-decoration: none;
}

.join-card:hover {
    border-color: var(--site-green);
    color: var(--site-text);
}

.join-card h2 {
    margin-bottom: 0.3rem;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.join-card p:not(.eyebrow):not(.section-sub) {
    color: var(--site-muted);
}

.join-icon,
.feature-icon,
.area-icon,
.doc-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 15px;
    background: var(--site-green-soft);
    color: var(--site-green-ink);
}

.join-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.1rem;
}

.join-icon .si,
.feature-icon .si,
.area-icon .si {
    width: 1.75rem;
    height: 1.75rem;
}

.join-card-amber .join-icon {
    background: var(--site-amber-soft);
    color: var(--site-amber);
}

.join-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--site-green-ink);
    font-weight: 700;
}

/* Features */
.feature-grid {
    display: grid;
    gap: 1.75rem 2rem;
}

@media (min-width: 576px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

.feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 3.2rem;
    height: 3.2rem;
}

.feature h3,
.info-card h3 {
    margin: 0.15rem 0 0.3rem;
    font-size: 1.4rem;
}

.feature p,
.info-card p {
    margin: 0;
    color: var(--site-muted);
}

.feature-card {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.6rem;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: var(--site-surface);
}

.info-card {
    height: 100%;
    padding: 2rem;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: var(--site-surface);
}

.info-card .feature-icon {
    margin-bottom: 0.75rem;
}

/* Timeline (how it works) */
.timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 2.5rem;
    left: 31px;
    border-left: 2px dashed color-mix(in srgb, var(--site-green) 35%, transparent);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

.timeline-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid var(--site-green);
    border-radius: 50%;
    background: var(--site-surface);
    color: var(--site-green-ink);
}

.timeline-icon .si {
    width: 1.9rem;
    height: 1.9rem;
}

.timeline-no {
    color: var(--site-green-ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-body h2 {
    margin: 0.15rem 0 0.2rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.timeline-hi {
    margin-bottom: 0.45rem;
    color: var(--site-green-ink);
    font-weight: 600;
}

.timeline-body p:last-child {
    color: var(--site-muted);
}

/* Documents */
.doc-grid {
    display: grid;
    gap: 0.9rem;
}

@media (min-width: 768px) {
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-surface);
}

.doc-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
}

.doc-icon .si {
    width: 1.5rem;
    height: 1.5rem;
}

.doc-card b,
.doc-card small {
    display: block;
}

.doc-card small {
    color: var(--site-muted);
    line-height: 1.35;
}

.doc-badge {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    background: var(--site-green-soft);
    color: var(--site-green-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.doc-badge.is-optional {
    background: var(--site-bg-alt);
    color: var(--site-muted);
}

/* Contact card */
.contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.contact-card h2 {
    margin-bottom: 0.25rem;
    font-size: 1.7rem;
}

.contact-card > div:nth-child(2) {
    flex: 1 1 260px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* FAQ page */
.faq-group {
    margin-bottom: 2.25rem;
}

.faq-title {
    margin-bottom: 0.9rem;
    font-size: 1.6rem;
}

/* App cards (get the app) */
.app-card {
    display: grid;
    grid-template-columns: 222px 1fr;
    align-items: center;
    gap: 1.75rem;
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--site-border);
    border-radius: 26px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.app-card-phone {
    width: 222px;
    height: 474px;
}

.app-card-phone .phone {
    transform: scale(0.74);
    transform-origin: top left;
}

.app-card h2 {
    font-size: 2rem;
}

@media (max-width: 575.98px) {
    .app-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .app-card .tick-list {
        text-align: left;
    }
}

.tick-list {
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.tick-list li {
    position: relative;
    margin-bottom: 0.6rem;
    padding-left: 1.9rem;
}

.tick-list li::before {
    content: '';
    position: absolute;
    top: 0.3rem;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--site-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e9a4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* Not in your area yet */
.area-band {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 3.5rem;
    padding: 1.5rem 1.75rem;
    border: 1px dashed color-mix(in srgb, var(--site-green) 45%, var(--site-border));
    border-radius: 20px;
    background: color-mix(in srgb, var(--site-green-soft) 55%, var(--site-surface));
}

.area-icon {
    width: 3.2rem;
    height: 3.2rem;
}

.area-band h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

@media (max-width: 575.98px) {
    .area-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .join-card {
        padding: 1.6rem;
    }
}

/* FAQ accordion */
.site-accordion {
    --bs-accordion-bg: var(--site-surface);
    --bs-accordion-border-color: var(--site-border);
    --bs-accordion-border-radius: 16px;
    --bs-accordion-inner-border-radius: 15px;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--site-green) 25%, transparent);
    --bs-accordion-active-bg: var(--site-green-soft);
    --bs-accordion-active-color: var(--site-green-ink);
    --bs-accordion-color: var(--site-text);
    --bs-accordion-btn-color: var(--site-text);
}

.site-accordion .accordion-button {
    font-family: 'Barlow', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.site-accordion .accordion-body {
    color: var(--site-muted);
}

/* Final call to action */
.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
    padding: clamp(2rem, 5vw, 3.25rem);
    border-radius: 28px;
    background: var(--site-band);
    color: #ffffff;
    box-shadow: 0 30px 60px -30px rgba(14, 90, 46, 0.6);
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -6%;
    width: 340px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.cta-art img {
    position: relative;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cta-text {
    position: relative;
    flex: 1 1 280px;
}

.cta-band h2 {
    margin-bottom: 0.3rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-band p {
    margin: 0;
    opacity: 0.9;
}

.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ---------- Journey picture (how it works) ---------- */
.journey {
    width: min(520px, 100%);
    --jr-sky-1: #e6f4ff;
    --jr-sky-2: #f3fbf1;
    --jr-sun: #ffd23f;
    --jr-hill: #cfe8c9;
    --jr-field: #b9e0b0;
    --jr-road: #ffffff;
    --jr-road-line: #d2d8cf;
    --jr-tree: #4cae6a;
    --jr-trunk: #8a6a4a;
    --jr-wall: #ffffff;
    --jr-roof: #1e9a4b;
    --jr-roof-2: #e8961c;
    --jr-door: #2c3a31;
    --jr-window: #bfe3f5;
    --jr-ink: #16221a;
}

[data-bs-theme="dark"] .journey {
    --jr-sky-1: #13202b;
    --jr-sky-2: #101a14;
    --jr-sun: #e8b93a;
    --jr-hill: #18301f;
    --jr-field: #1d3a25;
    --jr-road: #2b322d;
    --jr-road-line: #46514a;
    --jr-tree: #2f8a4c;
    --jr-trunk: #6b5238;
    --jr-wall: #e5eee7;
    --jr-door: #1c2620;
    --jr-window: #6aa9c7;
    --jr-ink: #e5eee7;
}

.journey svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(10, 40, 22, 0.18));
}

.jr-sky-top {
    stop-color: var(--jr-sky-1);
}

.jr-sky-bottom {
    stop-color: var(--jr-sky-2);
}

.jr-sun {
    fill: var(--jr-sun);
}

.jr-hill {
    fill: var(--jr-hill);
}

.jr-field {
    fill: var(--jr-field);
}

.jr-road {
    fill: none;
    stroke: var(--jr-road);
    stroke-width: 26;
    stroke-linecap: round;
}

.jr-road-line {
    fill: none;
    stroke: var(--jr-road-line);
    stroke-width: 3;
    stroke-dasharray: 10 12;
    stroke-linecap: round;
}

.jr-tree circle {
    fill: var(--jr-tree);
}

.jr-trunk {
    fill: var(--jr-trunk);
}

.jr-wall {
    fill: var(--jr-wall);
}

.jr-roof {
    fill: var(--jr-roof);
}

.jr-roof.alt {
    fill: var(--jr-roof-2);
}

.jr-awning {
    fill: none;
    stroke: var(--jr-roof);
    stroke-width: 6;
    stroke-linejoin: round;
}

.jr-door {
    fill: var(--jr-door);
}

.jr-window {
    fill: var(--jr-window);
}

.jr-box {
    fill: var(--jr-roof);
}

.jr-box-mark {
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.jr-frame {
    fill: none;
    stroke: var(--jr-ink);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jr-wheel {
    fill: var(--jr-wall);
    stroke: var(--jr-ink);
    stroke-width: 4;
}

.jr-head {
    fill: var(--jr-roof-2);
}

.jr-rider {
    transform: translate(112px, 268px);
}

.jr-pin circle {
    fill: var(--jr-roof);
    stroke: #ffffff;
    stroke-width: 4;
}

.jr-pin.end circle {
    fill: var(--jr-roof-2);
}

.jr-pin path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .ph-in {
        animation: site-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        animation-delay: calc(var(--d, 0) * 90ms + 300ms);
    }

    .ph-cartbar {
        animation: site-rise 0.5s 1.4s cubic-bezier(0.3, 1.4, 0.5, 1) both;
    }

    .hero-visual-main .phone {
        animation: site-phone-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, site-float 7s 1s ease-in-out infinite;
    }

    .hero-ring {
        animation: site-spin 60s linear infinite;
    }

    .float-card-route {
        animation: site-slide-in 0.7s 1s both, site-bob 6s 1.7s ease-in-out infinite;
    }

    .float-card-code {
        animation: site-slide-in 0.7s 1.3s both, site-bob 6s 2s ease-in-out infinite;
    }

    .float-chip {
        animation: site-pop 0.5s 1.6s cubic-bezier(0.3, 1.5, 0.5, 1) both;
    }

    .float-progress span {
        animation: site-progress 4s ease-in-out infinite;
    }

    .ph-new {
        animation: site-glow 2.4s ease-in-out infinite;
    }

    .ph-new-dot::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--ph-accent);
        animation: site-ping 1.6s ease-out infinite;
    }

    .map-route {
        animation: site-dash 1.2s linear infinite;
    }

    .ph-code-last {
        animation: site-type 4s steps(1) infinite;
    }

    .jr-road-line {
        animation: site-dash-road 1.4s linear infinite;
    }

    .jr-sun {
        animation: site-pulse 5s ease-in-out infinite;
        transform-box: fill-box;
        transform-origin: center;
    }

    @supports (offset-path: path('M0 0')) {
        .map-rider {
            transform: none;
            offset-path: path('M42 112 H70 V40 H190 V95');
            offset-rotate: 0deg;
            animation: site-ride 6s ease-in-out infinite;
        }

        .jr-rider {
            transform: none;
            offset-path: path('M112 268 C 170 300 230 300 270 270 S 360 220 410 252');
            offset-rotate: 0deg;
            animation: site-ride 7s ease-in-out infinite;
        }
    }

    .cat,
    .join-card,
    .feature-card,
    .doc-card,
    .app-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .cat:hover,
    .join-card:hover,
    .feature-card:hover,
    .app-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--site-shadow);
    }
}

@keyframes site-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes site-phone-in {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(2deg);
    }
}

@keyframes site-float {
    50% {
        transform: translateY(-10px);
    }
}

@keyframes site-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes site-slide-in {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
}

@keyframes site-bob {
    50% {
        transform: translateY(-8px);
    }
}

@keyframes site-pop {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
}

@keyframes site-progress {
    0% {
        width: 12%;
    }

    70%,
    100% {
        width: 92%;
    }
}

@keyframes site-glow {
    50% {
        box-shadow: 0 0 0 5px var(--ph-tint);
    }
}

@keyframes site-ping {
    to {
        opacity: 0;
        transform: scale(2.6);
    }
}

@keyframes site-dash {
    to {
        stroke-dashoffset: -14;
    }
}

@keyframes site-dash-road {
    to {
        stroke-dashoffset: -22;
    }
}

@keyframes site-type {
    0%,
    45% {
        color: transparent;
    }

    50%,
    100% {
        color: inherit;
    }
}

@keyframes site-pulse {
    50% {
        transform: scale(1.08);
    }
}

@keyframes site-ride {
    0% {
        offset-distance: 0%;
    }

    80%,
    100% {
        offset-distance: 100%;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--site-border);
    background: var(--site-bg-alt);
}

.site-footer-title {
    margin-bottom: 0.75rem;
    font-family: 'Barlow', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--site-muted);
}

.site-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links li {
    margin-bottom: 0.45rem;
}

.site-footer-links a {
    color: var(--site-text);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--site-green-ink);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--site-border);
    font-size: 0.92rem;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.site-footer-legal a {
    color: var(--site-muted);
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: var(--site-green-ink);
}

/* ---------- Policy pages (privacy, terms, refunds) ---------- */
.legal {
    max-width: none;
    font-size: 1.02rem;
}

.legal section {
    padding-top: 1.75rem;
    scroll-margin-top: 5.5rem; /* below the sticky header when a link jumps here */
}

.legal h2 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.legal h3 {
    margin: 1.1rem 0 0.4rem;
    font-family: 'Barlow', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.legal p,
.legal li {
    color: color-mix(in srgb, var(--site-text) 88%, var(--site-muted));
}

.legal ul,
.legal ol {
    padding-left: 1.25rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal-summary {
    margin: 1.25rem 0 0.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--site-green-soft);
}

.legal-summary strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--site-green-ink);
}

.legal-summary li {
    color: var(--site-text);
}

.legal-toc {
    position: sticky;
    top: 5.5rem;
    font-size: 0.95rem;
}

.legal-toc-title {
    margin-bottom: 0.5rem;
    color: var(--site-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-toc ol,
.legal-toc ul {
    margin: 0;
    padding-left: 1.2rem;
}

.legal-toc ul {
    padding-left: 0;
    list-style: none;
}

.legal-toc li {
    margin-bottom: 0.35rem;
}

.legal-toc a {
    color: var(--site-text);
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a[aria-current="page"] {
    color: var(--site-green-ink);
    font-weight: 600;
}

.legal-toc-mobile {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--site-border);
    border-radius: 14px;
}

.legal-toc-mobile summary {
    font-weight: 600;
    cursor: pointer;
}

.legal-toc-mobile ol {
    margin: 0.6rem 0 0;
}

.legal-contact {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 1.5rem;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-bg-alt);
}

.legal-contact dt {
    color: var(--site-muted);
    font-weight: 600;
}

.legal-contact dd {
    margin: 0;
}

@media (max-width: 575.98px) {
    .legal-contact {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .legal-contact dd {
        margin-bottom: 0.6rem;
    }
}

/* ---------- Simple pages in a card (delete account) ---------- */
.site-page {
    padding: 3.5rem 0 4.5rem;
    background: var(--site-hero-glow);
}

.site-card {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.site-card h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.site .form-control,
.site .input-group-text {
    min-height: 3rem;
    border-color: var(--site-border);
    font-size: 1.05rem;
}

.site .form-control {
    background-color: var(--site-surface);
    color: var(--site-text);
}

.site .input-group-text {
    background: var(--site-bg-alt);
    color: var(--site-muted);
}

.site .form-control:focus {
    border-color: var(--site-green);
    box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--site-green) 20%, transparent);
}

.site .form-check-input:checked {
    background-color: var(--site-green);
    border-color: var(--site-green);
}

.site .form-label {
    font-weight: 600;
}

.icon-chip {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--site-green-soft);
    color: var(--site-green-ink);
}
