/* MIZAN public sales layer — compact, deterministic overrides for the final public experience. */
:root {
    --sales-ink: #0a2f27;
    --sales-ink-deep: #061d18;
    --sales-green: #0e4639;
    --sales-gold: #d5ad57;
    --sales-gold-dark: #8b641f;
    --sales-paper: #fffdf8;
    --sales-cream: #f5f0e5;
    --sales-line: rgba(10, 47, 39, .14);
    --sales-muted: #52655f;
    --sales-shadow: 0 28px 80px rgba(6, 29, 24, .16);
}

.mizan-public {
    background: var(--sales-paper);
    color: var(--sales-ink);
}

.public-header {
    border-bottom-color: var(--sales-line);
    background: rgba(255, 253, 248, .93);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.public-header__inner {
    width: min(1420px, calc(100% - 42px));
    min-height: 84px;
    gap: 22px;
}

.public-brand__copy small {
    color: #425952;
    letter-spacing: .09em;
}

.ultimate-nav {
    gap: 4px;
}

.ultimate-nav summary,
.ultimate-nav > a {
    min-height: 46px;
    padding-inline: 12px;
    border-radius: 10px;
    font-size: .81rem;
}

.ultimate-nav > a[aria-current="page"] {
    color: var(--sales-ink);
    background: var(--sales-cream);
    box-shadow: inset 0 -2px 0 var(--sales-gold);
}

.ultimate-nav__panel {
    min-width: 330px;
    padding: 10px;
    border-radius: 16px;
    border-color: var(--sales-line);
    box-shadow: 0 28px 75px rgba(6, 29, 24, .18);
}

.ultimate-nav__panel--solutions {
    width: min(440px, calc(100vw - 32px));
}

.ultimate-nav__panel a {
    border-radius: 10px;
}

.ultimate-nav__panel small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ultimate-nav__group--end .ultimate-nav__panel {
    inset-inline: auto 0;
}

.public-header__cta {
    white-space: nowrap;
}

@media (min-width: 1181px) {
    .public-header__cta { display: inline-flex; }
}

.public-button {
    min-height: 51px;
    padding: 13px 23px;
    border-radius: 12px;
    box-shadow: none;
    font-size: .88rem;
    letter-spacing: .005em;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.public-button:hover {
    box-shadow: 0 12px 30px rgba(6, 29, 24, .15);
}

.directional-arrow {
    display: inline-block;
}

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

.public-button--gold {
    color: #12271f !important;
    background: linear-gradient(135deg, #e5c879, var(--sales-gold));
}

.public-button--dark {
    background: var(--sales-ink);
}

.sales-page {
    background: var(--sales-paper);
}

.sales-shell {
    width: min(1280px, calc(100% - 56px));
}

.sales-hero {
    padding-block: clamp(68px, 6.7vw, 104px);
    background:
        radial-gradient(circle at 92% 8%, rgba(213, 173, 87, .23), transparent 27%),
        radial-gradient(circle at 5% 90%, rgba(59, 126, 102, .17), transparent 30%),
        linear-gradient(132deg, var(--sales-ink-deep), var(--sales-ink) 55%, #144e40);
}

.sales-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .24;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, transparent 20%, #000);
    content: "";
}

.sales-hero__grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(42px, 6vw, 92px);
}

.sales-hero--proof .sales-hero__grid {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.sales-hero__copy {
    max-width: 680px;
}

.sales-kicker {
    margin-bottom: 20px;
    color: var(--sales-gold-dark);
    font-size: .7rem;
    letter-spacing: .17em;
}

.sales-hero .sales-kicker,
.sales-section--dark .sales-kicker,
.sales-final .sales-kicker {
    color: #ebcd86;
}

.sales-hero h1 {
    max-width: 780px;
    font-size: clamp(2.95rem, 4.1vw, 4.35rem);
    line-height: 1;
    letter-spacing: -.052em;
}

.sales-hero--inner h1 {
    font-size: clamp(2.75rem, 4.25vw, 4.65rem);
}

.sales-hero .sales-lead {
    max-width: 670px;
    margin-top: 28px;
    color: rgba(245, 251, 248, .82);
    font-size: clamp(1.05rem, 1.35vw, 1.24rem);
    line-height: 1.72;
}

.sales-hero__visual {
    position: relative;
    min-width: 0;
}

.sales-media--editorial,
.sales-hero .sales-media--editorial {
    min-height: 0;
    aspect-ratio: 3 / 2;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background: #d8d3c7;
    box-shadow: 0 38px 100px rgba(0, 0, 0, .3);
}

.sales-media--editorial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sales-media--hero-proof {
    transform: none;
}

.sales-hero__monogram {
    position: absolute;
    inset-inline-start: -22px;
    inset-block-end: -22px;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: var(--sales-ink);
    background: var(--sales-gold);
    box-shadow: 0 18px 45px rgba(0,0,0,.24);
    font: 600 2rem/1 Georgia, serif;
}

.ultimate-media-frame {
    min-height: 0;
}

.sales-metrics {
    position: relative;
    z-index: 3;
    border-bottom: 1px solid var(--sales-line);
    background: #fff;
}

.sales-metrics__grid {
    display: grid;
    grid-template-columns: repeat(var(--metric-count, 4), minmax(0, 1fr));
}

.sales-metrics article {
    display: grid;
    min-width: 0;
    min-height: 126px;
    align-content: center;
    gap: 7px;
    padding: 24px 30px;
    border-inline-end: 1px solid var(--sales-line);
}

.sales-metrics article:last-child {
    border-inline-end: 0;
}

.sales-metrics strong {
    color: var(--sales-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.8vw, 2.65rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1;
}

.sales-metrics span {
    color: var(--sales-muted);
    font-size: .78rem;
    font-weight: 760;
    letter-spacing: .025em;
}

.sales-section {
    padding-block: clamp(80px, 8vw, 124px);
}

.sales-section--ivory {
    background: var(--sales-cream);
}

.sales-section--dark,
.sales-final {
    background:
        radial-gradient(circle at 85% 10%, rgba(213,173,87,.15), transparent 29%),
        linear-gradient(135deg, var(--sales-ink-deep), var(--sales-ink));
}

.sales-heading {
    max-width: 850px;
    margin-bottom: 50px;
}

.sales-heading h2,
.sales-section h2,
.sales-final h2 {
    color: var(--sales-ink);
    font-size: clamp(2.2rem, 4vw, 4.45rem);
    line-height: 1.04;
}

.sales-section--dark h2,
.sales-final h2 {
    color: #fff;
}

.sales-choice-grid {
    gap: 22px;
}

.sales-choice-card,
.sales-principle-grid article,
.sales-outcome-grid article,
.sales-plan-card {
    border-radius: 18px;
    border-color: var(--sales-line);
    box-shadow: 0 16px 50px rgba(6, 29, 24, .055);
}

.sales-choice-card {
    min-height: 330px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sales-choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 100, 31, .35);
    box-shadow: var(--sales-shadow);
}

.sales-section .sales-choice-card h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    line-height: 1.12;
}

.sales-choice-card__number,
.sales-principle-grid article > span,
.sales-outcome-grid article > span,
.sales-workflow li > span,
.sales-flow-list li > span {
    color: var(--sales-gold-dark);
}

.sales-value-grid:not(.sales-value-grid--three) article,
.sales-value-grid:not(.sales-value-grid--three) h3 {
    color: #fff;
}

.sales-value-grid:not(.sales-value-grid--three) p {
    color: #d9e4df;
}

.sales-proof-grid {
    border-radius: 16px;
    overflow: hidden;
}

.sales-media--product {
    min-height: 0;
    aspect-ratio: 1280 / 853;
    padding: 7px;
    border: 1px solid rgba(10, 47, 39, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(6, 29, 24, .14);
}

.sales-media--product img {
    border-radius: 10px;
    object-fit: contain;
}

.sales-proof-stack__media--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.sales-proof-stack__media--duo > :first-child {
    grid-row: auto;
}

.sales-proof-stack__media--duo .sales-media {
    height: 100%;
    aspect-ratio: 4 / 5;
}

.sales-proof-stack__media--duo .sales-media.sales-media--product {
    height: auto;
    aspect-ratio: 1280 / 853;
}

.sales-proof-stack__copy h2 {
    font-size: clamp(2.45rem, 3.25vw, 3.7rem);
}

.sales-flywheel li {
    min-height: 84px;
}

.sales-flow-column {
    min-width: 0;
}

.sales-flow-list li {
    grid-template-columns: 42px minmax(0, 1fr);
}

.sales-section .sales-flow-list h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: normal;
}

.sales-section .sales-flow-column--professional .sales-flow-list h2 {
    color: #fff;
}

.sales-flow-list li > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profession-links--seven a {
    min-height: 76px;
    border-radius: 14px;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.profession-links--seven a:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 100, 31, .42);
    background: #fff;
}

.sales-plan-card .public-button {
    border-radius: 11px;
}

.sales-final {
    position: relative;
    overflow: hidden;
}

.sales-final::before {
    position: absolute;
    inset: 18px;
    pointer-events: none;
    border: 1px solid rgba(213,173,87,.2);
    content: "";
}

.sales-final .sales-shell {
    position: relative;
    z-index: 1;
}

.ultimate-footer .public-footer__inner {
    gap: clamp(28px, 4vw, 58px);
    padding-block: 66px 50px;
}

.public-footer h3 {
    color: #e7cb8a;
    letter-spacing: .1em;
}

.public-footer a {
    width: fit-content;
    color: rgba(255,255,255,.78);
}

.public-footer a:hover {
    color: #fff;
}

[dir="rtl"] .sales-hero::after {
    mask-image: linear-gradient(-90deg, transparent 20%, #000);
}

[dir="rtl"] .sales-hero__monogram {
    direction: ltr;
}

[dir="rtl"] .sales-page h1,
[dir="rtl"] .sales-page h2,
[dir="rtl"] .sales-page h3 {
    font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    line-height: 1.25;
}

[dir="rtl"] .sales-kicker,
[dir="rtl"] .ultimate-kicker {
    letter-spacing: 0;
}

@media (max-width: 1100px) {
    body.public-menu-open { overflow: hidden; }
    .public-nav {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .ultimate-nav summary,
    .ultimate-nav > a {
        min-height: 50px;
        padding-inline: 14px;
    }
    .ultimate-nav__panel,
    .ultimate-nav__panel--solutions {
        width: 100%;
        min-width: 0;
        border-radius: 12px;
    }
}

@media (max-width: 900px) {
    .sales-shell { width: min(100% - 38px, 1280px); }
    .sales-hero__grid,
    .sales-hero--proof .sales-hero__grid { grid-template-columns: 1fr; }
    .sales-flow-columns { grid-template-columns: minmax(0, 1fr); }
    .sales-hero__copy { max-width: 790px; }
    .sales-hero .sales-media--editorial { max-width: 820px; }
    .sales-metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-metrics article:nth-child(2) { border-inline-end: 0; }
    .sales-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--sales-line); }
    .sales-metrics__grid[style*="3"] article:nth-child(2) { border-inline-end: 1px solid var(--sales-line); }
    .sales-metrics__grid[style*="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sales-metrics__grid[style*="3"] article { border-bottom: 0; }
}

@media (max-width: 620px) {
    .public-header__inner { width: calc(100% - 22px); }
    .public-brand__copy { display: none !important; }
    .sales-shell { width: min(100% - 28px, 1280px); }
    .sales-hero { padding-block: 54px 62px; }
    .sales-hero h1,
    .sales-hero--inner h1 { font-size: clamp(2.45rem, 12vw, 3.65rem); line-height: .99; }
    .sales-hero .sales-lead { margin-top: 23px; font-size: 1rem; }
    .sales-hero .sales-media--editorial { aspect-ratio: 4 / 3; border-radius: 18px; }
    .sales-hero__monogram { inset-inline-start: 12px; inset-block-end: -18px; width: 58px; height: 58px; font-size: 1.55rem; }
    .sales-metrics__grid,
    .sales-metrics__grid[style*="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-metrics article,
    .sales-metrics__grid[style*="3"] article { min-height: 104px; padding: 18px; border-bottom: 1px solid var(--sales-line); }
    .sales-metrics article:nth-child(2n),
    .sales-metrics__grid[style*="3"] article:nth-child(2n) { border-inline-end: 0; }
    .sales-metrics article:last-child { border-bottom: 0; }
    .sales-metrics__grid[style*="3"] article:last-child { grid-column: 1 / -1; border-inline-end: 0; }
    .sales-metrics strong { font-size: 1.85rem; }
    .sales-section { padding-block: 72px; }
    .sales-heading h2,
    .sales-section h2,
    .sales-final h2 { font-size: clamp(2rem, 9.5vw, 3rem); }
    .sales-choice-card { min-height: 0; padding: 28px; }
    .sales-proof-stack__media--duo { grid-template-columns: 1fr; }
    .sales-proof-stack__media--duo .sales-media { height: auto; aspect-ratio: 4 / 3; }
    .sales-media--product { aspect-ratio: 1280 / 853; }
    .sales-final::before { inset: 10px; }
    .ultimate-footer .public-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 32px 22px;
        padding-block: 48px 38px;
    }
    .ultimate-footer .public-footer__brand { grid-column: 1 / -1; }
    .ultimate-footer .public-footer__inner > div:not(:first-child) p { display: none; }
}

@media (max-width: 390px) {
    .public-header__inner { width: calc(100% - 16px); gap: 5px; }
    .public-brand .mizan-brand--header { gap: 4px; }
    .public-brand .mizan-brand--header .mizan-brand__mark { height: 25px; }
    .public-brand .mizan-brand--header .mizan-brand__wordmark { width: 58px; }
    .language-toggle { min-width: 54px; padding-inline: 7px; }
    .public-menu-toggle { width: 40px; }
    .sales-metrics__grid,
    .sales-metrics__grid[style*="3"] { grid-template-columns: 1fr; }
    .sales-metrics article,
    .sales-metrics__grid[style*="3"] article { grid-column: auto; border-inline-end: 0; }
    .ultimate-footer .public-footer__inner { grid-template-columns: 1fr !important; }
    .ultimate-footer .public-footer__brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .public-button,
    .sales-choice-card,
    .profession-links--seven a { transition: none; }

    .public-button:hover,
    .sales-choice-card:hover,
    .profession-links--seven a:hover { transform: none; }
}
