/* ==========================================================================
   JOUD Health: the site's stylesheet.

   THE LOOK comes from the pitch deck, not invented here: cream page, forest,
   gold, terracotta, mint; Manrope light with one bold word for titles; Anton
   for numerals only; flat colour blocks. No glass, no gradients, no shadows.

   COPY IS NOT TOUCHED HERE. Every word comes from i18n.js through data-i18n.
   The highlight spans that live inside those strings are styled here rather
   than removed from the strings. scripts/check-copy.sh enforces this.

   HISTORY, briefly, because it explains the rv- prefix: the page was restyled
   one section at a time on new class names so that the old inline CSS (3,300
   lines in index.html) could not leak into a finished section. When the last
   section had moved, that inline CSS was deleted in one pass. This file is
   now all of the page's CSS.
   ========================================================================== */

:root {
    --rv-cream: #F4EEE3;
    --rv-forest: #1A2E22;
    --rv-gold: #F2B84E;
    --rv-gold-press: #EBAA35;
    --rv-terracotta: #B9471C;
    --rv-terracotta-bright: #E4683A;
    --rv-mint: #CFE5D9;
    /* The app's own "thriving" mint, for the pieces of app UI shown on the page. */
    --rv-mint-deep: #5DCAA5;
    --rv-paper: #FFFCF7;
    --rv-ink-soft: #3E5547;
    --rv-hair: rgba(26, 46, 34, 0.16);
    --rv-ring-track: rgba(26, 46, 34, 0.1);

    --rv-latin: 'Manrope', system-ui, -apple-system, sans-serif;
    --rv-font: var(--rv-latin);
    --rv-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;

    --rv-gutter: clamp(20px, 4vw, 56px);
    --rv-max: 1320px;
    --rv-nav-h: 72px;
    --rv-block: 36px;

    --rv-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --rv-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Manrope has no Arabic letters, so in Arabic every rv-* rule that asks for
   --rv-font has to get the Arabic face instead of a system fallback. */
.lang-ar {
    --rv-font: 'Noto Sans Arabic', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Base.
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--rv-font);
    background: var(--rv-cream);
    color: var(--rv-forest);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--rv-font);
    color: inherit;
    line-height: 1.1;
}

/* Emphasis that lives inside the copy strings: bold, never a coloured chip. */
.highlight-sage,
.highlight-gold {
    font-weight: 800;
    color: var(--rv-forest);
}

.highlight-gold {
    color: var(--rv-terracotta);
}

.lang-ar .highlight-sage,
.lang-ar .highlight-gold {
    font-weight: 700;
}

:focus-visible {
    outline: 2px solid var(--rv-forest);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Navigation: a slim flat bar. Transparent over the hero, cream once the page
   has moved.
   -------------------------------------------------------------------------- */
.rv-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Above the mobile menu overlay (1001), so the bar and its close button
       stay reachable while the menu is open. */
    z-index: 1002;
    transform: none;
    width: auto;
    max-width: none;
    height: var(--rv-nav-h);
    padding: 0 var(--rv-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.rv-nav.is-stuck {
    background: var(--rv-cream);
    border-bottom-color: var(--rv-hair);
}

.rv-nav__logo {
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--rv-forest);
    text-decoration: none;
    white-space: nowrap;
}

.rv-nav__end {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 36px);
}

.rv-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 36px);
}

.rv-nav__links a {
    font-family: var(--rv-font);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--rv-forest);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 150ms ease;
    touch-action: manipulation;
}

.rv-nav__cta {
    background: var(--rv-forest);
    color: var(--rv-cream);
    font-family: var(--rv-font);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    padding: 11px 22px;
    touch-action: manipulation;
    border-radius: 999px;
    transition: transform 140ms var(--rv-ease-out);
}

.rv-nav__cta:active {
    transform: scale(0.97);
}

.rv-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--rv-latin);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

.rv-lang .lang-opt {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: rgba(26, 46, 34, 0.42);
    padding: 12px 6px;
    transition: color 150ms ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.rv-lang .lang-opt.active {
    color: var(--rv-forest);
}

.rv-lang .lang-sep {
    color: rgba(26, 46, 34, 0.22);
}

.hamburger-btn {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    touch-action: manipulation;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--rv-forest);
    transition: transform 200ms var(--rv-ease-out), opacity 200ms ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* The menu on phones: the whole screen, cream, four links. */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: var(--rv-cream);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 250ms var(--rv-ease-out), transform 250ms var(--rv-ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.mobile-menu a {
    font-family: var(--rv-font);
    font-weight: 700;
    font-size: 2rem;
    color: var(--rv-forest);
    text-decoration: none;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .rv-nav__links a:hover {
        opacity: 1;
    }

    .rv-lang .lang-opt:hover {
        color: var(--rv-forest);
    }
}

@media (max-width: 1023px) {
    :root {
        --rv-nav-h: 60px;
    }

    .rv-nav__links,
    .rv-nav__cta {
        display: none;
    }

    .rv-nav .hamburger-btn {
        display: block;
    }
}

@media (min-width: 1024px) {
    .rv-nav .hamburger-btn {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   WhatsApp: flat, and only the icon once the reader is past the hero.
   -------------------------------------------------------------------------- */
.whatsapp-pill {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--rv-paper);
    border: 1px solid var(--rv-hair);
    color: var(--rv-forest);
    font-family: var(--rv-font);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 140ms var(--rv-ease-out);
    touch-action: manipulation;
}

.whatsapp-pill svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: none;
}

.whatsapp-pill:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .whatsapp-pill {
        padding: 12px 16px;
        gap: 8px;
        font-size: 0.875rem;
    }
}

.whatsapp-pill.is-compact {
    padding: 14px;
    gap: 0;
}

.whatsapp-pill.is-compact span {
    display: none;
}

/* --------------------------------------------------------------------------
   Hero: headline, one supporting line, one action, and the film rising from
   the bottom edge in a forest frame (the deck's "See it work" slide).
   Nothing here fades in: the page is readable at first paint.
   -------------------------------------------------------------------------- */
.rv-hero {
    background: var(--rv-cream);
    color: var(--rv-forest);
    padding: calc(var(--rv-nav-h) + clamp(28px, 6vh, 72px)) var(--rv-gutter) clamp(48px, 7vw, 96px);
}

.rv-hero__inner {
    max-width: var(--rv-max);
    margin: 0 auto;
}

.rv-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    align-items: end;
    gap: clamp(32px, 5vw, 80px);
}

.rv-hero h1 {
    font-family: var(--rv-font);
    font-weight: 800;
    font-size: clamp(3.5rem, 9.6vw, 9rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: var(--rv-forest);
    margin: 0;
}

/* "Nutrition." light, "Simplified." bold: the deck's title contrast, done on
   the existing <br> so the string itself is left alone. */
.rv-hero h1::first-line {
    font-weight: 300;
}

.rv-hero__lede {
    padding-bottom: 0.6vw;
}

.rv-hero__sub {
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    line-height: 1.55;
    color: var(--rv-ink-soft);
    margin: 0 0 28px;
    max-width: 34ch;
}

/* In the steps the emphasis stays forest: terracotta is the step number's. */
.rv-hiw .highlight-gold {
    color: var(--rv-forest);
}

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 34px;
    border-radius: 999px;
    background: var(--rv-gold);
    color: var(--rv-forest);
    font-family: var(--rv-font);
    font-weight: 800;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: transform 140ms var(--rv-ease-out), background-color 140ms ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.rv-btn:active {
    transform: scale(0.97);
    background: var(--rv-gold-press);
}

@media (hover: hover) and (pointer: fine) {
    .rv-btn:hover {
        background: var(--rv-gold-press);
    }
}

.rv-film {
    position: relative;
    margin-top: clamp(36px, 5.5vw, 72px);
    padding: clamp(8px, 1vw, 14px);
    background: var(--rv-forest);
    border-radius: var(--rv-block);
}

.rv-film .hero-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--rv-block) - clamp(8px, 1vw, 14px));
    overflow: hidden;
    background: #0f251b;
}

/* The poster shows at once, so the frame is never an empty box while the
   film loads. */
.rv-film .hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rv-petal {
    position: absolute;
    top: 0;
    inset-inline-end: clamp(28px, 7vw, 104px);
    width: clamp(52px, 6.4vw, 92px);
    height: auto;
    /* Sits on the frame's top edge, in front of it, as on the deck. */
    transform: translateY(-70%);
    z-index: 2;
}

@media (max-width: 899px) {
    .rv-hero__top {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 20px;
    }

    .rv-hero h1 {
        font-size: clamp(3.25rem, 17vw, 6rem);
    }

    .rv-hero__sub {
        margin-bottom: 24px;
    }
}

/* Arabic. The headline is one unbroken run ("التغذية.ببساطة."), so it is
   sized to fit a phone on a single line. No tracking: it breaks the joins. */
.lang-ar .rv-hero h1 {
    font-weight: 700;
    font-size: clamp(2.5rem, 7.4vw, 6.75rem);
    line-height: 1.3;
    letter-spacing: 0;
}

.lang-ar .rv-hero h1::first-line {
    font-weight: 700;
}

.lang-ar .rv-hero__sub,
.lang-ar .rv-step p {
    line-height: 1.9;
    letter-spacing: 0;
}

@media (max-width: 899px) {
    .lang-ar .rv-hero h1 {
        font-size: clamp(2.125rem, 11.6vw, 4.5rem);
    }
}

/* --------------------------------------------------------------------------
   How It Works.

   Layouts, cheapest first:
     1. Phones: a row of four cards that swipes (native scroll snap, so the
        browser's own physics do the work).
     2. Tablets: the four cards two by two.
     3. Wide screens without script, or too short to pin: four across.
     4. Wide screens: one pinned screen. The four steps stay listed; the scroll
        position picks the step, and the phone's screen changes with it.

   THE PHONE is Apple's iPhone 18 Pro frame with a real capture of the app in
   it (scripts/make-device-shots.py). It rises from the bottom edge of its
   card, so only the top of each screen is on show; the rest is not in the
   image file at all. The step number never sits behind the phone: it has its
   own space above it, in every layout.
   -------------------------------------------------------------------------- */
.rv-hiw {
    background: var(--rv-cream);
    color: var(--rv-forest);
}

.rv-hiw__sticky {
    padding: clamp(72px, 10vw, 128px) var(--rv-gutter);
}

.rv-hiw__inner {
    max-width: var(--rv-max);
    margin: 0 auto;
}

.rv-title {
    font-family: var(--rv-font);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.4vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--rv-forest);
    margin: 0 0 clamp(28px, 4vw, 48px);
}

.rv-title .rv-lite {
    font-weight: 300;
}

.lang-ar .rv-title {
    letter-spacing: 0;
    line-height: 1.35;
    font-weight: 700;
}

.rv-steps-wrap {
    display: flex;
    flex-direction: column;
}

.rv-steps {
    list-style: none;
    margin: 0 calc(var(--rv-gutter) * -1);
    padding: 0 var(--rv-gutter);
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rv-gutter);
    scrollbar-width: none;
}

.rv-steps::-webkit-scrollbar {
    display: none;
}

/* Each card is the full width less 14px, so the next card shows as a 20px
   strip of plain mint: enough to say "there is more", never enough to show a
   number or a phone cut in half. */
.rv-step {
    flex: 0 0 calc(100% - 14px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--rv-mint);
    border-radius: var(--rv-block);
    padding: 26px 24px 0;
    overflow: hidden;
}

.rv-step__num {
    font-family: var(--rv-display);
    font-weight: 400;
    font-size: 4.25rem;
    line-height: 1;
    color: var(--rv-terracotta);
}

.rv-step h3 {
    font-family: var(--rv-font);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--rv-forest);
    margin: 14px 0 8px;
}

.lang-ar .rv-step h3 {
    letter-spacing: 0;
    line-height: 1.45;
    font-weight: 700;
}

.rv-step p {
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--rv-ink-soft);
    margin: 0;
}

/* The phone stands on the bottom edge of its card. */
.rv-shot {
    width: min(82%, 300px);
    margin: auto auto 0;
    padding-top: 28px;
}

.rv-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

/* Progress: the deck's hairline that ends in a gold dot. Here the dot moves. */
.rv-rail {
    order: 2;
    position: relative;
    height: 14px;
    margin-top: 28px;
}

.rv-rail::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rv-hair);
}

.rv-rail__dot {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rv-gold);
    will-change: transform;
}

html:not(.rv-js) .rv-rail,
.rv-stage {
    display: none;
}

/* Layout 2: two by two. Nothing scrolls sideways, so nothing can be cut. */
@media (min-width: 640px) {
    .rv-steps {
        margin: 0;
        padding: 0;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .rv-rail {
        display: none;
    }
}

/* Layout 3: four across. */
@media (min-width: 1024px) {
    .rv-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Layout 4: pinned. */
@media (min-width: 1024px) and (min-height: 700px) {
    .rv-js .rv-hiw {
        /* One screen to arrive, then most of a screen of scroll per step. */
        height: 340vh;
        --rv-stage-w: min(52%, 660px);
        /* The stage is as tall as the pinned screen less the bar and padding,
           and never taller than 760px. The number is sized from this, so it
           always fits in the space above the phone. */
        --rv-stage-h: min(100vh - var(--rv-nav-h) - 48px, 760px);
    }

    .rv-js .rv-hiw__sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100svh;
        padding: calc(var(--rv-nav-h) + 20px) var(--rv-gutter) 28px;
        display: flex;
        align-items: center;
    }

    .rv-js .rv-hiw__inner {
        position: relative;
        width: 100%;
        height: 100%;
        max-height: 760px;
    }

    .rv-js .rv-hiw__copy {
        height: 100%;
        max-width: calc(100% - var(--rv-stage-w) - clamp(40px, 6vw, 96px));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .rv-js .rv-hiw .rv-title {
        margin-bottom: clamp(20px, 3.4vh, 40px);
    }

    .rv-js .rv-steps-wrap {
        flex-direction: row;
        gap: 22px;
    }

    .rv-js .rv-rail {
        display: block;
        order: 0;
        flex: 0 0 14px;
        height: auto;
        margin: 0;
    }

    .rv-js .rv-rail::before {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .rv-js .rv-rail__dot {
        transition: transform 450ms var(--rv-ease-in-out);
    }

    .rv-js .rv-steps {
        display: block;
        flex: 1;
    }

    .rv-js .rv-step {
        display: grid;
        grid-template-columns: 3.4rem minmax(0, 1fr);
        column-gap: 14px;
        background: none;
        border-radius: 0;
        padding: clamp(10px, 1.7vh, 18px) 0;
        overflow: visible;
    }

    .rv-js .rv-step__num,
    .rv-js .rv-step h3,
    .rv-js .rv-step p {
        opacity: 0.34;
        transition: opacity 300ms ease, color 300ms ease;
    }

    .rv-js .rv-step.is-active .rv-step__num,
    .rv-js .rv-step.is-active h3,
    .rv-js .rv-step.is-active p {
        opacity: 1;
    }

    .rv-js .rv-step__num {
        grid-row: 1 / span 2;
        font-size: 2.75rem;
        line-height: 1.05;
        color: var(--rv-forest);
    }

    .rv-js .rv-step.is-active .rv-step__num {
        color: var(--rv-terracotta);
    }

    .rv-js .rv-step h3 {
        font-size: clamp(1.25rem, 1.7vw, 1.625rem);
        margin: 4px 0 4px;
    }

    .rv-js .rv-step p {
        font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
        max-width: 40ch;
    }

    /* The stage: one mint block. The step's number has the top of it to
       itself; the phone stands on the bottom edge. They never overlap: the
       number ends at 27% of the stage's height and the phone starts at 29%. */
    .rv-js .rv-stage {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        inset-inline-end: 0;
        width: var(--rv-stage-w);
        background: var(--rv-mint);
        border-radius: var(--rv-block);
        overflow: hidden;
    }

    .rv-js .rv-stage__n {
        position: absolute;
        top: 5%;
        inset-inline-start: 7%;
        font-family: var(--rv-display);
        font-size: calc(var(--rv-stage-h) * 0.22);
        line-height: 1;
        color: var(--rv-cream);
        opacity: 0;
        transition: opacity 350ms ease;
    }

    .rv-js .rv-stage__n.is-active {
        opacity: 1;
    }

    /* Every step's phone stands in the same place; only the current one is
       visible, so the phone holds still and its screen changes. */
    .rv-js .rv-shot {
        position: absolute;
        bottom: 0;
        inset-inline-end: calc(var(--rv-stage-w) / 2);
        width: auto;
        height: 71%;
        aspect-ratio: 640 / 837;
        margin: 0;
        padding: 0;
        transform: translateX(50%);
        opacity: 0;
        transition: opacity 350ms ease;
        z-index: 2;
    }

    /* .rv-js and dir both sit on <html>, so this is one compound selector. */
    .rv-js[dir="rtl"] .rv-shot {
        transform: translateX(-50%);
    }

    .rv-js .rv-step.is-active .rv-shot {
        opacity: 1;
    }

    .rv-js .rv-shot img {
        width: 100%;
        height: 100%;
    }
}

/* --------------------------------------------------------------------------
   Shared pieces for the sections below.
   -------------------------------------------------------------------------- */
.rv-sec {
    background: var(--rv-cream);
    color: var(--rv-forest);
    padding: clamp(56px, 8vw, 112px) var(--rv-gutter);
}

.rv-wrap {
    max-width: var(--rv-max);
    margin: 0 auto;
}

.rv-lede {
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
    line-height: 1.55;
    color: var(--rv-ink-soft);
    max-width: 44ch;
}

.lang-ar .rv-lede {
    line-height: 1.9;
}

/* Small tracked capitals. Arabic has no capitals and must not be tracked. */
.rv-eyebrow,
.rv-over {
    font-family: var(--rv-font);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rv-terracotta);
}

.rv-over {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(26, 46, 34, 0.6);
}

.lang-ar .rv-eyebrow,
.lang-ar .rv-over {
    letter-spacing: 0;
    font-size: 0.875rem;
}

/* The deck's hairline that ends in a gold dot. */
.rv-rule {
    display: block;
    position: relative;
    height: 12px;
}

.rv-rule::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rv-hair);
}

.rv-rule::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rv-gold);
}

/* Flat colour blocks. */
.rv-card {
    border-radius: var(--rv-block);
    padding: clamp(24px, 3vw, 44px);
}

.rv-card--forest {
    background: var(--rv-forest);
    color: var(--rv-cream);
}

.rv-card--paper {
    background: var(--rv-paper);
}

.rv-card--mint {
    background: var(--rv-mint);
}

.rv-card--gold {
    background: var(--rv-gold);
}

.rv-card h3 {
    font-weight: 800;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.rv-card p {
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--rv-ink-soft);
}

.lang-ar .rv-card h3 {
    letter-spacing: 0;
    line-height: 1.5;
    font-weight: 700;
}

.lang-ar .rv-card p {
    line-height: 1.95;
}

/* --------------------------------------------------------------------------
   The problem, as one moment on a forest block.

   The picture is the sentence: three signals that disagree (the copy names
   three diets) run in from the edge and settle into one calm line that ends
   in the deck's gold dot. Scrolling through the block is what calms them, so
   by the time the reader reaches How It Works the line is still. The three
   diet names in the copy take the three signals' colours (revamp.js wraps
   them; no word is added or changed).

   Without script, or with reduced motion, the line is simply there, still.
   -------------------------------------------------------------------------- */
.rv-say {
    padding-top: 0;
}

.rv-say__block {
    --rv-say-pad: clamp(28px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--rv-forest);
    color: var(--rv-cream);
    border-radius: var(--rv-block);
    padding: var(--rv-say-pad);
    overflow: hidden;
}

.rv-say .rv-title {
    color: var(--rv-cream);
    margin: 0;
}

/* The wave runs in from the block's own edge, so the noise arrives from
   outside the frame; it ends inside, at the dot. */
.rv-say__wave {
    position: relative;
    height: clamp(110px, 17vw, 220px);
    margin-block: clamp(20px, 3vw, 44px);
    margin-inline-start: calc(var(--rv-say-pad) * -1);
}

.rv-say__wave canvas {
    display: block;
    width: 100%;
    height: 100%;
}

html:not(.rv-js) .rv-say__wave::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    margin-top: -1px;
    background: var(--rv-cream);
}

html:not(.rv-js) .rv-say__wave::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--rv-gold);
}

.rv-say__text {
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: clamp(1.25rem, 2.1vw, 1.875rem);
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: rgba(244, 238, 227, 0.8);
    max-width: 30ch;
}

.rv-say__text .highlight-sage {
    color: var(--rv-cream);
}

/* The three diets, in their signals' colours. */
.rv-say__w {
    font-weight: 700;
}

.rv-say__w--1 {
    color: var(--rv-terracotta-bright);
}

.rv-say__w--2 {
    color: var(--rv-gold);
}

.rv-say__w--3 {
    color: var(--rv-mint);
}

.lang-ar .rv-say__text {
    letter-spacing: 0;
    line-height: 1.85;
}

@media (min-width: 900px) {
    .rv-say__block {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: clamp(32px, 5vw, 80px);
    }

    .rv-say__wave {
        grid-column: 1 / -1;
    }

    /* Title top left, the answer bottom right, the line between them. */
    .rv-say .rv-title {
        grid-column: 1 / -1;
        max-width: 11ch;
    }

    .lang-ar .rv-say .rv-title {
        max-width: 16ch;
    }

    .rv-say__text {
        grid-column: 2;
    }
}

/* --------------------------------------------------------------------------
   Our Science: five blocks. The claim in forest, the evidence on paper, and
   one number as the hero.
   -------------------------------------------------------------------------- */
.rv-sci__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.rv-sci__claim {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    min-height: 300px;
}

.rv-mark {
    width: clamp(44px, 4.4vw, 64px);
    height: auto;
}

.rv-sci__big {
    font-family: var(--rv-font);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--rv-cream);
    margin-bottom: 18px;
}

/* "Evidence-Based." light, "Biology-Driven." bold, on the string's own <br>. */
.rv-sci__big::first-line {
    font-weight: 300;
}

.rv-card .rv-sci__big {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.05;
    color: var(--rv-cream);
}

.rv-card .rv-sci__cap {
    color: rgba(244, 238, 227, 0.76);
    max-width: 36ch;
}

.lang-ar .rv-card .rv-sci__big,
.lang-ar .rv-sci__big::first-line {
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.45;
}

.rv-sci__med p {
    max-width: 64ch;
}

/* The score.

   THE RING is the app's own (its Home card): ONE ring in the colour of the
   score's own band, starting at twelve o'clock, round caps, the track a whole
   circle in the same hue, and the number inside the ring so the two are one
   object. 89 is in the app's top band, so the ring is that band's mint and
   no other colour.

   THE SCENE (the canvas, drawn in revamp.js): the ring grows like an olive
   branch, leaves unfurling behind its tip as the number counts up, and at 89
   the gold bud at its tip opens into JOUD's eight-petal flower. Then it
   lives: a breeze in the leaves, a gust now and then, a rustle when the page
   is scrolled. The leaves are the ring's own hue, lighter and darker.

   Without script, or with reduced motion: the ring at 89, still. */
.rv-sci__num {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    min-height: clamp(300px, 88vw, 400px);
}

.rv-dial__sky {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rv-dial {
    position: relative;
    z-index: 1;
    width: min(58%, 212px);
    aspect-ratio: 1;
    container-type: inline-size;
}

.rv-dial__ring {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Once the canvas is drawing the ring (so the points can pass behind and in
   front of it), the still one steps aside. */
.rv-dial.is-live .rv-dial__ring {
    visibility: hidden;
}

.rv-dial__track,
.rv-dial__arc {
    fill: none;
    stroke-width: 22;
}

.rv-dial__track {
    stroke: rgba(93, 202, 165, 0.24);
}

/* pathLength is 100, so the offset is simply what is left of a hundred. */
.rv-dial__arc {
    stroke: var(--rv-mint-deep);
    stroke-linecap: round;
    stroke-dasharray: 100 100;
    stroke-dashoffset: 11;
}

.rv-dial__text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    direction: ltr;
}

.rv-sci__n {
    font-family: var(--rv-display);
    font-size: 5rem;
    font-size: 38cqw;
    line-height: 1;
    color: var(--rv-cream);
    /* Two digits wide at every count, so the number does not shiver. */
    min-width: 2.1ch;
    text-align: center;
}

.rv-sci__nl {
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 0.6875rem;
    font-size: max(0.5625rem, 5.2cqw);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 238, 227, 0.72);
    margin-top: 0.5em;
}

/* The number lands with the pulse. */
.rv-dial.is-landed .rv-sci__n {
    animation: rv-land 520ms var(--rv-ease-out);
}

@keyframes rv-land {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}

@media (min-width: 640px) {
    .rv-sci__num {
        min-height: 240px;
    }
}

.rv-card .rv-sci__lead {
    font-weight: 700;
    color: var(--rv-forest);
    margin-bottom: 12px;
}

.rv-sci__refs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin-top: 28px;
    font-family: var(--rv-latin);
    font-weight: 600;
    font-size: 0.8125rem;
    color: rgba(26, 46, 34, 0.56);
}

[dir="rtl"] .rv-sci__refs {
    justify-content: flex-end;
}

@media (min-width: 640px) {
    .rv-sci__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .rv-sci__claim,
    .rv-sci__med,
    .rv-sci__sec2 {
        grid-column: span 6;
    }

    .rv-sci__num {
        grid-column: span 2;
    }

    .rv-sci__sec1 {
        grid-column: span 4;
    }
}

@media (min-width: 1024px) {
    .rv-sci__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .rv-sci__claim {
        grid-column: span 5;
    }

    .rv-sci__med {
        grid-column: span 7;
    }

    /* The dial goes last on wide screens, so the two forest blocks sit on a
       diagonal instead of stacked in one column. */
    .rv-sci__num {
        grid-column: span 3;
        order: 1;
    }

    .rv-sci__sec1 {
        grid-column: span 4;
    }

    .rv-sci__sec2 {
        grid-column: span 5;
    }
}

/* --------------------------------------------------------------------------
   The app. "Your Personal Health Compass" is the headline; under it, the
   three things the app does, each with the phone standing on the bottom edge
   of its card exactly as in How It Works.
   -------------------------------------------------------------------------- */
.rv-app__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.rv-app__head .rv-title {
    margin: 0;
    max-width: 13ch;
}

.rv-pillars {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.rv-pillar {
    display: flex;
    flex-direction: column;
    background: var(--rv-paper);
    border-radius: var(--rv-block);
    padding: clamp(26px, 2.8vw, 40px) clamp(24px, 2.8vw, 40px) 0;
    overflow: hidden;
}

.rv-pillar h3 {
    font-weight: 800;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.rv-pillar p {
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--rv-ink-soft);
    max-width: 34ch;
}

.lang-ar .rv-pillar h3 {
    letter-spacing: 0;
    line-height: 1.45;
    font-weight: 700;
}

.lang-ar .rv-pillar p {
    line-height: 1.9;
}

.rv-phone {
    width: min(84%, 320px);
    margin: auto auto 0;
    padding-top: 28px;
}

.rv-phone img {
    width: 100%;
    height: auto;
    max-width: none;
}

/* Tablets: one pillar per row, words on one side and the phone on the other,
   so a card is not a screen tall. */
@media (min-width: 640px) and (max-width: 899px) {
    .rv-pillar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 24px;
        align-items: end;
        padding-top: 0;
    }

    .rv-pillar h3,
    .rv-pillar p {
        grid-column: 1;
    }

    .rv-pillar h3 {
        align-self: end;
        padding-top: clamp(26px, 2.8vw, 40px);
    }

    .rv-pillar p {
        align-self: start;
        padding-bottom: clamp(26px, 2.8vw, 40px);
    }

    .rv-phone {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: min(100%, 300px);
        margin: 0 auto;
    }
}

@media (min-width: 900px) {
    .rv-app__head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(32px, 5vw, 80px);
        align-items: end;
    }

    .rv-pillars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Understand what's on your plate: pieces of the app's own scoring, on one
   forest block.
   -------------------------------------------------------------------------- */
.rv-plate__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    background: var(--rv-forest);
    border-radius: var(--rv-block);
    padding: clamp(28px, 4.4vw, 64px) clamp(14px, 4.4vw, 64px) clamp(14px, 4.4vw, 64px);
    /* On phones the block runs closer to the screen edge than the text does,
       so the cards inside keep a usable width. */
    margin-inline: calc((var(--rv-gutter) - 8px) * -1);
}

.rv-plate__head {
    padding: 0 10px;
    margin-bottom: clamp(14px, 2.4vw, 28px);
}

.rv-plate .rv-title {
    color: var(--rv-cream);
    margin-bottom: 16px;
    max-width: 15ch;
}

.rv-plate .rv-lede {
    color: rgba(244, 238, 227, 0.78);
}

.rv-plate__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.rv-ui {
    background: var(--rv-paper);
    color: var(--rv-forest);
    border-radius: 24px;
    padding: 20px;
    font-family: var(--rv-font);
}

.rv-chev {
    flex: none;
    color: rgba(26, 46, 34, 0.38);
}

[dir="rtl"] .rv-chev {
    transform: scaleX(-1);
}

/* What each ingredient does to the score. */
.rv-impact {
    padding: 6px 20px;
}

.rv-impact__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rv-hair);
}

.rv-impact__row:last-child {
    border-bottom: 0;
}

.rv-impact__ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rv-mint);
}

.rv-impact__row--neg .rv-impact__ico {
    background: rgba(228, 104, 58, 0.16);
}

.rv-impact__ico img {
    width: 26px;
    height: 26px;
}

.rv-impact__label {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.rv-impact__track,
.rv-bio__bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: var(--rv-ring-track);
}

.rv-impact__track {
    flex: none;
    width: clamp(52px, 22%, 96px);
}

.rv-impact__track span,
.rv-bio__bar span {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--w, var(--x, 50%));
    border-radius: 999px;
    background: var(--c, var(--rv-mint-deep));
}

.rv-impact__row--neg .rv-impact__track span {
    background: var(--rv-terracotta-bright);
}

/* The marker at the end of each bar: a dot ringed in the card's own colour. */
.rv-impact__track span::after,
.rv-bio__bar span::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: inherit;
    border: 3px solid var(--rv-paper);
    transform: translateY(-50%);
}

.rv-impact__delta {
    flex: none;
    width: 40px;
    text-align: end;
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 0.9375rem;
    direction: ltr;
}

[dir="rtl"] .rv-impact__delta {
    text-align: start;
}

/* One meal. */
.rv-meal {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rv-meal__photo {
    position: relative;
    flex: 1;
    min-height: 220px;
    aspect-ratio: 4 / 3;
}

.rv-meal__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rv-meal__badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rv-paper);
    color: var(--rv-forest);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.rv-meal__body {
    padding: 18px 20px 20px;
}

.rv-meal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rv-meal__name {
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* The app colours a meal's score from its score band; 9.5 is in the mint band. */
.rv-meal__score {
    flex: none;
    min-width: 42px;
    padding: 5px 9px;
    border-radius: 10px;
    text-align: center;
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--rv-forest);
    background: var(--rv-mint-deep);
}

.rv-meal__why {
    margin-top: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--rv-ink-soft);
}

.rv-today {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}

.rv-today__ico {
    flex: none;
    width: 40px;
    height: 40px;
}

.rv-today__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rv-today__label {
    font-weight: 800;
    font-size: 1rem;
}

.rv-today__meta {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--rv-ink-soft);
}

/* What is left today. */
.rv-macros__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rv-hair);
}

.rv-macros__copy {
    display: flex;
    flex-direction: column;
}

.rv-macros__big {
    font-family: var(--rv-display);
    font-size: clamp(3.75rem, 5.2vw, 4.75rem);
    line-height: 1;
    margin: 8px 0 4px;
    direction: ltr;
}

[dir="rtl"] .rv-macros__big {
    text-align: end;
}

.rv-macros__cap {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--rv-ink-soft);
}

.rv-ring {
    flex: none;
}

.rv-macros__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 18px;
}

.rv-macro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.rv-macro__val {
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.1;
    direction: ltr;
}

.rv-macro .rv-over {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
}

.lang-ar .rv-macro .rv-over {
    font-size: 0.75rem;
    letter-spacing: 0;
}

/* From the blood panel. */
.rv-bio {
    padding-bottom: 8px;
}

.rv-bio__row {
    padding: 14px 0;
    border-bottom: 1px solid var(--rv-hair);
}

.rv-bio__row:last-child {
    border-bottom: 0;
}

.rv-bio__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-bio__name {
    flex: 1;
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 1rem;
}

.rv-bio__val {
    font-family: var(--rv-latin);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--rv-ink-soft);
    direction: ltr;
}

.rv-bio__bar {
    margin-top: 12px;
}

@media (min-width: 640px) {
    .rv-plate__block {
        margin-inline: 0;
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: clamp(28px, 4.4vw, 64px);
    }

    .rv-plate__head {
        grid-column: 1 / -1;
        padding: 0;
    }

    .rv-plate__col {
        gap: 16px;
    }

    /* The meal fills its column, the photo taking whatever height is spare. */
    .rv-plate__col > .rv-meal {
        flex: 1;
    }

    /* The third column sits under the first two, its two cards side by side. */
    .rv-plate__col:last-child {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .rv-plate__col:last-child > * {
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 1100px) {
    .rv-plate__block {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rv-plate__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(32px, 5vw, 80px);
        align-items: end;
    }

    .rv-plate .rv-title {
        margin-bottom: 0;
    }

    .rv-plate__col:last-child {
        grid-column: auto;
        flex-direction: column;
    }

    .rv-plate__col:last-child > * {
        flex: none;
    }

    .rv-plate__col:last-child > .rv-bio {
        flex: 1;
    }
}

/* --------------------------------------------------------------------------
   Register Your Interest.
   -------------------------------------------------------------------------- */
.rv-join__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.rv-join .rv-eyebrow {
    margin-bottom: 16px;
}

.rv-join .rv-title {
    margin-bottom: 20px;
}

.rv-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 16px and no smaller: below that, iPhone Safari zooms the page on focus. */
.rv-input {
    width: 100%;
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--rv-forest);
    background: var(--rv-paper);
    border: 0;
    border-radius: 18px;
    padding: 17px 20px;
    -webkit-appearance: none;
    appearance: none;
}

.rv-input::placeholder {
    color: rgba(26, 46, 34, 0.52);
}

.rv-input:focus-visible {
    outline: 2px solid var(--rv-forest);
    outline-offset: 2px;
    border-radius: 18px;
}

.rv-input--area {
    min-height: 132px;
    resize: vertical;
}

.rv-btn--wide {
    width: 100%;
    border: 0;
    cursor: pointer;
    margin-top: 6px;
}

.rv-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.rv-form .form-status {
    font-family: var(--rv-font);
    font-weight: 600;
}

@media (min-width: 900px) {
    .rv-join__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(40px, 6vw, 96px);
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   Footer.
   -------------------------------------------------------------------------- */
.rv-foot {
    background: var(--rv-cream);
    color: var(--rv-forest);
    padding: clamp(24px, 4vw, 48px) var(--rv-gutter) 0;
    font-family: var(--rv-font);
}

.rv-foot__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    padding: clamp(32px, 4vw, 56px) 0 clamp(8px, 2vw, 24px);
}

.rv-foot__brand,
.rv-foot__news {
    grid-column: 1 / -1;
}

.rv-foot__logo {
    font-family: var(--rv-latin);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.rv-foot__tagline {
    font-weight: 500;
    font-size: 1rem;
    color: var(--rv-ink-soft);
    margin: 8px 0 20px;
    max-width: 28ch;
}

.rv-foot__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.rv-foot a {
    color: var(--rv-forest);
    text-decoration: none;
    touch-action: manipulation;
}

.rv-foot__contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.rv-foot__contact svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.rv-foot__title {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(26, 46, 34, 0.56);
    margin-bottom: 14px;
}

.lang-ar .rv-foot__title {
    letter-spacing: 0;
    font-size: 0.875rem;
}

.rv-foot__title--news,
.lang-ar .rv-foot__title--news {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--rv-forest);
    margin-bottom: 6px;
}

.lang-ar .rv-foot__title--news {
    letter-spacing: 0;
    font-weight: 700;
}

.rv-foot__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rv-foot__links a {
    font-weight: 600;
    font-size: 0.9375rem;
}

.rv-foot__help {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--rv-ink-soft);
    margin-bottom: 16px;
}

.rv-news {
    position: relative;
    max-width: 360px;
}

.rv-news__input {
    width: 100%;
    font-family: var(--rv-font);
    font-weight: 500;
    font-size: 1rem;
    color: var(--rv-forest);
    background: var(--rv-paper);
    border: 1px solid var(--rv-hair);
    border-radius: 999px;
    padding: 15px 20px;
    padding-inline-end: 60px;
    -webkit-appearance: none;
    appearance: none;
}

.rv-news__input::placeholder {
    color: rgba(26, 46, 34, 0.52);
}

.rv-news__input:focus-visible {
    outline: 2px solid var(--rv-forest);
    outline-offset: 2px;
    border-radius: 999px;
}

.rv-news__btn {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--rv-gold);
    color: var(--rv-forest);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 140ms var(--rv-ease-out), background-color 140ms ease;
    touch-action: manipulation;
}

.rv-news__btn:active {
    transform: scale(0.94);
    background: var(--rv-gold-press);
}

.rv-news__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.rv-news__btn svg {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .rv-news__btn svg {
    transform: scaleX(-1);
}

.rv-news__msg {
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 10px;
    min-height: 1.3em;
}

/* The engraving is ink on nothing (assets/foot_scene_ink.webp has no paper
   in it), so it sits on the cream page without an edge. */
.rv-foot__scene {
    margin: 0 calc(var(--rv-gutter) * -1);
    height: clamp(180px, 26vw, 440px);
    overflow: hidden;
    /* The band is shorter than the drawing, so the tree tops would be cut in
       a straight line. They fade out instead. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 32%);
}

.rv-foot__scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* Bottom padding clears the fixed WhatsApp pill, which would otherwise sit on
   the last lines of the legal text. */
.rv-foot__legal {
    margin: 0 calc(var(--rv-gutter) * -1);
    padding: 20px var(--rv-gutter) 96px;
    border-top: 1px solid var(--rv-hair);
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(26, 46, 34, 0.64);
}

.rv-foot__legal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
}

.rv-foot__legal a {
    color: inherit;
}

.rv-foot__entity {
    margin-top: 10px;
    font-size: 0.75rem;
}

@media (hover: hover) and (pointer: fine) {
    .rv-foot a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .rv-news__btn:hover {
        background: var(--rv-gold-press);
    }
}

@media (min-width: 900px) {
    .rv-foot__cols {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr)) minmax(0, 1.4fr);
        gap: 32px;
    }

    .rv-foot__brand,
    .rv-foot__news {
        grid-column: auto;
    }
}

/* Reduced motion: the steps still change with the scroll (that is the reader's
   own movement), but nothing glides. Fades stay, movement goes. */
@media (prefers-reduced-motion: reduce) {
    .rv-dial.is-landed .rv-sci__n,
    .rv-js .rv-rail__dot,
    .rv-btn,
    .rv-nav__cta,
    .rv-news__btn,
    .hamburger-btn span,
    .mobile-menu,
    .whatsapp-pill {
        transition: none;
    }

    .rv-steps {
        scroll-behavior: auto;
    }
}
