/**
 * Marketing site styles — the /company section only.
 *
 * The /company pages are presented as a SEPARATE website from the
 * transactional app: their own nav, their own footer, their own type scale
 * and spacing rhythm. Everything here is scoped under `.mkt`, so none of it
 * can leak into Home / Cart / Checkout / Account, which keep using app.css
 * untouched.
 *
 * Base colour is Lamat purple (--primary, var(--primary)). The app's own tokens are
 * re-declared on `.mkt` rather than referenced, so the marketing site can
 * drift (bigger radii, softer lines, roomier type) without touching the app.
 *
 * RTL: written with logical properties (padding-inline, inset-inline,
 * margin-inline-start) throughout, so the Arabic default mirrors for free.
 * Only genuinely directional things — the CTA arrow, the drawer slide — carry
 * an explicit [dir='rtl'] rule.
 */

/**
 * Tokens live on BOTH `.mkt` (the page shell) and `.mkt-portal`, because the
 * mobile drawer is `<Teleport>`-ed to <body> — outside the shell — and would
 * otherwise inherit none of them. `.mkt-portal` carries the variables only;
 * the shell's own layout and background stay on `.mkt`, so a full-viewport
 * portal doesn't paint a white sheet over the page.
 */
.mkt,
.mkt-portal {
    /* ── Purple ramp. Note --mkt-primary-hover is a REAL step darker than
       --mkt-primary; app.css has --primary and --primary-600 set to the same
       hex, which leaves buttons without a hover state. ── */
    --mkt-primary: var(--primary);
    --mkt-primary-hover: var(--primary-700);
    --mkt-primary-active: var(--primary-800);
    --mkt-primary-50: var(--primary-50);
    --mkt-primary-100: var(--primary-100);
    --mkt-primary-200: var(--primary-200);
    --mkt-primary-300: var(--primary-300);

    /* ── Accents. The purple ramp alone reads monochrome at this scale, so
       gradients and dark bands reach for magenta and coral to widen it. ── */
    --mkt-accent: #d946ef;
    --mkt-accent-soft: #f0abfc;
    --mkt-accent-2: #fb7185;
    --mkt-indigo: #6366f1;
    /* True pink, the one thing the purple→fuchsia ramp above cannot mix. The
       search modal's ground flows through it. */
    --mkt-pink: #ff4d94;
    --mkt-pink-soft: #ff85bb;

    /* ── Dark bands. Sections carrying `--dark` paint over these instead of
       the white/tint surfaces, and re-point the type and card tokens below
       so nothing inside has to know it is on a dark ground. ── */
    --mkt-dark: #150729;
    --mkt-dark-2: #2c1057;
    --mkt-on-dark: #f7f3ff;
    --mkt-on-dark-muted: rgb(232 224 255 / 74%);
    --mkt-dark-surface: rgb(255 255 255 / 7%);
    --mkt-dark-line: rgb(255 255 255 / 14%);

    /* Ink — deeper and higher-contrast than the app's, for large display type. */
    --mkt-ink: #0b0518;
    --mkt-ink-2: #2e2740;
    --mkt-muted: #6b6780;
    --mkt-muted-2: #9691a8;

    /* Surfaces. The marketing site is white-first with tinted breather bands,
       unlike the app which sits on a grey --bg. */
    --mkt-surface: #ffffff;
    --mkt-tint: #faf9ff;
    --mkt-tint-2: var(--primary-50);
    --mkt-line: #ece9f2;
    --mkt-line-strong: #ddd8e8;

    /* Elevation — a real 4-step ramp instead of app.css's single --shadow. */
    --mkt-shadow-xs: 0 1px 2px rgb(11 5 24 / 4%);
    --mkt-shadow-sm: 0 2px 8px rgb(11 5 24 / 5%);
    --mkt-shadow-md: 0 12px 32px -12px rgb(11 5 24 / 14%);
    --mkt-shadow-lg: 0 32px 64px -24px rgb(11 5 24 / 22%);
    --mkt-shadow-purple: 0 12px 32px -12px
        color-mix(in srgb, var(--primary) 45%, transparent);

    --mkt-radius-sm: 10px;
    --mkt-radius: 16px;
    --mkt-radius-lg: 24px;
    --mkt-radius-xl: 32px;

    /* Vertical rhythm. Marketing sections breathe far more than app pages. */
    --mkt-section-y: 112px;
    --mkt-gutter: 32px;
    --mkt-max: 1200px;

    --mkt-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --mkt-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    color: var(--mkt-ink);
    font-size: 16px;
    line-height: 1.6;
}

/* Shell-only: the portal must NOT get a background or a 100vh flex column,
   or the teleported drawer would paint an opaque sheet over the whole page.
   `overflow-x: clip` (not `hidden`) contains the drifting hero blobs WITHOUT
   creating a scroll container — `hidden` here would silently kill the sticky
   nav, since a sticky element only sticks inside its nearest scrollport. */
.mkt {
    background: var(--mkt-surface);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
}

/* ─────────────────────────────────────────────────────────────
   Layout primitives
   ───────────────────────────────────────────────────────────── */

.mkt-shell {
    flex: 1;
}

.mkt-wrap {
    width: 100%;
    max-width: var(--mkt-max);
    margin-inline: auto;
    padding-inline: var(--mkt-gutter);
}

.mkt-wrap--narrow {
    max-width: 860px;
}

.mkt-section {
    padding-block: var(--mkt-section-y);
    position: relative;
}

/* Sections may carry a decorative layer of their own (the dark bands' event
   ambience, for one) at z-index 0. The content rides above it — without this
   the layer would paint over the section's own static text. */
.mkt-section > .mkt-wrap {
    position: relative;
    z-index: 1;
}

.mkt-section--tight {
    padding-block: calc(var(--mkt-section-y) * 0.6);
}

/* Tinted breather band. Used to separate feature blocks without borders. */
.mkt-section--tint {
    background: var(--mkt-tint);
}

.mkt-section--tint-2 {
    background: linear-gradient(180deg, var(--mkt-tint-2), var(--mkt-surface));
}

/* ─────────────────────────────────────────────────────────────
   Type scale
   ───────────────────────────────────────────────────────────── */

.mkt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mkt-primary);
    background: var(--mkt-primary-50);
    border: 1px solid var(--mkt-primary-100);
    padding: 6px 14px;
    border-radius: 999px;
}

/* Arabic has no case, so the uppercase tracking treatment reads as damage. */
[dir='rtl'] .mkt-eyebrow {
    text-transform: none;
    letter-spacing: 0;
}

.mkt-h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 900;
    color: var(--mkt-ink);
    margin: 0;
}

.mkt-h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: var(--mkt-ink);
    margin: 0;
}

.mkt-h3 {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.3;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: var(--mkt-ink);
    margin: 0;
}

/* Arabic display faces carry tighter counters — negative tracking closes them
   up into mush at hero sizes, so opt out. */
[dir='rtl'] .mkt-h1,
[dir='rtl'] .mkt-h2,
[dir='rtl'] .mkt-h3 {
    letter-spacing: 0;
    line-height: 1.25;
}

.mkt-lead {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    color: var(--mkt-muted);
    margin: 0;
    max-width: 62ch;
}

.mkt-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mkt-muted);
    margin: 0;
}

/* Gradient-filled word, for the one emphasised phrase in a hero headline. */
.mkt-grad-text {
    background: linear-gradient(
        100deg,
        var(--mkt-indigo) 0%,
        var(--mkt-primary) 32%,
        var(--mkt-accent) 68%,
        var(--mkt-accent-2) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ─────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────── */

.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        transform 180ms var(--mkt-ease),
        box-shadow 180ms var(--mkt-ease),
        background-color 140ms var(--mkt-ease),
        border-color 140ms var(--mkt-ease),
        color 140ms var(--mkt-ease);
}

.mkt-btn:active {
    transform: translateY(1px) scale(0.985);
}

.mkt-btn--primary {
    background: var(--mkt-primary);
    color: #fff;
    box-shadow: var(--mkt-shadow-purple);
}

.mkt-btn--primary:hover {
    background: var(--mkt-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px
        color-mix(in srgb, var(--primary) 60%, transparent);
}

.mkt-btn--ghost {
    background: var(--mkt-surface);
    color: var(--mkt-ink);
    border-color: var(--mkt-line-strong);
    box-shadow: var(--mkt-shadow-xs);
}

.mkt-btn--ghost:hover {
    border-color: var(--mkt-primary-300);
    color: var(--mkt-primary);
    transform: translateY(-2px);
    box-shadow: var(--mkt-shadow-sm);
}

.mkt-btn--quiet {
    background: transparent;
    color: var(--mkt-ink-2);
    padding-inline: 14px;
}

.mkt-btn--quiet:hover {
    color: var(--mkt-primary);
    background: var(--mkt-primary-50);
}

.mkt-btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

.mkt-btn--lg {
    padding: 17px 34px;
    font-size: 16px;
}

/* The trailing arrow slides toward the reading edge on hover — mirrored in
   RTL so it always points "forward". */
.mkt-btn__arrow {
    display: inline-flex;
    transition: transform 220ms var(--mkt-ease);
}

[dir='rtl'] .mkt-btn__arrow {
    transform: scaleX(-1);
}

.mkt-btn:hover .mkt-btn__arrow {
    transform: translateX(4px);
}

[dir='rtl'] .mkt-btn:hover .mkt-btn__arrow {
    transform: scaleX(-1) translateX(4px);
}

/* Text link with an underline that wipes in from the reading edge. */
.mkt-link {
    position: relative;
    color: var(--mkt-ink-2);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.mkt-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -3px;
    width: 100%;
    height: 1.5px;
    background: currentcolor;
    transform: scaleX(0);
    /* No logical keyword exists for transform-origin, so mirror it by hand. */
    transform-origin: left;
    transition: transform 220ms var(--mkt-ease);
}

[dir='rtl'] .mkt-link::after {
    transform-origin: right;
}

.mkt-link:hover {
    color: var(--mkt-primary);
}

.mkt-link:hover::after {
    transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────
   Nav
   ───────────────────────────────────────────────────────────── */

.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgb(255 255 255 / 72%);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition:
        background-color 220ms var(--mkt-ease),
        border-color 220ms var(--mkt-ease),
        box-shadow 220ms var(--mkt-ease);
}

/* While the search modal is open the nav is the only thing above the scrim,
   so it goes fully solid: at 72% white the dark scrim behind would bleed
   through and mute the very input and close button the modal depends on.
   The class is set on <body> by MarketingSearch. */
body.mkt-search-open .mkt-nav {
    background: var(--mkt-surface);
    border-bottom-color: var(--mkt-line);
    box-shadow: var(--mkt-shadow-sm);
}

/* Solid once the page scrolls past the hero fold. */
.mkt-nav.is-stuck {
    background: rgb(255 255 255 / 92%);
    border-bottom-color: var(--mkt-line);
    box-shadow: var(--mkt-shadow-xs);
}

.mkt-nav__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.mkt-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mkt-ink);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    transition: opacity 140ms var(--mkt-ease);
}

.mkt-nav__brand:hover {
    opacity: 0.75;
}

.mkt-nav__logo {
    height: 49px;
    width: auto;
    display: block;
}

/* ── Section link row ────────────────────────────────────────
   The section links, in the same pills they have always been — but no longer
   attached to the nav at all. They open the page's own first band: the hero on
   the hub, the dark heading band on every sub-page. Nothing sits between the
   bar and the hero any more, and nothing has to be revealed to be found.

   The row carries NO surface of its own. It rides whatever ground the page
   opens with, which is the whole point of moving it here — so the only thing
   it has to do is re-colour itself when that ground is dark. */

.mkt-navrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    /* Pulled toward the bar above it: the row belongs to the page's opening,
       not to the copy underneath, so it sits nearer the nav than the headline. */
    padding-block: 4px 20px;
}

.mkt-navrow__link {
    position: relative;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14.5px;
    font-weight: 600;
    /* Muted by default; full brand colour is reserved for hover, so the row has
       somewhere to go. */
    color: var(--mkt-muted);
    text-decoration: none;
    cursor: pointer;
    transition:
        color 140ms var(--mkt-ease),
        border-color 140ms var(--mkt-ease),
        background-color 140ms var(--mkt-ease),
        box-shadow 140ms var(--mkt-ease),
        transform 140ms var(--mkt-ease);
}

.mkt-navrow__link:hover,
.mkt-navrow__link:focus-visible {
    color: var(--mkt-primary);
    background: var(--mkt-primary-50);
    border-color: var(--mkt-primary-100);
    box-shadow: 0 8px 20px -12px
        color-mix(in srgb, var(--primary) 55%, transparent);
    transform: translateY(-1px);
}

/* The current section is filled outright, not just tinted — it has to hold its
   state while the pointer is elsewhere on the row. */
.mkt-navrow__link.is-active {
    color: var(--mkt-primary);
    background: var(--mkt-primary-100);
    border-color: var(--mkt-primary-200);
}

/* Active underbar, so the current page reads without relying on colour alone. */
.mkt-navrow__link.is-active::after {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    bottom: -1px;
    width: 16px;
    height: 2px;
    margin-inline-start: -8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mkt-primary), var(--mkt-accent));
}

/* ── …on the dark opening bands ──
   Same row, inverted: the light-card pill has no meaning on #150729, so hover
   becomes a lift of light — the --mkt-dark-surface / --mkt-dark-line pair every
   card on a dark band already uses.

   `.story-hero` is BecomeProvider's own opening band (it carries this row
   instead of the shell's heading band, so it needs the same inversion). */

.mkt-page-band .mkt-navrow__link,
.story-hero .mkt-navrow__link {
    color: var(--mkt-on-dark-muted);
}

.mkt-page-band .mkt-navrow__link:hover,
.mkt-page-band .mkt-navrow__link:focus-visible,
.story-hero .mkt-navrow__link:hover,
.story-hero .mkt-navrow__link:focus-visible {
    color: var(--mkt-on-dark);
    background: var(--mkt-dark-surface);
    border-color: var(--mkt-dark-line);
    box-shadow: 0 10px 24px -12px rgb(0 0 0 / 70%);
}

.mkt-page-band .mkt-navrow__link.is-active,
.story-hero .mkt-navrow__link.is-active {
    color: var(--mkt-accent-soft);
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 18%);
}

.mkt-page-band .mkt-navrow__link.is-active::after,
.story-hero .mkt-navrow__link.is-active::after {
    background: linear-gradient(90deg, var(--mkt-accent-soft), var(--mkt-pink));
}

/* ── Nav search ──────────────────────────────────────────────
   Takes the middle of the top row. `flex: 1` with a cap plus auto margins
   means it grows into the free space but stays centred rather than glued to
   the brand once it hits its maximum. */

.mkt-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    max-width: 560px;
    margin-inline: auto;
}

/* Only exists while the overlay is up — it is the way back out. */
.mkt-search__close {
    flex-shrink: 0;
}

.mkt-search__box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    height: 42px;
    padding-inline: 14px;
    border-radius: 999px;
    background: var(--mkt-tint-2);
    border: 1px solid var(--mkt-primary-100);
    transition:
        border-color 160ms var(--mkt-ease),
        box-shadow 160ms var(--mkt-ease);
}

.mkt-search__box:focus-within {
    border-color: var(--mkt-primary-300);
    box-shadow: 0 0 0 4px var(--mkt-primary-50);
}

.mkt-search__icon {
    display: inline-flex;
    color: var(--mkt-muted-2);
    flex-shrink: 0;
}

.mkt-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14.5px;
    color: var(--mkt-ink);
    outline: none;
}

.mkt-search__input::placeholder {
    color: var(--mkt-muted-2);
}

/* Safari draws its own clear button on type=search and it lands on top of
   the rounded edge. */
.mkt-search__input::-webkit-search-decoration,
.mkt-search__input::-webkit-search-cancel-button {
    appearance: none;
}

/* ── Search results modal ────────────────────────────────────
   A modal, on every page of the section: a dimmed scrim across the viewport
   and ONE centred panel carrying both columns.

   It deliberately sits UNDER the nav (z 60). The input that drives it and the
   close button both live up in the bar, so a scrim drawn over them would
   leave the visitor a modal with nothing to type in — which is also why the
   panel is not marked aria-modal: the combobox owning it is outside.

   The panel's own ground is a flowing pink→fuchsia gradient, and the result
   rows ride translucent white cards on top of it, so the modal reads as one
   lit surface instead of a white sheet dropped over the page. */

.mkt-results {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    justify-content: center;
    /* flex-start, not center: the browse state lists every article, so the
       panel is routinely taller than the viewport and has to scroll from its
       top edge rather than overflow off both ends. */
    align-items: flex-start;
    /* Top pad clears the 72px bar — the panel starts below it, not behind. */
    padding: 104px var(--mkt-gutter) 56px;
    background: rgb(11 5 24 / 52%);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    /* The page behind is already scroll-locked; this stops the rubber-band at
       the ends of the scrim from chaining out to it on iOS. */
    overscroll-behavior: contain;
    animation: mkt-fade-in 160ms var(--mkt-ease) both;
}

.mkt-results__panel {
    position: relative;
    width: 100%;
    max-width: var(--mkt-max);
    padding: 40px;
    border-radius: var(--mkt-radius-xl);

    /* Oversized on purpose: background-position has nowhere to travel at
       100%, and the travel is what makes the colour flow. */
    background-size: 220% 220%;
    animation:
        mkt-modal-in 240ms var(--mkt-ease-spring) both,
        mkt-results-flow 24s var(--mkt-ease) infinite alternate;
}

.mkt-results__grid {
    display: grid;
    /* Articles carry an excerpt and a thumbnail, so they need the wider half. */
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.mkt-results__col {
    min-width: 0;
}

.mkt-results__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 20px;
}

.mkt-results__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-results__empty {
    margin: 0;
    font-size: 15px;
    color: rgb(255 255 255 / 78%);
}

/* ── Article result card ── */

.mkt-article {
    border-radius: var(--mkt-radius);
    cursor: pointer;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 16%);
    transition:
        background-color 140ms var(--mkt-ease),
        border-color 140ms var(--mkt-ease);
}

.mkt-article.is-active {
    background: rgb(255 255 255 / 26%);
    border-color: rgb(255 255 255 / 38%);
}

.mkt-article__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.mkt-article__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.mkt-article__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
}

/* On the pink ground the active row is already lighter, so the title marks
   itself by weight of background rather than by turning purple. */
.mkt-article.is-active .mkt-article__title {
    color: #ffffff;
}

/* Three lines, then clip — the excerpts are a full paragraph each and an
   unbounded card would push the rest of the results off screen. */
.mkt-article__excerpt {
    font-size: 14px;
    line-height: 1.7;
    /* 88%: the ground under it is a saturated pink, not a white sheet, so the
       excerpt needs more of the white than a light-theme muted tone would. */
    color: rgb(255 255 255 / 88%);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mkt-article__thumb {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--mkt-radius-sm);
    background: rgb(255 255 255 / 18%);
}

/* ── Page / FAQ / policy result ── */

.mkt-pagehit {
    border-radius: 12px;
    cursor: pointer;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 16%);
    transition:
        background-color 140ms var(--mkt-ease),
        border-color 140ms var(--mkt-ease);
}

.mkt-pagehit.is-active {
    background: rgb(255 255 255 / 26%);
    border-color: rgb(255 255 255 / 38%);
}

.mkt-pagehit__link {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.mkt-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Compact AR/EN switch — the app's LangToggle spells both languages out,
   which is too wide for a marketing bar. */
.mkt-lang {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: var(--mkt-tint-2);
    border: 1px solid var(--mkt-primary-100);
}

.mkt-lang__btn {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--mkt-muted);
    background: transparent;
    cursor: pointer;
    border: 0;
    transition:
        background-color 140ms var(--mkt-ease),
        color 140ms var(--mkt-ease);
}

.mkt-lang__btn.is-on {
    background: var(--mkt-surface);
    color: var(--mkt-primary);
    box-shadow: var(--mkt-shadow-xs);
}

.mkt-nav__burger {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--mkt-line);
    background: var(--mkt-surface);
    color: var(--mkt-ink);
    cursor: pointer;
}

/* Mobile drawer — slides in from the reading edge. Visibility is controlled
   by `v-if` in MarketingNav (the burger that opens it only exists below
   900px), so no display toggling is needed here. */
.mkt-drawer {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.mkt-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgb(11 5 24 / 40%);
    animation: mkt-fade-in 200ms var(--mkt-ease) both;
}

.mkt-drawer__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(88vw, 360px);
    background: var(--mkt-surface);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--mkt-shadow-lg);
    animation: mkt-slide-in-end 280ms var(--mkt-ease) both;
    overflow-y: auto;
}

.mkt-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mkt-drawer__link {
    padding: 13px 14px;
    border-radius: var(--mkt-radius-sm);
    font-size: 16px;
    font-weight: 700;
    color: var(--mkt-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms var(--mkt-ease);
}

.mkt-drawer__link:hover,
.mkt-drawer__link.is-active {
    background: var(--mkt-primary-50);
    color: var(--mkt-primary);
}

.mkt-drawer__foot {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */

.mkt-hero {
    position: relative;
    text-align: center;
    isolation: isolate;
    overflow: clip;
}

/* While the hero's film (components/marketing/HeroFilm) is full-screen, the
   hero has to out-paint everything below it. `isolation: isolate` means the
   film cannot escape this box on its own, and the sections after it are
   positioned with z-index auto — so a later sibling would paint straight over
   a panel that is meant to cover the viewport.

   55 is deliberate: above every section, below the nav (60), which the
   reference also leaves floating over its film. `overflow` opens up for the
   same moment, so a clip meant for drifting mesh blobs cannot crop the panel.
   The class is set on <body> by HeroFilm. */
body.mkt-film-open .mkt-hero {
    z-index: 60;
    overflow: visible;
}

.mkt-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.mkt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

/* ── Split hero ──────────────────────────────────────────────
   Copy against the reading edge, artwork opposite. Source order is copy
   first, so the grid mirrors on its own in RTL and the headline stays the
   first thing a screen reader reaches. */

.mkt-hero--split {
    text-align: start;
}

.mkt-hero--split .mkt-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
}

.mkt-hero--split .mkt-hero__copy,
.mkt-hero--split .mkt-hero__actions {
    align-items: flex-start;
    justify-content: flex-start;
}

.mkt-hero--split .mkt-lead {
    max-width: 46ch;
}

/* Artwork sitting straight on the hero's mesh — no panel, no frame. */
.mkt-figure {
    display: flex;
    justify-content: center;
    margin: 0;
}

/* A soft ground shadow is all that keeps the cutout from looking pasted on;
   with nothing behind it, anything heavier reads as a mistake. */
.mkt-figure__img {
    display: block;
    width: min(100%, 440px);
    height: auto;
    filter: drop-shadow(0 22px 26px rgb(11 5 24 / 14%));
}

/* Blurred gradient mesh behind the hero. Three drifting blobs — cheap
   (transform/opacity only) and GPU-composited, so it costs nothing on scroll. */
.mkt-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: clip;
}

.mkt-mesh__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.42;
    will-change: transform;
}

.mkt-mesh__blob--a {
    width: 520px;
    height: 520px;
    top: -180px;
    inset-inline-start: -120px;
    background: radial-gradient(circle, var(--mkt-primary), transparent 70%);
    animation: mkt-drift-a 22s var(--mkt-ease) infinite alternate;
}

.mkt-mesh__blob--b {
    width: 460px;
    height: 460px;
    top: -80px;
    inset-inline-end: -100px;
    background: radial-gradient(circle, var(--mkt-accent), transparent 70%);
    animation: mkt-drift-b 26s var(--mkt-ease) infinite alternate;
}

.mkt-mesh__blob--c {
    width: 400px;
    height: 400px;
    bottom: -200px;
    inset-inline-start: 40%;
    background: radial-gradient(circle, var(--mkt-accent-2), transparent 70%);
    animation: mkt-drift-c 30s var(--mkt-ease) infinite alternate;
}

/* ─────────────────────────────────────────────────────────────
   Cards & grids
   ───────────────────────────────────────────────────────────── */

.mkt-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.mkt-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.mkt-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.mkt-card {
    position: relative;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-line);
    border-radius: var(--mkt-radius-lg);
    padding: 26px;
    box-shadow: var(--mkt-shadow-xs);
    overflow: hidden;
    transition:
        transform 240ms var(--mkt-ease),
        box-shadow 240ms var(--mkt-ease),
        border-color 240ms var(--mkt-ease);
}

/* Purple wash that fades up from the bottom on hover. */
.mkt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--mkt-primary-50));
    opacity: 0;
    transition: opacity 240ms var(--mkt-ease);
    pointer-events: none;
}

.mkt-card:hover {
    transform: translateY(-4px);
    border-color: var(--mkt-primary-200);
    box-shadow: var(--mkt-shadow-md);
}

.mkt-card:hover::before {
    opacity: 1;
}

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

/* ── Pointer spotlight ──────────────────────────────────────────
   CursorGlow publishes the pointer's card-local position as --mkt-mx /
   --mkt-my on whichever card it is over; this draws the highlight there. The
   variables only ever exist on that one card, so the fallback (dead centre)
   is what every other card renders — invisible at opacity 0 anyway.

   Written once for all three card kinds. `.hub-card` and `.plat__panel` are
   scoped component styles, but a plain class selector still reaches them:
   scoping only narrows the component's OWN rules. */
.mkt-card::after,
.hub-card::after,
.plat__panel::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    background: radial-gradient(
        220px circle at var(--mkt-mx, 50%) var(--mkt-my, 50%),
        color-mix(in srgb, var(--primary) 12%, transparent),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 260ms var(--mkt-ease);
    pointer-events: none;
}

.mkt-card:hover::after,
.hub-card:hover::after,
.plat__panel:hover::after {
    opacity: 1;
}

/* Both carry their own content stacking; keep it above the spotlight. */
.hub-card > *,
.plat__panel > * {
    position: relative;
    z-index: 1;
}

/* …except the hub card's glow, which belongs behind everything. */
.hub-card > .hub-card__glow {
    z-index: -1;
}

/* On the dark bands purple-on-dark barely registers — lift the spotlight to
   white and let it read as a sheen instead. */
.mkt-section--dark .mkt-card::after,
.mkt-section--dark .plat__panel::after {
    background: radial-gradient(
        220px circle at var(--mkt-mx, 50%) var(--mkt-my, 50%),
        rgb(255 255 255 / 10%),
        transparent 70%
    );
}

.mkt-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--mkt-primary-50);
    color: var(--mkt-primary);
    border: 1px solid var(--mkt-primary-100);
    margin-bottom: 16px;
    transition:
        transform 240ms var(--mkt-ease-spring),
        background-color 240ms var(--mkt-ease);
}

.mkt-card:hover .mkt-card__icon {
    transform: translateY(-2px) rotate(-6deg) scale(1.06);
    background: var(--mkt-primary-100);
}

.mkt-card__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--mkt-ink);
    margin-bottom: 6px;
}

[dir='rtl'] .mkt-card__title {
    letter-spacing: 0;
}

.mkt-card__desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--mkt-muted);
}

/* The "go" chevron in the card corner. */
.mkt-card__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mkt-primary);
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 240ms var(--mkt-ease),
        transform 240ms var(--mkt-ease);
}

.mkt-card:hover .mkt-card__go,
.mkt-card:focus-visible .mkt-card__go {
    opacity: 1;
    transform: none;
}

/* Keyboard users never hover, so never see the affordance otherwise. */
.mkt-card:focus-within .mkt-card__go {
    opacity: 1;
    transform: none;
}

/* Numbered step, for "how it works" style lists. */
.mkt-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mkt-primary);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: var(--mkt-shadow-purple);
}

/* ─────────────────────────────────────────────────────────────
   Section headings
   ───────────────────────────────────────────────────────────── */

.mkt-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.mkt-head--center {
    align-items: center;
    text-align: center;
}

.mkt-head--center .mkt-lead {
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   Breadcrumb (marketing variant)
   ───────────────────────────────────────────────────────────── */

.mkt-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mkt-muted-2);
    margin-bottom: 18px;
}

.mkt-crumb a {
    color: var(--mkt-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 140ms var(--mkt-ease);
}

.mkt-crumb a:hover {
    color: var(--mkt-primary);
}

.mkt-crumb .cur {
    color: var(--mkt-primary);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */

/* Four stacked bands — brand/stores, link columns, contact prompt, legal —
   separated by hairlines. Every rule here is direction-agnostic (logical
   properties and flex flow only), so RTL mirrors the whole footer for free. */
.mkt-footer {
    position: relative;
    background: var(--mkt-surface);
    border-top: 1px solid var(--mkt-line);
    padding-block: 44px 28px;
    overflow: clip;
    isolation: isolate;
}

/* Soft purple glow anchored to the far corner, echoing the hero mesh. */
.mkt-footer::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: -220px;
    inset-inline-end: -140px;
    width: 620px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgb(167 139 250 / 40%),
        transparent 68%
    );
    filter: blur(60px);
    pointer-events: none;
}

/* ── Band 1: brand ↔ store badges ── */

.mkt-footer__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--mkt-line);
}

.mkt-footer__apps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mkt-footer__apps-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--mkt-ink);
}

/* Badge, not a button: a store lockup reads as artwork, so it keeps a quiet
   surface and only lifts on hover. */
.mkt-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 12px;
    border: 1px solid var(--mkt-line-strong);
    background: var(--mkt-surface);
    color: var(--mkt-ink);
    text-decoration: none;
    transition:
        transform 180ms var(--mkt-ease),
        border-color 160ms var(--mkt-ease),
        background-color 160ms var(--mkt-ease);
}

.mkt-store:hover {
    transform: translateY(-2px);
    border-color: var(--mkt-primary-300);
}

.mkt-store__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: start;
}

.mkt-store__text small {
    font-size: 10px;
    letter-spacing: 0.02em;
    opacity: 0.72;
}

.mkt-store__text strong {
    font-size: 15px;
    font-weight: 800;
}

/* ── Band 2: link columns ── */

.mkt-footer__top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr;
    gap: 36px;
    padding-block: 48px 44px;
}

.mkt-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mkt-footer__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--mkt-ink);
    margin-bottom: 4px;
}

.mkt-footer__link {
    font-size: 14px;
    color: var(--mkt-muted);
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
    background: none;
    border: 0;
    padding: 0;
    text-align: start;
    font-family: inherit;
    transition:
        color 140ms var(--mkt-ease),
        transform 180ms var(--mkt-ease);
}

.mkt-footer__link:hover {
    color: var(--mkt-primary);
    transform: translateX(2px);
}

[dir='rtl'] .mkt-footer__link:hover {
    transform: translateX(-2px);
}

.mkt-footer__subcol {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mkt-footer__tagline {
    font-size: 14px;
    line-height: 1.65;
    color: var(--mkt-muted);
    max-width: 40ch;
}

.mkt-sub {
    display: flex;
    gap: 8px;
    background: var(--mkt-tint-2);
    border: 1px solid var(--mkt-primary-100);
    border-radius: 999px;
    padding: 5px;
    max-width: 380px;
    transition:
        border-color 160ms var(--mkt-ease),
        box-shadow 160ms var(--mkt-ease);
}

.mkt-sub:focus-within {
    border-color: var(--mkt-primary-300);
    box-shadow: 0 0 0 4px var(--mkt-primary-50);
}

.mkt-sub__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding-inline: 16px;
    font: inherit;
    font-size: 14px;
    color: var(--mkt-ink);
    outline: none;
}

.mkt-sub__input::placeholder {
    color: var(--mkt-muted-2);
}

.mkt-footer__social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mkt-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--mkt-line);
    background: var(--mkt-surface);
    color: var(--mkt-ink-2);
    transition:
        transform 200ms var(--mkt-ease-spring),
        background-color 160ms var(--mkt-ease),
        color 160ms var(--mkt-ease),
        border-color 160ms var(--mkt-ease);
}

.mkt-social:hover {
    transform: translateY(-3px);
    background: var(--mkt-primary);
    border-color: var(--mkt-primary);
    color: #fff;
}

/* ── Band 3: contact prompt ↔ socials ── */

.mkt-footer__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 26px;
    border-top: 1px solid var(--mkt-line);
}

.mkt-footer__ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.mkt-footer__ask-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--mkt-ink);
}

/* ── Band 4: legal ── */

.mkt-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--mkt-line);
    font-size: 13px;
    color: var(--mkt-muted-2);
}

.mkt-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ─────────────────────────────────────────────────────────────
   Dark bands
   ─────────────────────────────────────────────────────────────
   `.mkt-section--dark` flips a whole band to the deep-purple ground with a
   saturated mesh baked into the background (no extra elements, so any
   section can opt in by adding one class). Everything below re-points the
   shared primitives — type, cards, eyebrows, buttons — for that ground, so
   the markup inside a dark band is identical to a light one.

   The page alternates light and dark rather than going dark throughout: the
   contrast is what makes each band read as its own chapter.
   ───────────────────────────────────────────────────────────── */

.mkt-section--dark {
    isolation: isolate;
    overflow: clip;
    color: var(--mkt-on-dark);
    background:
        radial-gradient(
            900px 460px at 10% -10%,
            rgb(217 70 239 / 34%),
            transparent 62%
        ),
        radial-gradient(
            820px 460px at 92% 110%,
            rgb(99 102 241 / 38%),
            transparent 60%
        ),
        radial-gradient(
            560px 320px at 68% 8%,
            rgb(251 113 133 / 18%),
            transparent 66%
        ),
        linear-gradient(158deg, var(--mkt-dark), var(--mkt-dark-2));
}

/* Hairline seams so two dark bands separated by a light one still feel like
   the same system, and so the band edge is not a hard cut. */
.mkt-section--dark::before,
.mkt-section--dark::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(240 171 252 / 45%),
        transparent
    );
    pointer-events: none;
}

.mkt-section--dark::before {
    inset-block-start: 0;
}

.mkt-section--dark::after {
    inset-block-end: 0;
}

.mkt-section--dark .mkt-h1,
.mkt-section--dark .mkt-h2,
.mkt-section--dark .mkt-h3 {
    color: var(--mkt-on-dark);
}

.mkt-section--dark .mkt-lead,
.mkt-section--dark .mkt-body {
    color: var(--mkt-on-dark-muted);
}

.mkt-section--dark .mkt-eyebrow {
    color: var(--mkt-accent-soft);
    background: rgb(217 70 239 / 16%);
    border-color: rgb(240 171 252 / 32%);
}

/* Cards become translucent glass so the mesh reads through them. */
.mkt-section--dark .mkt-card {
    background: var(--mkt-dark-surface);
    border-color: var(--mkt-dark-line);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.mkt-section--dark .mkt-card::before {
    background: linear-gradient(180deg, transparent 30%, rgb(217 70 239 / 22%));
}

.mkt-section--dark .mkt-card:hover {
    border-color: rgb(240 171 252 / 48%);
    box-shadow: 0 26px 60px -26px rgb(217 70 239 / 55%);
}

.mkt-section--dark .mkt-card__title {
    color: var(--mkt-on-dark);
}

.mkt-section--dark .mkt-card__desc {
    color: var(--mkt-on-dark-muted);
}

.mkt-section--dark .mkt-card__icon {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 20%);
    color: var(--mkt-accent-soft);
}

.mkt-section--dark .mkt-card:hover .mkt-card__icon {
    background: rgb(217 70 239 / 28%);
    color: #fff;
}

.mkt-section--dark .mkt-card__go {
    color: var(--mkt-accent-soft);
}

.mkt-section--dark .mkt-step__num {
    background: linear-gradient(
        135deg,
        var(--mkt-accent) 0%,
        var(--mkt-primary) 100%
    );
    box-shadow: 0 10px 26px -8px rgb(217 70 239 / 70%);
}

.mkt-section--dark .mkt-link {
    color: var(--mkt-accent-soft);
}

.mkt-section--dark .mkt-btn--ghost {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 26%);
    color: var(--mkt-on-dark);
}

.mkt-section--dark .mkt-btn--ghost:hover {
    background: rgb(255 255 255 / 14%);
    border-color: var(--mkt-accent-soft);
    color: #fff;
}

/* The primary button has to out-glow a band that is already saturated. */
.mkt-section--dark .mkt-btn--primary {
    background: linear-gradient(
        120deg,
        var(--mkt-accent) 0%,
        var(--mkt-primary) 100%
    );
    box-shadow: 0 16px 40px -14px rgb(217 70 239 / 75%);
}

.mkt-section--dark .mkt-btn--primary:hover {
    background: linear-gradient(
        120deg,
        var(--mkt-accent-2) 0%,
        var(--mkt-accent) 100%
    );
}

/* ── Dark footer ────────────────────────────────────────────
   The footer is the one dark band every page in the section gets, so the
   sub-pages read as part of the same site as the hub. */

.mkt-footer {
    color: var(--mkt-on-dark);
    border-top: 0;
    background:
        radial-gradient(
            760px 420px at 8% 0%,
            rgb(217 70 239 / 26%),
            transparent 62%
        ),
        linear-gradient(160deg, var(--mkt-dark), var(--mkt-dark-2));
}

.mkt-footer::after {
    background: radial-gradient(circle, rgb(99 102 241 / 55%), transparent 68%);
}

.mkt-footer__title,
.mkt-footer__apps-label,
.mkt-footer__ask-text {
    color: var(--mkt-on-dark);
}

.mkt-footer__link,
.mkt-footer__tagline,
.mkt-footer .mkt-body {
    color: var(--mkt-on-dark-muted);
}

.mkt-footer__head,
.mkt-footer__cta {
    border-color: rgb(255 255 255 / 14%);
}

.mkt-store {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 18%);
    color: var(--mkt-on-dark);
}

.mkt-store:hover {
    background: rgb(255 255 255 / 14%);
    border-color: var(--mkt-accent-soft);
}

/* The footer is dark but is not a `.mkt-section--dark`, so the ghost button
   needs the same treatment spelled out here. */
.mkt-footer .mkt-btn--ghost {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 26%);
    color: var(--mkt-on-dark);
    box-shadow: none;
}

.mkt-footer .mkt-btn--ghost:hover {
    background: rgb(255 255 255 / 14%);
    border-color: var(--mkt-accent-soft);
    color: #fff;
}

.mkt-footer .mkt-btn--primary {
    background: linear-gradient(
        120deg,
        var(--mkt-accent) 0%,
        var(--mkt-primary) 100%
    );
    box-shadow: 0 14px 34px -14px rgb(217 70 239 / 75%);
}

.mkt-footer__link:hover {
    color: var(--mkt-accent-soft);
}

/* The logo is purple-and-coral on transparent — on this ground it needs to
   read as white rather than disappear into the plum. brightness(0) flattens
   both inks to black regardless of hue and leaves alpha alone, so invert(1)
   gives a clean white mark. Shorter than in the nav so it sits level with the
   store badges beside it. */
.mkt-footer .mkt-nav__logo {
    height: 37px;
    filter: brightness(0) invert(1);
}

.mkt-sub {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 20%);
}

.mkt-sub:focus-within {
    border-color: var(--mkt-accent-soft);
    box-shadow: 0 0 0 4px rgb(217 70 239 / 22%);
}

.mkt-sub__input {
    color: var(--mkt-on-dark);
}

.mkt-sub__input::placeholder {
    color: rgb(232 224 255 / 50%);
}

.mkt-social {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 18%);
    color: var(--mkt-on-dark);
}

.mkt-social:hover {
    background: var(--mkt-accent);
    border-color: var(--mkt-accent);
}

.mkt-footer__bottom {
    border-top-color: rgb(255 255 255 / 14%);
    color: rgb(232 224 255 / 58%);
}

/* ─────────────────────────────────────────────────────────────
   Closing CTA card
   ─────────────────────────────────────────────────────────────
   The last thing on a page, so it is the most saturated: the dark band
   treatment, pulled into a rounded card instead of running full-bleed.
   Shared by the hub and the portfolio (it used to be scoped to the hub);
   the card carries an `.mkt-mesh` of its own for the drifting blobs.
   ───────────────────────────────────────────────────────────── */

.mkt-cta {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 82px 32px;
    border-radius: var(--mkt-radius-xl);
    border: 1px solid rgb(240 171 252 / 30%);
    color: var(--mkt-on-dark);
    background:
        radial-gradient(
            700px 380px at 14% 0%,
            rgb(217 70 239 / 42%),
            transparent 62%
        ),
        radial-gradient(
            620px 360px at 88% 100%,
            rgb(99 102 241 / 46%),
            transparent 60%
        ),
        linear-gradient(150deg, var(--mkt-dark), var(--mkt-dark-2));
    box-shadow: 0 40px 90px -40px rgb(88 28 135 / 60%);
}

.mkt-cta .mkt-h2 {
    color: var(--mkt-on-dark);
}

.mkt-cta .mkt-lead {
    color: var(--mkt-on-dark-muted);
}

.mkt-cta .mkt-btn--primary {
    background: linear-gradient(
        120deg,
        var(--mkt-accent) 0%,
        var(--mkt-primary) 100%
    );
    box-shadow: 0 18px 44px -14px rgb(217 70 239 / 80%);
}

.mkt-cta .mkt-btn--ghost {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 28%);
    color: var(--mkt-on-dark);
}

.mkt-cta .mkt-btn--ghost:hover {
    background: rgb(255 255 255 / 16%);
    border-color: var(--mkt-accent-soft);
    color: #fff;
}

/* The mesh blobs inside the card sit on a dark ground now, so they need to
   glow rather than tint. */
.mkt-cta .mkt-mesh__blob {
    opacity: 0.55;
}

@media (max-width: 900px) {
    .mkt-cta {
        padding: 48px 20px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Scroll-reveal animations
   ─────────────────────────────────────────────────────────────
   The `reveal` directive (lib/reveal.ts) adds `.mkt-reveal` on mount and
   `.is-in` when the element first intersects. The hidden state is applied
   client-side only, so server-rendered HTML is fully visible for crawlers
   and for anyone whose JS never boots.
   ───────────────────────────────────────────────────────────── */

.mkt-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 620ms var(--mkt-ease),
        transform 620ms var(--mkt-ease);
    transition-delay: var(--mkt-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.mkt-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Directional variants for side-by-side blocks. */
.mkt-reveal--start {
    transform: translateX(-26px);
}

[dir='rtl'] .mkt-reveal--start {
    transform: translateX(26px);
}

.mkt-reveal--end {
    transform: translateX(26px);
}

[dir='rtl'] .mkt-reveal--end {
    transform: translateX(-26px);
}

.mkt-reveal--scale {
    transform: scale(0.96);
}

.mkt-reveal--start.is-in,
.mkt-reveal--end.is-in,
.mkt-reveal--scale.is-in {
    transform: none;
}

@keyframes mkt-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mkt-slide-in-end {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

[dir='rtl'] .mkt-drawer__panel {
    animation-name: mkt-slide-in-start;
}

@keyframes mkt-slide-in-start {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* The search modal: rises the last few pixels into place. */
@keyframes mkt-modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* …and its ground keeps moving while it is open — the pink flow. */
@keyframes mkt-results-flow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

@keyframes mkt-drift-a {
    to {
        transform: translate3d(60px, 40px, 0) scale(1.12);
    }
}

@keyframes mkt-drift-b {
    to {
        transform: translate3d(-50px, 60px, 0) scale(1.08);
    }
}

@keyframes mkt-drift-c {
    to {
        transform: translate3d(-70px, -30px, 0) scale(1.15);
    }
}

/* ─────────────────────────────────────────────────────────────
   Legacy class bridge
   ─────────────────────────────────────────────────────────────
   The six /company sub-pages were written against app.css primitives
   (.card, .btn, .input, .page-title…). Rather than rewrite every one, we
   restyle those classes INSIDE `.mkt` only. App pages keep the originals.
   ───────────────────────────────────────────────────────────── */

.mkt .card {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-line);
    border-radius: var(--mkt-radius-lg);
    box-shadow: var(--mkt-shadow-xs);
    padding: 26px;
    transition:
        transform 240ms var(--mkt-ease),
        box-shadow 240ms var(--mkt-ease),
        border-color 240ms var(--mkt-ease);
}

.mkt .card:hover {
    border-color: var(--mkt-primary-200);
    box-shadow: var(--mkt-shadow-md);
}

.mkt .btn {
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 180ms var(--mkt-ease),
        box-shadow 180ms var(--mkt-ease),
        background-color 140ms var(--mkt-ease);
}

.mkt .btn:active {
    transform: translateY(1px) scale(0.985);
}

.mkt .btn-primary {
    background: var(--mkt-primary);
    box-shadow: var(--mkt-shadow-purple);
}

.mkt .btn-primary:hover {
    background: var(--mkt-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px
        color-mix(in srgb, var(--primary) 60%, transparent);
}

.mkt .btn-outline {
    border-color: var(--mkt-line-strong);
    color: var(--mkt-ink);
}

.mkt .btn-outline:hover {
    border-color: var(--mkt-primary-300);
    color: var(--mkt-primary);
    transform: translateY(-2px);
}

.mkt .btn-sm {
    padding: 9px 17px;
    font-size: 14px;
}

.mkt .input,
.mkt .textarea,
.mkt .select {
    border-radius: var(--mkt-radius-sm);
    border: 1px solid var(--mkt-line-strong);
    font-size: 15px;
    padding: 13px 15px;
    transition:
        border-color 160ms var(--mkt-ease),
        box-shadow 160ms var(--mkt-ease);
}

.mkt .input:focus,
.mkt .textarea:focus,
.mkt .select:focus {
    border-color: var(--mkt-primary-300);
    box-shadow: 0 0 0 4px var(--mkt-primary-50);
}

.mkt .page-title {
    font-size: clamp(32px, 4.5vw, 52px);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

[dir='rtl'] .mkt .page-title {
    letter-spacing: 0;
    line-height: 1.25;
}

.mkt .page-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--mkt-muted);
    max-width: 62ch;
    margin-top: 14px;
}

.mkt .badge-purple {
    background: var(--mkt-primary-50);
    color: var(--mkt-primary);
    border: 1px solid var(--mkt-primary-100);
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .mkt-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .mkt-footer__subcol {
        grid-column: 1 / -1;
        order: -1;
        padding-bottom: 12px;
    }
}

@media (max-width: 900px) {
    .mkt {
        --mkt-section-y: 76px;
        --mkt-gutter: 20px;
    }

    /* Five pills would wrap to three lines at the top of the hero at this
       width — the burger drawer carries the same sections instead. */
    .mkt-navrow {
        display: none;
    }

    /* The search stays in the bar at every width — see MarketingNav for why
       it must not move into the drawer. It just gets tighter, and the logo
       gives up the room. */
    .mkt-nav__inner {
        gap: 12px;
    }

    .mkt-nav__logo {
        height: 43px;
    }

    .mkt-search {
        gap: 6px;
        margin-inline: 0;
    }

    /* One column, and less headroom — the logo shrinks here, so the bar is
       shorter than on desktop. The panel keeps its shape, just tighter:
       full-width with a small inset, so it still reads as a modal card. */
    .mkt-results {
        padding: 92px 12px 32px;
    }

    .mkt-results__panel {
        padding: 22px 18px 28px;
        border-radius: var(--mkt-radius-lg);
    }

    .mkt-results__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .mkt-article__thumb {
        width: 108px;
        height: 76px;
    }

    .mkt-nav__actions .mkt-lang,
    .mkt-nav__actions .mkt-btn--quiet {
        display: none;
    }

    .mkt-nav__burger {
        display: inline-flex;
    }

    .mkt-hero {
        padding-block: 64px 56px;
    }

    /* Too narrow for two columns — the copy stacks over the artwork and
       re-centres, which is the plain hero shape again. */
    .mkt-hero--split,
    .mkt-hero--split .mkt-hero__copy,
    .mkt-hero--split .mkt-hero__actions {
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .mkt-hero--split .mkt-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .mkt-hero--split .mkt-lead {
        max-width: 62ch;
    }

    .mkt-head {
        margin-bottom: 34px;
    }
}

/* Below this the bar can no longer hold four items on one line. The fixed
   content alone — logo ~208px, the CTA ~140px, the burger 42px, plus gaps and
   the gutter — is already ~464px, and `.mkt-search` is the only elastic item
   (both its siblings are flex-shrink: 0). It would squeeze down to the ~45px
   floor of `.mkt-search__box` (icon + padding, the input having min-width: 0)
   and render as an empty circle with a clipped placeholder. Opening the search
   then injects `.mkt-search__close`, another ~70px that nothing can absorb, so
   the row overflowed and "إغلاق" collided with the purple CTA.

   The search gets its own full-width row instead — same shape as the storefront
   navbar on phones. */
@media (max-width: 760px) {
    .mkt-nav__inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        padding-block: 8px;
        row-gap: 8px;
    }

    .mkt-nav__brand {
        order: 0;
    }

    /* Pushed to the far end of row one; the CTA and burger ride along. */
    .mkt-nav__actions {
        order: 1;
        margin-inline-start: auto;
    }

    /* The 100% flex-basis is what forces the wrap — no spacer element needed. */
    .mkt-search {
        order: 2;
        flex: 1 0 100%;
        max-width: none;
        margin-inline: 0;
    }

    .mkt-nav__logo {
        height: 37px;
    }

    /* Scoped to the bar so page-level small buttons keep their sizing. */
    .mkt-nav__actions .mkt-btn--sm {
        padding: 9px 14px;
        font-size: 13px;
    }

    /* The results overlay is teleported to <body>, so its top padding is what
       clears the sticky bar — which is a row taller here. */
    .mkt-results {
        padding-top: 132px;
    }
}

@media (max-width: 560px) {
    .mkt-footer__top {
        grid-template-columns: 1fr;
    }

    /* Below this the two bands can no longer sit side by side without the
       badges wrapping mid-row, so both stack against the reading edge. */
    .mkt-footer__head,
    .mkt-footer__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* The badge group is a shrink-to-fit child of the now-column head, so it
       needs an explicit full width before the badges have a box to fill. */
    .mkt-footer__apps {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    /* `flex: 1 1 auto` sized each badge from its own text, so "Google Play"
       always came out wider than "App Store". Stacked and stretched, the two
       are identical — and the label gets its own line instead of stealing half
       the first row. `0 0 auto` is required, not cosmetic: in a column
       container the old `flex-grow: 1` would stretch the badges vertically. */
    .mkt-store {
        flex: 0 0 auto;
    }

    .mkt-hero__actions .mkt-btn {
        width: 100%;
    }

    .mkt-card {
        padding: 22px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Reduced motion — kill every decorative movement, keep the end state.
   ───────────────────────────────────────────────────────────── */

/* `.mkt-portal` is listed too: the drawer and the search modal are teleported
   to <body>, outside the shell, so `.mkt *` never reaches them. */
@media (prefers-reduced-motion: reduce) {
    .mkt *,
    .mkt *::before,
    .mkt *::after,
    .mkt-portal,
    .mkt-portal *,
    .mkt-portal *::before,
    .mkt-portal *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mkt-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
