/* TS v2.3 - 11.16.2026 */
/* Mazeh product page (/mazeh/ and /he/mazeh/), and the few rules the Mazeh
   privacy page (/mazeh/privacy/) borrows from it. Loaded after styles.css.

   The idea: Israeli street signs at night. The page is dark; the app's own
   pictures are the light in it. Each sign throws a glow in its own colour
   (enamel blue, licence-plate yellow, tile white) onto a navy aurora, under a
   fine grain. Glass cards with 1px light borders hold everything else.
   Sign yellow is the one loud colour and is used sparingly: the news plate,
   the chosen language, the best-value badge, the term chips.

   Everything new is prefixed mz-. The older mazeh-* names that js/mazeh.js
   or the privacy page rely on are kept. */

:root {
    /* Mazeh's own sign colours, from the app's design system */
    --mazeh-enamel: #1d4696;
    --mazeh-sign-white: #fbfaf6;
    --mazeh-plate-yellow: #f2c200;
    --mazeh-plate-black: #16181d;
    /* Background of the app's pictures in img/mazeh/, so their frames have no visible seam */
    --mazeh-art-bg: #1c1c1c;

    /* Page tokens */
    --mz-electric: #3d7bff;
    --mz-sky: #38bdf8;
    --mz-text: var(--mazeh-sign-white);
    --mz-muted: #a6abb8;
    --mz-faint: #8a8f9c;
    --mz-line: rgba(255, 255, 255, 0.1);
    --mz-line-strong: rgba(255, 255, 255, 0.2);
    --mz-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
    --mz-glass-flat: rgba(255, 255, 255, 0.04);
    --mz-radius: 22px;
    --mz-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Glows, one per kind of sign */
    --mz-glow-blue: rgba(61, 123, 255, 0.55);
    --mz-glow-yellow: rgba(242, 194, 0, 0.45);
    --mz-glow-white: rgba(220, 230, 255, 0.35);
    --mz-glow-green: rgba(34, 160, 90, 0.45);
    /* Film grain, drawn in the stylesheet (no image file) */
    --mz-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

/* The page you are on, in the top menu (also used by the privacy page) */
.nav-link[aria-current="page"] {
    color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   What shows when
   The pages are written for today: both downloads translate into English,
   Russian and French, and the Subscribe buttons carry the checkout link.
   js/mazeh.js puts an "-off" class on <html> only when a switch at its top is
   turned off; the parts marked data-when then leave the page. If the script
   does not load, the page stays as written.
   -------------------------------------------------------------------------- */
html.mazeh-langs-off [data-when~="langs-on"],
html.mazeh-langs-mac-off [data-when~="langs-mac"],
html.mazeh-langs-windows-off [data-when~="langs-windows"],
html.mazeh-langs-mac-off [data-when~="langs-both"],
html.mazeh-langs-windows-off [data-when~="langs-both"],
html.mazeh-purchase-off [data-when~="purchase-live"],
html.mazeh-purchase-off [data-purchase-cta] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Shared with the privacy page: keep as they are
   -------------------------------------------------------------------------- */
.mazeh-page .section h2 {
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.mazeh-mail {
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 233, 0.5);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.mazeh-mail:hover {
    color: var(--accent-cyan);
}

/* Hebrew set as the app sets it, in the print serif of Israeli street signs */
.mazeh-hebrew {
    font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
    font-weight: 500;
}

/* ==========================================================================
   The landing page
   ========================================================================== */
.mz-landing {
    position: relative;
    isolation: isolate;
    color: var(--mz-text);
}

.mz-landing img {
    max-width: 100%;
}

.mz-section {
    position: relative;
    padding: 7rem 0;
}

.mz-section + .mz-section {
    padding-top: 2rem;
}

.mz-hero + .mz-section {
    padding-top: 4.5rem;
}

/* A section heading, its lead line, and the air under them */
.mz-head {
    max-width: 46rem;
    margin-bottom: 3.25rem;
}

.mz-h2 {
    margin: 0 0 1rem;
    color: var(--mz-text);
    font-size: clamp(2rem, 1.1rem + 2.4vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.mz-h3 {
    margin: 0;
    color: var(--mz-text);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.mz-lead {
    max-width: 40rem;
    color: var(--mz-muted);
    font-size: 1.125rem;
    line-height: 1.65;
    text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Buttons
   Every Download for Mac carries the Apple mark and is the lit, primary one.
   Every Download for Windows carries the four panes and is glass.
   -------------------------------------------------------------------------- */
.mz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s var(--mz-ease), box-shadow 0.3s var(--mz-ease), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.mz-btn svg {
    flex: none;
    width: 1.15em;
    height: 1.15em;
}

.mz-btn:focus-visible,
.mz-link:focus-visible,
.mazeh-demo-tab:focus-visible,
.mz-faq summary:focus-visible {
    outline: 2px solid var(--mz-sky);
    outline-offset: 3px;
}

.mz-btn--mac {
    color: #fff;
    background: linear-gradient(135deg, #4cc3ff 0%, #2f74ff 45%, #1d4696 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 12px 30px -8px rgba(47, 116, 255, 0.75),
        0 0 48px -6px rgba(56, 189, 248, 0.45);
}

.mz-btn--mac svg {
    margin-top: -0.12em; /* the Apple mark sits high in its box */
}

.mz-btn--mac:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 16px 38px -8px rgba(47, 116, 255, 0.9),
        0 0 70px -4px rgba(56, 189, 248, 0.6);
}

.mz-btn--win {
    color: var(--mz-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -14px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

.mz-btn--win svg {
    color: #6fa8ff;
    width: 1em;
    height: 1em;
}

.mz-btn--win:hover {
    transform: translateY(-2px);
    background: rgba(61, 123, 255, 0.14);
    border-color: rgba(125, 170, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 44px -8px rgba(61, 123, 255, 0.65);
}

/* Subscribe, and quieter ways on */
.mz-btn--ghost {
    min-height: 2.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--mz-text);
    background: transparent;
    border-color: var(--mz-line-strong);
    font-size: 0.975rem;
}

.mz-btn--ghost:hover {
    border-color: var(--mazeh-plate-yellow);
    color: var(--mazeh-plate-yellow);
}

.mz-link {
    color: var(--mz-muted);
    font-size: 0.975rem;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 5px;
}

.mz-link:hover {
    color: var(--mz-text);
    text-decoration-color: var(--mz-sky);
}

/* Version and size of the current Mac release, refreshed from /get/mazeh/update.json */
.mazeh-release {
    color: var(--mz-faint);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.mz-hero {
    position: relative;
    padding: 10.5rem 0 4rem;
    overflow: hidden;
}

/* The aurora: navy and electric blue, drifting slowly behind the signs */
.mz-hero::before {
    content: '';
    position: absolute;
    inset: -10% -10% 0;
    z-index: -1;
    pointer-events: none;
    background:
        var(--mz-grain) 0 0 / 180px 180px,
        radial-gradient(38% 46% at 74% 42%, rgba(29, 70, 150, 0.75), transparent 70%),
        radial-gradient(30% 36% at 88% 18%, rgba(61, 123, 255, 0.35), transparent 70%),
        radial-gradient(34% 40% at 58% 78%, rgba(14, 165, 233, 0.18), transparent 70%),
        radial-gradient(40% 50% at 8% 12%, rgba(29, 70, 150, 0.32), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
    mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.mz-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
    row-gap: 2.5rem;
    align-items: center;
}

/* The news line: a licence plate, used once */
.mz-news {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 1.75rem;
}

.mz-news-plate {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: var(--mazeh-plate-yellow);
    border-radius: 7px;
    box-shadow:
        inset 0 0 0 2px var(--mazeh-plate-yellow),
        inset 0 0 0 3px var(--mazeh-plate-black),
        0 0 30px -4px rgba(242, 194, 0, 0.45);
    color: var(--mazeh-plate-black);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.mz-news-where {
    color: var(--mz-muted);
    font-size: 0.9rem;
}

.mz-title {
    margin: 0 0 1.5rem;
}

.mz-wordmark {
    display: block;
    width: fit-content;
    margin-bottom: 0.85rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #7cc8ff, var(--mz-electric));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mz-headline {
    display: block;
    color: var(--mz-text);
    font-size: clamp(2.5rem, 1.15rem + 3.7vw, 4.35rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.mz-headline > span {
    display: block;
    text-wrap: balance;
}

.mz-headline > span + span {
    color: rgba(251, 250, 246, 0.62);
}

/* "your language." stays on one line, so a break falls after "Read it in" */
.mz-keep {
    white-space: nowrap;
}

.mz-definition {
    max-width: 34rem;
    margin-bottom: 0.9rem;
    color: var(--mz-text);
    font-size: 1.1875rem;
    font-weight: 400;
    line-height: 1.55;
    text-wrap: pretty;
}

.mz-subtitle {
    max-width: 34rem;
    margin-bottom: 2.25rem;
    color: var(--mz-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.mz-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.mz-cta-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.1rem;
}

.mz-meta {
    display: grid;
    gap: 0.2rem;
    margin-top: 1.5rem;
}

.mz-meta .mazeh-pricing {
    color: var(--mz-muted);
    font-size: 0.9375rem;
}

/* Trust chips, from what the page already says */
.mz-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 4rem 0 0;
    padding: 0;
    list-style: none;
}

.mz-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem 0.6rem 0.9rem;
    background: var(--mz-glass-flat);
    border: 1px solid var(--mz-line);
    border-radius: var(--radius-full);
    color: var(--mz-text);
    font-size: 0.9375rem;
    line-height: 1.3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

html[dir="rtl"] .mz-trust li {
    padding: 0.6rem 0.9rem 0.6rem 1.1rem;
}

.mz-trust svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: #7cb4ff;
}

/* --------------------------------------------------------------------------
   The floating stage: the app's real pictures at different depths.
   Each layer's place and tilt is set here; the float is an animation on an
   inner wrapper, and the pointer parallax is a translate on the layer, fed by
   --mx/--my from js/mazeh.js. The three never fight over one property.
   -------------------------------------------------------------------------- */
.mz-stage {
    --mx: 0;
    --my: 0;
    position: relative;
    padding: 6.75rem 0 7.5rem;
}

/* A soft pool of light under the whole composition */
.mz-stage::before {
    content: '';
    position: absolute;
    inset: 12% 4% 8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 116, 255, 0.4), transparent);
    filter: blur(30px);
}

.mz-layer {
    position: absolute;
    translate: calc(var(--mx) * var(--d, 0) * -1px) calc(var(--my) * var(--d, 0) * -1px);
    transition: translate 0.7s var(--mz-ease);
}

.mz-layer--front {
    --d: 8;
    position: relative;
    z-index: 3;
    width: 88%;
    margin-inline-start: 7%;
}

.mz-layer--back {
    --d: 20;
    z-index: 1;
    top: 0;
    inset-inline-end: -2%;
    width: 60%;
}

.mz-layer--low {
    --d: 28;
    z-index: 2;
    bottom: 0;
    inset-inline-start: -2%;
    width: 58%;
}

.mz-layer--icon {
    --d: 40;
    z-index: 4;
    top: 0.9rem;
    inset-inline-start: -3%;
    width: 124px;
}

/* A sign in a glass frame, lit from behind in its own colour */
.mz-card {
    --glow: var(--mz-glow-blue);
    position: relative;
    margin: 0;
    padding: 9px;
    background: var(--mz-glass);
    border: 1px solid var(--mz-line-strong);
    border-radius: var(--mz-radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 40px 80px -30px rgba(0, 0, 0, 0.85),
        0 24px 70px -24px var(--glow);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.mz-card::before {
    content: '';
    position: absolute;
    inset: 14% 8% -6%;
    z-index: -1;
    border-radius: 40%;
    background: var(--glow);
    filter: blur(46px);
    opacity: 0.7;
}

.mz-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: var(--mazeh-art-bg);
}

/* The front card's light stays behind it, so it does not tint the card below */
.mz-card--front::before {
    inset: 10% 6% 2%;
}

.mz-card--yellow { --glow: var(--mz-glow-yellow); }
.mz-card--light { --glow: var(--mz-glow-white); }
.mz-card--light img { background: #fff; }

.mz-layer--back .mz-card {
    rotate: 4deg;
    opacity: 0.92;
}

.mz-layer--low .mz-card {
    rotate: -3.5deg;
}

html[dir="rtl"] .mz-layer--back .mz-card { rotate: -4deg; }
html[dir="rtl"] .mz-layer--low .mz-card { rotate: 3.5deg; }

/* The mascot, lit yellow */
.mz-icon {
    display: block;
    width: 100%;
    height: auto;
    rotate: -8deg;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 34px rgba(242, 194, 0, 0.4));
}

html[dir="rtl"] .mz-icon { rotate: 8deg; }

/* The sign at the front: three languages stacked in one place, one shown */
/* The front card is solid, so the cards behind it read as behind it */
.mz-card--front {
    padding: 10px 10px 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        #10141f;
}

.mazeh-demo-stage {
    display: grid;
}

.mazeh-demo-stage > img {
    grid-area: 1 / 1;
    align-self: start;
}

/* Before js/mazeh.js takes over, the English picture is the one shown */
.mazeh-demo.is-ready .mazeh-demo-stage > img {
    opacity: 0;
}

.mazeh-demo.is-ready .mazeh-demo-stage > img.is-shown {
    opacity: 1;
}

.mazeh-demo-stage > img:not(:first-child) {
    opacity: 0;
}

/* Set by js/mazeh.js once the first picture is up, so only the changes after it fade */
.mazeh-demo.is-live .mazeh-demo-stage > img {
    transition: opacity 0.5s ease;
}

.mz-demo-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.9rem 0.4rem 0;
}

.mazeh-demo-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--mz-line);
    border-radius: var(--radius-full);
}

.mazeh-demo-tab {
    padding: 0.4rem 0.85rem;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--mz-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mazeh-demo-tab:hover {
    color: var(--mz-text);
}

.mazeh-demo-tab[aria-pressed="true"] {
    background: var(--mazeh-plate-yellow);
    color: var(--mazeh-plate-black);
}

.mz-demo-caption {
    flex: 1 1 14rem;
    color: var(--mz-faint);
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* The app's pictures read left to right whatever the page does */
html[dir="rtl"] .mazeh-demo-tabs {
    direction: ltr;
}

/* --------------------------------------------------------------------------
   See it at work: floating glass cards, two columns that end about level
   -------------------------------------------------------------------------- */
.mz-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.mz-gallery-column {
    display: grid;
    gap: 1.75rem;
}

.mz-shot {
    --glow: var(--mz-glow-blue);
    position: relative;
    margin: 0;
    padding: 10px;
    background: var(--mz-glass);
    border: 1px solid var(--mz-line);
    border-radius: var(--mz-radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 60px -30px rgba(0, 0, 0, 0.9),
        0 26px 70px -30px var(--glow);
    transition: transform 0.45s var(--mz-ease), box-shadow 0.45s var(--mz-ease), border-color 0.45s ease;
}

.mz-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: var(--mazeh-art-bg);
}

.mz-shot.is-light img {
    background: #fff;
}

.mz-shot figcaption {
    padding: 0.95rem 0.55rem 0.35rem;
    color: var(--mz-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.mz-shot:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 40px 70px -30px rgba(0, 0, 0, 0.9),
        0 24px 100px -14px var(--glow);
}

.mz-shot.is-yellow { --glow: var(--mz-glow-yellow); }
.mz-shot.is-white { --glow: var(--mz-glow-white); }
.mz-shot.is-green { --glow: var(--mz-glow-green); }

/* The small mark at the head of a caption that says the Windows app drew it */
.mazeh-os-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-inline-end: 0.45rem;
    padding: 0.1rem 0.55rem;
    background: rgba(61, 123, 255, 0.14);
    border: 1px solid rgba(111, 168, 255, 0.35);
    border-radius: 6px;
    color: #cfe0ff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: 0.08em;
}

.mazeh-os-tag svg {
    width: 0.75rem;
    height: 0.75rem;
    color: #6fa8ff;
}

/* A smaller heading inside a section, with the mark of its system */
.mz-subhead {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 4.5rem 0 0.6rem;
}

.mz-subhead.is-first {
    margin-top: 0;
}

.mz-subhead svg {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--mz-muted);
}

.mz-sublead {
    max-width: 40rem;
    margin-bottom: 1.75rem;
    color: var(--mz-muted);
}

/* --------------------------------------------------------------------------
   Languages
   -------------------------------------------------------------------------- */
.mz-into-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: -1rem 0 3.5rem;
}

/* Each language on a little enamel street sign */
.mz-into-row span {
    padding: 0.55rem 1.15rem;
    border-radius: 9px;
    background: linear-gradient(180deg, #2654b0, var(--mazeh-enamel));
    box-shadow:
        inset 0 0 0 2px var(--mazeh-enamel),
        inset 0 0 0 3.5px rgba(251, 250, 246, 0.6),
        0 14px 34px -10px rgba(47, 116, 255, 0.7);
    color: var(--mazeh-sign-white);
    font-size: 1.05rem;
    font-weight: 600;
}

.mz-languages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.mz-languages-signs {
    display: grid;
    gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   How it works: three steps, numbered on enamel plates
   -------------------------------------------------------------------------- */
.mz-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mz-step;
}

.mz-step {
    padding: 1.75rem 1.6rem 1.9rem;
    background: var(--mz-glass);
    border: 1px solid var(--mz-line);
    border-radius: var(--mz-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mz-step-num {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1.4rem;
    border-radius: 9px;
    background: linear-gradient(180deg, #2654b0, var(--mazeh-enamel));
    box-shadow:
        inset 0 0 0 2px var(--mazeh-enamel),
        inset 0 0 0 3.5px rgba(251, 250, 246, 0.65),
        0 10px 26px -8px rgba(47, 116, 255, 0.8);
    color: var(--mazeh-sign-white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.mz-step h3 {
    margin: 0 0 0.6rem;
    color: var(--mz-text);
    font-size: 1.25rem;
    line-height: 1.25;
}

.mz-step p {
    color: var(--mz-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   What it does
   -------------------------------------------------------------------------- */
.mz-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.mz-feature {
    padding: 1.75rem 1.6rem;
    background: var(--mz-glass-flat);
    border: 1px solid var(--mz-line);
    border-radius: var(--mz-radius);
}

.mz-feature-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: rgba(61, 123, 255, 0.12);
    border: 1px solid rgba(111, 168, 255, 0.28);
    color: #8dbbff;
}

.mz-feature-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.mz-feature h3 {
    margin: 0 0 0.5rem;
    color: var(--mz-text);
    font-size: 1.15rem;
    line-height: 1.3;
}

.mz-feature p {
    color: var(--mz-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* Term chips drawn like the app draws them: licence-plate yellow, black type */
.mz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
    direction: ltr;
}

html[dir="rtl"] .mz-chips {
    justify-content: flex-end;
}

.mz-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: var(--mazeh-plate-yellow);
    box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.6);
    color: var(--mazeh-plate-black);
    font-size: 0.8125rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Privacy band
   -------------------------------------------------------------------------- */
.mz-privacy {
    text-align: center;
}

.mz-privacy-inner {
    position: relative;
    max-width: 52rem;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(29, 70, 150, 0.45), transparent 70%),
        var(--mz-glass-flat);
    border: 1px solid var(--mz-line);
    border-radius: 28px;
}

.mz-lock {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(61, 123, 255, 0.14);
    border: 1px solid rgba(111, 168, 255, 0.4);
    box-shadow: 0 0 50px -6px rgba(61, 123, 255, 0.7);
    color: #a9cbff;
}

.mz-lock svg {
    width: 1.6rem;
    height: 1.6rem;
}

.mz-privacy .mz-h2 {
    margin-inline: auto;
}

.mz-privacy p {
    max-width: 40rem;
    margin: 0 auto;
    color: var(--mz-text);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.55;
    text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Get Mazeh: the two downloads, then the price
   -------------------------------------------------------------------------- */
.mz-platforms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.mz-platform {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--mz-glass);
    border: 1px solid var(--mz-line);
    border-radius: 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.mz-platform-head {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.6rem;
}

/* The large mark of each system, in a lit glass tile */
.mz-os-tile {
    display: grid;
    flex: none;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--mz-line-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 40px -16px var(--tile-glow, rgba(200, 210, 230, 0.5));
    color: #f2f4f8;
}

.mz-os-tile svg {
    width: 2.2rem;
    height: 2.2rem;
}

.mz-platform--mac .mz-os-tile svg {
    margin-top: -0.25rem;
}

.mz-platform--win .mz-os-tile {
    --tile-glow: rgba(61, 123, 255, 0.75);
    color: #6fa8ff;
}

.mz-platform--win .mz-os-tile svg {
    width: 1.9rem;
    height: 1.9rem;
}

.mz-platform--ios .mz-os-tile {
    --tile-glow: rgba(56, 189, 248, 0.7);
    color: #9fdcff;
}

.mz-platform--ios .mz-os-tile svg {
    width: 2rem;
    height: 2rem;
}

.mz-platform-head .mazeh-release {
    margin-top: 0.3rem;
}

.mz-checks {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mz-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--mz-text);
}

.mz-checks li::before {
    content: '';
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.22rem;
    border-radius: 50%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23cfe0ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat,
        rgba(61, 123, 255, 0.35);
}

.mz-platform-note {
    margin: 1.4rem 0 1.75rem;
    color: var(--mz-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mz-platform .mz-btn {
    margin-top: auto;
    align-self: stretch;
}

/* The App Store: Apple's own badge as Apple draws it, lifted and lit like the buttons beside it */
.mz-store {
    display: inline-flex;
    flex: none;
    justify-content: center;
    border-radius: 10px;
}

.mz-store img {
    display: block;
    width: auto;
    height: 3.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s var(--mz-ease), box-shadow 0.3s var(--mz-ease);
}

.mz-store:hover img {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 44px -8px rgba(159, 220, 255, 0.55);
}

.mz-store:focus-visible {
    outline: 2px solid var(--mz-sky);
    outline-offset: 3px;
}

.mz-platform .mz-store {
    margin-top: auto;
    align-self: stretch;
}

/* The price: yearly lit, monthly plain */
.mz-pricing {
    margin-top: 4.5rem;
}

.mz-pricing > .mz-h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.mz-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.mz-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--mz-glass-flat);
    border: 1px solid var(--mz-line);
    border-radius: 26px;
}

.mz-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mz-plan-name {
    margin: 0;
    color: var(--mz-text);
    font-size: 1.15rem;
    font-weight: 600;
}

.mz-plan-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 7px;
    background: var(--mazeh-plate-yellow);
    box-shadow: inset 0 0 0 2px var(--mazeh-plate-yellow), inset 0 0 0 3px var(--mazeh-plate-black);
    color: var(--mazeh-plate-black);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.mz-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.mz-plan-amount {
    color: var(--mz-text);
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
}

.mz-plan-period {
    color: var(--mz-muted);
    font-size: 1.05rem;
}

.mz-plan-save {
    margin-bottom: 1.75rem;
    color: var(--mz-muted);
    font-size: 0.9375rem;
}

.mz-plan .mz-btn {
    margin-top: auto;
}

/* Yearly: a glowing border, blue into sign yellow */
.mz-plan--best {
    background:
        radial-gradient(80% 70% at 85% 0%, rgba(47, 116, 255, 0.28), transparent 70%),
        rgba(255, 255, 255, 0.05);
    border-color: transparent;
    box-shadow: 0 30px 90px -30px rgba(47, 116, 255, 0.55), 0 0 60px -30px rgba(242, 194, 0, 0.5);
}

.mz-plan--best::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, #7cc8ff, var(--mz-electric) 45%, var(--mazeh-plate-yellow));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mz-plan--best .mz-plan-save {
    color: var(--mazeh-plate-yellow);
    font-weight: 600;
}

.mz-plans-note {
    max-width: 44rem;
    margin-top: 1.5rem;
    color: var(--mz-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */
.mz-faq {
    max-width: 52rem;
    background: var(--mz-glass-flat);
    border: 1px solid var(--mz-line);
    border-radius: var(--mz-radius);
}

.mz-faq details + details {
    border-top: 1px solid var(--mz-line);
}

.mz-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.3rem 1.6rem;
    color: var(--mz-text);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
    border-radius: var(--mz-radius);
}

.mz-faq summary::-webkit-details-marker {
    display: none;
}

/* A plus that turns into a cross when the answer opens */
.mz-faq summary::after {
    content: '';
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat,
        rgba(255, 255, 255, 0.06);
    color: #8dbbff;
    transition: transform 0.3s var(--mz-ease);
}

.mz-faq details[open] summary::after {
    transform: rotate(45deg);
}

.mz-faq details p {
    max-width: 44rem;
    padding: 0 1.6rem 1.25rem;
    color: var(--mz-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.mz-faq details p + p {
    margin-top: -0.4rem;
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.mz-section.mz-final {
    padding: 8rem 0 9rem;
    overflow: hidden;
    text-align: center;
}

.mz-final::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        var(--mz-grain) 0 0 / 180px 180px,
        radial-gradient(42% 40% at 50% 42%, rgba(29, 70, 150, 0.6), transparent 70%),
        radial-gradient(20% 18% at 50% 24%, rgba(242, 194, 0, 0.14), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.mz-final-icon {
    width: 112px;
    margin: 0 auto 1.75rem;
}

.mz-final-icon img {
    rotate: -6deg;
}

.mz-closing-hebrew {
    margin-bottom: 0.4rem;
    color: var(--mazeh-sign-white);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
}

.mz-closing-name {
    margin-bottom: 1.75rem;
    color: var(--mz-faint);
    font-size: 0.975rem;
}

.mz-final .mz-h2 {
    font-size: clamp(2.25rem, 1.2rem + 3vw, 3.5rem);
    margin-bottom: 0.6rem;
}

.mz-closing-line {
    margin-bottom: 2.25rem;
    color: var(--mz-muted);
    font-size: 1.2rem;
}

.mz-final .mz-cta-row,
.mz-final .mz-cta-sub {
    justify-content: center;
}

.mz-final .mz-meta {
    justify-items: center;
}

.mz-final-note {
    margin-top: 2rem;
    color: var(--mz-faint);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Motion: one slow float for the signs, only for those who want motion
   -------------------------------------------------------------------------- */
@keyframes mz-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, var(--float, -12px), 0); }
}

@keyframes mz-aurora {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
    .mz-float {
        animation: mz-float 9s ease-in-out infinite;
    }

    .mz-layer--front .mz-float { --float: -6px; animation-duration: 10s; }
    .mz-layer--back .mz-float { --float: -14px; animation-duration: 12s; animation-delay: -4s; }
    .mz-layer--low .mz-float { --float: -10px; animation-duration: 11s; animation-delay: -7s; }
    .mz-layer--icon .mz-float { --float: -16px; animation-duration: 7s; animation-delay: -2s; }
    .mz-final-icon .mz-float { --float: -10px; animation-duration: 8s; }

    .mz-hero::before {
        animation: mz-aurora 24s ease-in-out infinite alternate;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mz-layer,
    .mz-btn,
    .mz-store img,
    .mz-shot,
    .mazeh-demo.is-live .mazeh-demo-stage > img {
        transition: none;
    }

    .mz-btn:hover,
    .mz-store:hover img,
    .mz-shot:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .mz-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mz-platforms {
        grid-template-columns: minmax(0, 1fr);
        max-width: 40rem;
        margin-inline: auto;
    }
}

@media (max-width: 960px) {
    .mz-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mz-stage {
        width: 100%;
        max-width: 38rem;
        margin-inline: auto;
    }

    .mz-gallery,
    .mz-languages-grid,
    .mz-platforms,
    .mz-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .mz-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .mz-hero {
        padding: 7.5rem 0 2.5rem;
    }

    .mz-hero::before {
        background:
            var(--mz-grain) 0 0 / 180px 180px,
            radial-gradient(70% 22% at 70% 64%, rgba(29, 70, 150, 0.8), transparent 70%),
            radial-gradient(60% 14% at 30% 76%, rgba(61, 123, 255, 0.3), transparent 70%),
            radial-gradient(80% 16% at 20% 10%, rgba(29, 70, 150, 0.35), transparent 70%);
    }

    .mz-hero + .mz-section {
        padding-top: 3.5rem;
    }

    .mz-wordmark {
        font-size: 1.5rem;
    }

    .mz-definition {
        font-size: 1.0625rem;
    }

    .mz-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .mz-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mz-cta-row .mz-btn {
        width: 100%;
    }

    .mz-cta-sub {
        justify-content: space-between;
    }

    .mz-final .mz-cta-sub {
        justify-content: center;
    }

    .mz-stage {
        padding: 4.75rem 0 5.5rem;
    }

    .mz-layer--front {
        width: 96%;
        margin-inline-start: 2%;
    }

    .mz-layer--back {
        width: 70%;
        inset-inline-end: 0;
    }

    .mz-layer--low {
        width: 66%;
        inset-inline-start: 0;
    }

    .mz-layer--icon {
        top: 0.6rem;
        inset-inline-start: -1%;
        width: 84px;
    }

    .mz-card {
        padding: 6px;
        border-radius: 16px;
    }

    .mz-card img,
    .mz-shot img {
        border-radius: 10px;
    }

    .mz-card--front {
        padding: 7px 7px 12px;
    }

    .mz-demo-foot {
        padding: 0.75rem 0.25rem 0;
    }

    .mz-trust {
        margin-top: 2.5rem;
        gap: 0.5rem;
    }

    .mz-trust li {
        font-size: 0.875rem;
    }

    .mz-section {
        padding: 4.5rem 0;
    }

    .mz-section + .mz-section {
        padding-top: 1rem;
    }

    .mz-head {
        margin-bottom: 2.25rem;
    }

    .mz-lead {
        font-size: 1.0625rem;
    }

    .mz-gallery,
    .mz-gallery-column,
    .mz-languages-signs,
    .mz-languages-grid {
        gap: 1.25rem;
    }

    .mz-shot {
        padding: 7px;
        border-radius: 18px;
    }

    .mz-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .mz-privacy-inner {
        padding: 2.5rem 1.25rem;
    }

    .mz-privacy p {
        font-size: 1.125rem;
    }

    .mz-platform,
    .mz-plan {
        padding: 1.5rem;
    }

    .mz-plan-amount {
        font-size: 2.75rem;
    }

    .mz-faq summary {
        padding: 1.1rem 1.15rem;
        font-size: 1.05rem;
    }

    .mz-faq details p {
        padding: 0 1.15rem 1.1rem;
    }

    .mz-section.mz-final {
        padding: 5rem 0 6rem;
    }

    .mz-closing-hebrew {
        font-size: 3.5rem;
    }
}

/* --------------------------------------------------------------------------
   Hebrew (right-to-left)
   -------------------------------------------------------------------------- */
html[dir="rtl"] .mz-headline,
html[dir="rtl"] .mz-h2,
html[dir="rtl"] .mz-h3,
html[dir="rtl"] .mz-plan-amount {
    letter-spacing: 0;
}

/* Hebrew set in Rubik runs wider: each sentence keeps to one line on a desktop */
html[dir="rtl"] .mz-headline {
    font-size: clamp(2.4rem, 1.1rem + 2.6vw, 3.35rem);
    line-height: 1.1;
}

/* The aurora follows the pictures to the other side */
html[dir="rtl"] .mz-hero::before {
    scale: -1 1;
}

/* The name stays in Latin letters on the Hebrew page */
html[dir="rtl"] .mz-wordmark {
    direction: ltr;
}
