/* ============================================================
   Mahayom - מה היום?
   v3.0 - "Candlelit Library" landing redesign
   ------------------------------------------------------------
   Aesthetic: deep-ink background with burnished-gold accents,
   Hebrew display type as visual centerpiece, parchment text,
   subtle grain texture and warm radial glow. Shared by index,
   privacy, and support pages - single source of truth.
   ============================================================ */

:root {
    /* Ink palette - all warm-undertone darks */
    --ink: #0E0B07;
    --ink-rise: #15110B;
    --ink-elev: #1F1A11;
    --ink-line: #2A2317;

    /* Gold palette */
    --gold: #D4A847;
    --gold-bright: #E6BC5A;
    --gold-deep: #B8902F;
    --gold-glow: rgba(212, 168, 71, 0.16);
    --gold-faint: rgba(212, 168, 71, 0.08);

    /* Parchment / text */
    --parchment: #F2E4C9;
    --parchment-mute: #B5A380;
    --parchment-dim: #7A6E55;

    /* Rules + shadows */
    --rule: rgba(212, 168, 71, 0.22);
    --rule-soft: rgba(212, 168, 71, 0.10);
    --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 80px -20px rgba(212, 168, 71, 0.35);

    /* Type */
    /* Hebrew typography: matches the mobile app's brand pair so the website
       and app feel like the same product.
       - Secular One for display headlines: strong geometric Hebrew display
         font, identity-defining for the brand. Only ships in weight 400 but
         the design is heavy by intent - no need for bolder cuts.
       - Heebo for body: clean modern Hebrew sans-serif, the brand body font,
         covers 300-900 for hierarchy. */
    --font-display-he: 'Secular One', 'Heebo', system-ui, sans-serif;
    --font-display-en: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-body-he: 'Heebo', 'Secular One', system-ui, sans-serif;
    --font-body-en: 'Crimson Pro', 'Cormorant Garamond', Georgia, serif;

    /* Spacing rhythm */
    --gutter: clamp(1.25rem, 3vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 8rem);
}

/* ---------- Reset / base ---------- */

* { box-sizing: border-box; }

html {
    background: var(--ink);
    color: var(--parchment);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body-he);
    font-weight: 400;
    line-height: 1.7;
    color: var(--parchment);
    background:
        radial-gradient(ellipse 60% 50% at 20% 0%, var(--gold-glow), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 30%, rgba(184, 144, 47, 0.10), transparent 70%),
        var(--ink);
    overflow-x: hidden;
    position: relative;
}

/* Grain texture overlay - applied via pseudo so it doesn't intercept clicks. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.66 0 0 0 0 0.28 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

[lang="en"] body { font-family: var(--font-body-en); }

a {
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 180ms ease, color 180ms ease;
}
a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

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

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Language toggle: visibility ----------
   Index page renders both He + En spans; CSS hides the inactive one.
   Default = Hebrew. JS toggles a class on <html> to flip. */

.mh-lang-en { display: none; }
html.lang-en .mh-lang-he { display: none; }
html.lang-en .mh-lang-en { display: inline; }

/* When toggled to English, flip direction at the root for layout symmetry. */
html.lang-en { direction: ltr; }
html.lang-en body { font-family: var(--font-body-en); }

/* ---------- Header ---------- */

.mh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(14, 11, 7, 0.92), rgba(14, 11, 7, 0.7));
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--rule-soft);
}

.mh-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mh-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    color: var(--parchment);
}
.mh-brand:hover { color: var(--parchment); }

.mh-brand-mark {
    width: 130px;
    height: auto;
}

.mh-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
}

.mh-nav a {
    border: none;
    color: var(--parchment-mute);
    font-family: var(--font-body-he);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 180ms ease;
}
[lang="en"] .mh-nav a, html.lang-en .mh-nav a { font-family: var(--font-body-en); font-size: 1rem; }
.mh-nav a:hover { color: var(--parchment); }

.mh-lang-toggle {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--parchment-mute);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    /* Heebo covers BOTH Hebrew + Latin glyphs, so the toggle text
       ("EN" / "עב") renders correctly regardless of which label is shown. */
    font-family: var(--font-body-he);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 200ms ease;
}
.mh-lang-toggle:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-faint);
}

/* ---------- Page wrapper ---------- */

.mh-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

/* ---------- Hero (landing) ---------- */

.mh-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
html.lang-en .mh-hero { grid-template-columns: 1fr 1.2fr; }

/* Decorative watermark - giant Hebrew letter behind everything. */
.mh-hero::before {
    content: 'מה';
    position: absolute;
    top: -8%;
    right: -2%;
    font-family: var(--font-display-he);
    font-weight: 400;
    font-size: clamp(20rem, 50vw, 38rem);
    line-height: 0.85;
    color: var(--gold);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
html.lang-en .mh-hero::before {
    content: 'Mahayom';
    font-family: var(--font-display-en);
    font-style: italic;
    font-size: clamp(10rem, 26vw, 22rem);
    right: auto;
    left: -3%;
    top: 5%;
}

.mh-hero-text {
    position: relative;
    z-index: 1;
}

/* Eyebrow uses Hebrew font by default. The uppercase + wide-tracking idiom
   is Latin-only (Hebrew has no case + tracked Hebrew looks broken), so we
   strip it for Hebrew and re-apply only under .lang-en. */
.mh-hero-eyebrow {
    font-family: var(--font-body-he);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin: 0 0 1.5rem;
    opacity: 0;
    animation: fadeRise 700ms 100ms ease-out forwards;
}
html.lang-en .mh-hero-eyebrow {
    font-family: var(--font-body-en);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.mh-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin-inline-end: 0.75rem;
}

.mh-hero-title {
    font-family: var(--font-display-he);
    font-weight: 400;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--parchment);
    margin: 0 0 1.5rem;
    opacity: 0;
    animation: fadeRise 800ms 200ms ease-out forwards;
}
html.lang-en .mh-hero-title {
    font-family: var(--font-display-en);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5rem);
    letter-spacing: -0.015em;
}

/* Hebrew has no italics - browsers synth-slant which looks awful.
   Secular One has a single weight (400) so we can't bold the emphasis;
   the gold color does the lift. */
.mh-hero-title em {
    font-style: normal;
    color: var(--gold);
    font-weight: 400;
}
html.lang-en .mh-hero-title em {
    font-family: var(--font-display-en);
    font-style: italic;
    font-weight: 500;
}

/* Subtitle uses Heebo (body Hebrew) for readability at lede sizes.
   Display Secular One up top + Heebo subtitle is the same display/body
   pairing the mobile app uses. */
.mh-hero-subtitle {
    font-family: var(--font-body-he);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.6;
    color: var(--parchment-mute);
    margin: 0 0 2.5rem;
    max-width: 36ch;
    opacity: 0;
    animation: fadeRise 800ms 350ms ease-out forwards;
}
html.lang-en .mh-hero-subtitle {
    font-family: var(--font-display-en);
    font-style: italic;
    font-weight: 400;
}

.mh-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 2rem;
    opacity: 0;
    animation: fadeRise 800ms 500ms ease-out forwards;
}

.mh-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    color: var(--parchment-dim);
    font-family: var(--font-body-he);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeRise 800ms 700ms ease-out forwards;
}
html.lang-en .mh-hero-meta {
    font-family: var(--font-body-en);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mh-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mh-hero-meta svg { stroke: var(--gold); width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Hero phone showcase ---------- */

.mh-hero-phones {
    position: relative;
    z-index: 1;
    aspect-ratio: 1 / 1.1;
    display: grid;
    place-items: center;
    opacity: 0;
    animation: fadeRise 1000ms 400ms ease-out forwards;
}

/* Glow halo behind phones */
.mh-hero-phones::before {
    content: '';
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle at 50% 50%, var(--gold-glow), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.mh-phone {
    position: relative;
    border-radius: 38px;
    padding: 8px;
    background: linear-gradient(145deg, var(--ink-elev), var(--ink-rise));
    box-shadow:
        var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px var(--rule);
    z-index: 1;
}
.mh-phone img {
    border-radius: 30px;
    display: block;
}

.mh-hero-phone-primary {
    transform: rotate(-3deg);
    width: clamp(220px, 24vw, 320px);
    animation: floatGentle 9s ease-in-out infinite;
}
.mh-hero-phone-secondary {
    position: absolute;
    bottom: 8%;
    inset-inline-end: -5%;
    transform: rotate(6deg);
    width: clamp(160px, 17vw, 220px);
    animation: floatGentle 11s 0.5s ease-in-out infinite reverse;
    opacity: 0.95;
}

/* ---------- Sections (generic) ---------- */

.mh-section {
    position: relative;
    padding: var(--section-y) 0;
}

.mh-section-eyebrow {
    font-family: var(--font-body-he);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin: 0 0 1rem;
}
html.lang-en .mh-section-eyebrow {
    font-family: var(--font-body-en);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.mh-section-title {
    /* Heebo at heavy weight gives bold-feeling section heads; Secular One
       only ships 400 so we use Heebo here instead of faux-bolding it. */
    font-family: var(--font-body-he);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    color: var(--parchment);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
html.lang-en .mh-section-title {
    font-family: var(--font-display-en);
    font-weight: 500;
}

.mh-section-lede {
    font-family: var(--font-body-he);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: var(--parchment-mute);
    max-width: 56ch;
    margin: 0 0 3rem;
}
html.lang-en .mh-section-lede { font-family: var(--font-body-en); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }

/* Decorative diamond rule between sections */
.mh-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--gold);
    opacity: 0.55;
}
.mh-rule::before, .mh-rule::after {
    content: '';
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.mh-rule-diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 16px var(--gold-glow);
}

/* ---------- Features ---------- */

.mh-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 3rem;
}

.mh-feature {
    position: relative;
    padding: 2rem 1.75rem 2rem;
    background: linear-gradient(180deg, rgba(31, 26, 17, 0.6), rgba(21, 17, 11, 0.4));
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}
.mh-feature:hover {
    border-color: var(--rule);
    background: linear-gradient(180deg, rgba(31, 26, 17, 0.8), rgba(21, 17, 11, 0.6));
    transform: translateY(-4px);
}

/* Hebrew letter ornament marking each feature */
.mh-feature-letter {
    font-family: var(--font-display-he);
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gold);
    margin: 0 0 1.25rem;
    display: inline-block;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
    min-width: 2.5rem;
}

.mh-feature-title {
    /* Heebo 700: bold modern sans for card titles. Secular One only ships
       at 400 so it can't carry the bold weight here. */
    font-family: var(--font-body-he);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--parchment);
    margin: 0 0 0.75rem;
    letter-spacing: -0.005em;
}
html.lang-en .mh-feature-title {
    font-family: var(--font-display-en);
    font-weight: 600;
    font-size: 1.55rem;
}

.mh-feature-body {
    font-family: var(--font-body-he);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--parchment-mute);
    margin: 0;
}
html.lang-en .mh-feature-body { font-family: var(--font-body-en); font-size: 1.05rem; }

/* ---------- Showcase (extra phone screenshots) ---------- */

.mh-showcase {
    text-align: center;
}

.mh-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin: 3rem auto 0;
    max-width: 900px;
}

.mh-showcase-grid .mh-phone {
    transition: transform 400ms ease, box-shadow 400ms ease;
}
.mh-showcase-grid .mh-phone:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-deep), var(--shadow-glow), 0 0 0 1px var(--gold);
}

/* ---------- Download CTA ---------- */

.mh-download {
    text-align: center;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, var(--gold-glow), transparent 70%),
        linear-gradient(180deg, rgba(31, 26, 17, 0.6), rgba(14, 11, 7, 0.2));
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}

.mh-download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.mh-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem 0.85rem 1.25rem;
    background: var(--parchment);
    color: var(--ink);
    border: 1px solid var(--gold);
    border-radius: 4px;
    text-decoration: none;
    transition: all 250ms ease;
    box-shadow: 0 4px 20px -8px rgba(212, 168, 71, 0.4);
    min-width: 200px;
}
.mh-store-btn:hover {
    background: var(--gold-bright);
    color: var(--ink);
    border-color: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px rgba(212, 168, 71, 0.6);
}
.mh-store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.mh-store-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: start; }
/* Sup: small "Download on the" / "להוריד עבור" label above the brand name.
   Default uses Heebo (Hebrew + Latin both render); the Latin variant adds
   uppercase + tracked styling for the App-Store-button look. */
.mh-store-btn-sup { font-family: var(--font-body-he); font-size: 0.72rem; letter-spacing: 0.02em; opacity: 0.7; }
html.lang-en .mh-store-btn-sup { font-family: var(--font-body-en); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* Main: "App Store" / "Google Play" - always English brand names. Cormorant
   stays both locales. */
.mh-store-btn-main { font-family: var(--font-display-en); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.005em; }

/* Ghost variant (hero secondary CTA) */
.mh-store-btn-ghost {
    background: transparent;
    color: var(--parchment);
    border: 1px solid var(--rule);
    box-shadow: none;
}
.mh-store-btn-ghost:hover {
    background: var(--gold-faint);
    color: var(--gold-bright);
    border-color: var(--gold);
    box-shadow: 0 4px 20px -8px var(--gold-glow);
}
.mh-store-btn-ghost .mh-store-btn-sup { color: var(--gold); opacity: 1; }

/* ---------- Quote / testimonial-style section ---------- */

.mh-quote {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.mh-quote-mark {
    font-family: var(--font-display-en);
    font-size: 5rem;
    color: var(--gold);
    line-height: 0.5;
    opacity: 0.6;
}

.mh-quote-text {
    font-family: var(--font-display-he);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: var(--parchment);
    margin: 1.5rem 0;
    font-style: normal;
}
html.lang-en .mh-quote-text {
    font-family: var(--font-display-en);
    font-style: italic;
    font-weight: 400;
}

.mh-quote-attribution {
    font-family: var(--font-body-he);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    color: var(--parchment-dim);
}
html.lang-en .mh-quote-attribution {
    font-family: var(--font-body-en);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */

.mh-footer {
    margin-top: auto;
    padding: 2.5rem var(--gutter) 3rem;
    border-top: 1px solid var(--rule-soft);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.mh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    color: var(--parchment-dim);
    font-family: var(--font-body-he);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}
html.lang-en .mh-footer-inner,
[lang="en"] .mh-footer-inner {
    font-family: var(--font-body-en);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.mh-footer-link {
    color: var(--parchment-mute);
    border: none;
    font-weight: 500;
    transition: color 180ms ease;
}
.mh-footer-link:hover { color: var(--gold); }

.mh-footer-sep { color: var(--rule); }
.mh-footer-copy { color: var(--parchment-dim); }

/* ---------- Legal pages (privacy / support) ---------- */

.mh-legal {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}

.mh-legal-eyebrow {
    font-family: var(--font-body-he);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html.lang-en .mh-legal-eyebrow,
[lang="en"] .mh-legal-eyebrow {
    font-family: var(--font-body-en);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.mh-legal-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--gold);
}

.mh-legal h1 {
    font-family: var(--font-display-he);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--parchment);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
html.lang-en .mh-legal h1,
[lang="en"] .mh-legal h1 {
    font-family: var(--font-display-en);
    font-weight: 500;
}

.mh-legal .updated {
    font-family: var(--font-body-he);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--parchment-dim);
    margin: 0 0 2.5rem;
}
html.lang-en .mh-legal .updated,
[lang="en"] .mh-legal .updated {
    font-family: var(--font-body-en);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mh-legal h2 {
    /* Heebo 700 for legal sub-heads (Secular One ships only at 400, so we
       use the body Hebrew family with a bold weight here). */
    font-family: var(--font-body-he);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 3rem 0 0.85rem;
    letter-spacing: -0.005em;
    position: relative;
    padding-inline-start: 1.25rem;
}
.mh-legal h2::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--gold-glow);
}
html.lang-en .mh-legal h2,
[lang="en"] .mh-legal h2 {
    font-family: var(--font-display-en);
    font-weight: 600;
    font-size: 1.65rem;
}

.mh-legal h3 {
    font-family: var(--font-body-he);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--parchment);
    margin: 1.75rem 0 0.5rem;
}
html.lang-en .mh-legal h3,
[lang="en"] .mh-legal h3 { font-family: var(--font-body-en); font-size: 1.1rem; }

.mh-legal p,
.mh-legal ul,
.mh-legal ol {
    font-family: var(--font-body-he);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--parchment);
    margin: 0 0 1rem;
}
html.lang-en .mh-legal p,
[lang="en"] .mh-legal p,
html.lang-en .mh-legal ul,
[lang="en"] .mh-legal ul,
html.lang-en .mh-legal ol,
[lang="en"] .mh-legal ol {
    font-family: var(--font-body-en);
    font-size: 1.08rem;
    line-height: 1.75;
}

.mh-legal ul, .mh-legal ol { padding-inline-start: 1.5rem; }
.mh-legal li { margin-bottom: 0.4rem; }

.mh-legal strong { color: var(--gold-bright); font-weight: 600; }

.mh-legal .contact-card {
    margin: 1.5rem 0 2.5rem;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(145deg, rgba(31, 26, 17, 0.8), rgba(21, 17, 11, 0.5));
    border: 1px solid var(--rule);
    border-radius: 4px;
    position: relative;
}
.mh-legal .contact-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
.mh-legal .contact-card p { margin: 0; }
.mh-legal .contact-card a {
    font-family: var(--font-body-en);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--gold-bright);
    border: none;
}
.mh-legal .contact-card a:hover { color: var(--parchment); }

.mh-legal .lang-switch {
    text-align: end;
    margin: 0 0 2rem;
}
.mh-legal .lang-switch a {
    /* Heebo covers both alphabets so the toggle text ("English" / "עברית")
       renders regardless of which language is showing. */
    font-family: var(--font-body-he);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--parchment-mute);
    border: 1px solid var(--rule);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: all 200ms ease;
}
.mh-legal .lang-switch a:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-faint);
}

/* ---------- Details / FAQ ---------- */

.mh-legal details {
    background: linear-gradient(145deg, rgba(31, 26, 17, 0.45), rgba(21, 17, 11, 0.25));
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
    padding: 0.85rem 1.15rem;
    margin: 0.6rem 0;
    transition: border-color 200ms ease, background 200ms ease;
}
.mh-legal details:hover { border-color: var(--rule); }
.mh-legal details[open] {
    border-color: var(--rule);
    background: linear-gradient(145deg, rgba(31, 26, 17, 0.7), rgba(21, 17, 11, 0.4));
}

.mh-legal details summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-body-he);
    font-weight: 500;
    font-size: 1rem;
    color: var(--parchment);
    padding-inline-end: 1.5rem;
    position: relative;
    transition: color 180ms ease;
}
.mh-legal details summary::-webkit-details-marker { display: none; }
.mh-legal details summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display-en);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--gold);
    transition: transform 200ms ease;
}
.mh-legal details[open] summary::after { content: '×'; transform: translateY(-50%) rotate(0deg); }
.mh-legal details summary:hover { color: var(--gold-bright); }
.mh-legal details[open] summary { color: var(--gold-bright); margin-bottom: 0.85rem; }
html.lang-en .mh-legal details summary,
[lang="en"] .mh-legal details summary { font-family: var(--font-body-en); font-size: 1.08rem; }

.mh-legal details p:last-child { margin-bottom: 0; }

.mh-legal code {
    background: var(--ink-rise);
    border: 1px solid var(--rule-soft);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    color: var(--gold-bright);
}

/* ---------- Animations ---------- */

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatGentle {
    0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50% { transform: rotate(var(--rot, 0deg)) translateY(-12px); }
}

.mh-hero-phone-primary { --rot: -3deg; }
.mh-hero-phone-secondary { --rot: 6deg; }

/* Candle flicker on the gold rule diamond */
@keyframes candleFlicker {
    0%, 100% { opacity: 0.55; box-shadow: 0 0 16px var(--gold-glow); }
    50% { opacity: 0.75; box-shadow: 0 0 24px var(--gold-glow); }
}
.mh-rule-diamond { animation: candleFlicker 3.5s ease-in-out infinite; }

/* Reduced-motion users get static page. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .mh-hero-eyebrow, .mh-hero-title, .mh-hero-subtitle,
    .mh-hero-cta, .mh-hero-meta, .mh-hero-phones { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .mh-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        min-height: auto;
    }
    html.lang-en .mh-hero { grid-template-columns: 1fr; }
    .mh-hero-text { order: 1; }
    .mh-hero-phones { order: 2; aspect-ratio: 1 / 0.9; }
    .mh-hero-eyebrow { justify-content: center; }
    .mh-hero-eyebrow::before { width: 1.5rem; }
    .mh-hero-subtitle { margin-inline: auto; }
    .mh-hero-meta { justify-content: center; }
    .mh-hero-cta { justify-content: center; }
}

@media (max-width: 640px) {
    .mh-header-inner { padding: 0.85rem var(--gutter); }
    .mh-brand-mark { width: 100px; }
    .mh-nav { gap: 0.75rem; }
    .mh-nav a { font-size: 0.88rem; }
    .mh-lang-toggle { padding: 0.3rem 0.7rem; font-size: 0.72rem; }
    .mh-features { grid-template-columns: 1fr; }
    .mh-showcase-grid { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
    .mh-hero-phone-secondary { width: 140px; bottom: -2%; }
    .mh-footer-inner { flex-direction: column; gap: 0.5rem; }
    .mh-footer-sep { display: none; }
    .mh-store-btn { min-width: 0; width: 100%; max-width: 280px; }
}

/* ---------- High-DPI image rendering for phones ---------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mh-phone img { image-rendering: -webkit-optimize-contrast; }
}
