:root {
    --es-bg: #ffffff;
    --es-panel: #f8f8fa;
    --es-panel-soft: #fafafa;
    --es-text: #1a1a1a;
    --es-muted: #64646c;
    --es-border: #e7e7eb;
    --es-orange: #fb5a02;
    --es-orange-hover: #e95000;
    --es-purple: #6738c2;
    --es-purple-hover: #592eac;
    --es-purple-soft: #f6f1fc;
    --es-warning: #fff7ed;
    --es-warning-border: #ffd4b8;
    --es-radius: 14px;
    --es-page-max: 1180px;
    --es-cta-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    background: var(--es-bg);
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}

body.es-ppc-landing-page {
    margin: 0;
    padding: 0 0 calc(var(--es-cta-height) + env(safe-area-inset-bottom));
    background: var(--es-bg);
    color: var(--es-text);
    font-family: "Assistant", Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

.es-ppc-page {
    width: 100%;
    min-height: 100vh;
    overflow-x: clip;
}

.es-ppc-shell {
    width: 100%;
    max-width: var(--es-page-max);
    margin-inline: auto;
    padding-inline: 18px;
}

/* ---------- Small brand row ---------- */
.es-ppc-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block: 18px 12px;
}

.es-ppc-brand {
    color: var(--es-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.es-ppc-brand__business {
    color: var(--es-purple);
}

.es-ppc-brand__worth {
    color: var(--es-orange);
}

.es-ppc-context {
    margin: 0;
    color: var(--es-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- Primary offer grid ---------- */
.es-ppc-offer-grid {
    display: grid;
    grid-template-areas:
        "deal"
        "summary";
    gap: 12px;
    margin-bottom: 14px;
}

.es-ppc-deal {
    grid-area: deal;
    padding: 20px 18px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-bg);
}

.es-ppc-deal-label {
    margin: 0 0 7px;
    color: var(--es-purple);
    font-size: 0.95rem;
    font-weight: 700;
}

.es-ppc-deal h1 {
    margin: 0;
    color: var(--es-text);
    font-size: clamp(2rem, 8vw, 2.7rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.es-ppc-identity {
    margin: 9px 0 0;
    color: var(--es-text);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.42;
}

.es-ppc-price {
    margin: 16px 0 0;
    color: var(--es-orange);
    font-size: clamp(2.7rem, 12vw, 3.7rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.es-ppc-primary-data {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.es-ppc-primary-data li {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--es-border);
    border-radius: 9px;
    background: var(--es-panel-soft);
    color: var(--es-text);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
}

.es-ppc-location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
    color: var(--es-text);
    font-size: 1.02rem;
    font-weight: 600;
}

.es-ppc-location svg {
    width: 20px;
    height: 20px;
    color: var(--es-purple);
    flex: 0 0 auto;
}

.es-ppc-disclosure {
    margin-top: 15px;
    padding: 12px 13px;
    border: 1px solid var(--es-warning-border);
    border-radius: 10px;
    background: var(--es-warning);
    color: var(--es-text);
    font-size: 0.98rem;
    line-height: 1.45;
}

.es-ppc-disclosure strong {
    font-weight: 700;
}

.es-ppc-summary {
    grid-area: summary;
    padding: 18px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-panel);
}

.es-ppc-section-title {
    margin: 0 0 13px;
    color: var(--es-text);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.es-ppc-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--es-border);
    border-radius: 11px;
    background: var(--es-border);
}

.es-ppc-highlight {
    min-width: 0;
    padding: 14px 12px;
    background: var(--es-bg);
}

.es-ppc-highlight small {
    display: block;
    margin-bottom: 3px;
    color: var(--es-muted);
    font-size: 0.86rem;
    line-height: 1.25;
}

.es-ppc-highlight strong {
    display: block;
    color: var(--es-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.es-ppc-seller-note {
    margin: 14px 0 0;
    color: var(--es-text);
    font-size: 1rem;
    line-height: 1.58;
}

.es-ppc-private-note {
    margin: 11px 0 0;
    color: var(--es-muted);
    font-size: 0.93rem;
    font-weight: 600;
}

/* ---------- Content sections ---------- */
.es-ppc-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.es-ppc-section {
    min-width: 0;
    padding: 19px 18px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-bg);
}

.es-ppc-section--soft {
    background: var(--es-panel);
}

.es-ppc-section h2 {
    margin: 0 0 11px;
    color: var(--es-text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.22;
}

.es-ppc-section p {
    margin: 0 0 10px;
    color: var(--es-text);
    font-size: 1.04rem;
    line-height: 1.62;
}

.es-ppc-section p:last-child {
    margin-bottom: 0;
}

.es-ppc-condition-list {
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--es-border);
}

.es-ppc-condition-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--es-border);
    color: var(--es-text);
    font-size: 0.98rem;
}

.es-ppc-condition-list strong {
    font-weight: 600;
}

.es-ppc-condition-list span {
    color: var(--es-muted);
    text-align: left;
}

/* ---------- Semantic specification table ---------- */
.es-ppc-specs-section {
    margin-bottom: 14px;
}

.es-ppc-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 13px 0 0;
    overflow: hidden;
    border: 1px solid var(--es-border);
    border-radius: 11px;
    background: var(--es-border);
    gap: 1px;
}

.es-ppc-specs > div {
    min-width: 0;
    padding: 12px 11px;
    background: var(--es-bg);
}

.es-ppc-specs dt {
    margin: 0 0 3px;
    color: var(--es-muted);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.25;
}

.es-ppc-specs dd {
    margin: 0;
    color: var(--es-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* ---------- Gallery ---------- */
.es-ppc-gallery-section {
    margin-bottom: 18px;
}

.es-ppc-gallery-intro {
    color: var(--es-muted) !important;
}

.es-ppc-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.es-ppc-gallery figure {
    margin: 0;
}

.es-ppc-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px;
    background: var(--es-panel);
}

.es-ppc-gallery figcaption {
    margin-top: 6px;
    color: var(--es-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

/* ---------- Fixed conversion bar ---------- */
.es-ppc-sticky-actions {
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--es-bg);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
}

.es-ppc-sticky-actions__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: var(--es-cta-height);
}

.es-ppc-sticky-action {
    display: flex;
    min-width: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.es-ppc-sticky-action--phone {
    background: var(--es-orange);
}

.es-ppc-sticky-action--whatsapp {
    background: var(--es-purple);
}

.es-ppc-sticky-action--phone:hover {
    background: var(--es-orange-hover);
}

.es-ppc-sticky-action--whatsapp:hover {
    background: var(--es-purple-hover);
}

.es-ppc-sticky-action:active {
    filter: brightness(0.97);
}

.es-ppc-sticky-action:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.es-ppc-cta-icon {
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
}

.es-ppc-phone-label-mobile {
    display: inline;
}

.es-ppc-phone-label-desktop {
    display: none;
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------- Desktop ---------- */
@media (min-width: 820px) {
    :root {
        --es-cta-height: 88px;
    }

    body.es-ppc-landing-page {
        font-size: 1.125rem;
    }

    .es-ppc-shell {
        padding-inline: 24px;
    }

    .es-ppc-masthead {
        padding-block: 20px 14px;
    }

    .es-ppc-brand {
        font-size: 1.12rem;
    }

    .es-ppc-context {
        font-size: 1rem;
    }

    .es-ppc-offer-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.85fr);
        grid-template-areas: "summary deal";
        gap: 16px;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .es-ppc-deal,
    .es-ppc-summary {
        padding: 24px;
    }

    .es-ppc-deal h1 {
        font-size: clamp(2.15rem, 3.2vw, 2.75rem);
    }

    .es-ppc-identity {
        font-size: 1.18rem;
    }

    .es-ppc-price {
        margin-top: 17px;
        font-size: clamp(3rem, 4.2vw, 3.8rem);
    }

    .es-ppc-primary-data li {
        font-size: 1rem;
    }

    .es-ppc-section-title {
        font-size: 1.55rem;
    }

    .es-ppc-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-ppc-highlight {
        min-height: 82px;
        padding: 16px 15px;
    }

    .es-ppc-highlight strong {
        font-size: 1.04rem;
    }

    .es-ppc-seller-note {
        font-size: 1.04rem;
    }

    .es-ppc-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 16px;
    }

    .es-ppc-section {
        padding: 23px 24px;
    }

    .es-ppc-section h2 {
        font-size: 1.62rem;
    }

    .es-ppc-section p {
        font-size: 1.08rem;
    }

    .es-ppc-specs-section {
        margin-bottom: 16px;
    }

    .es-ppc-specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .es-ppc-specs > div {
        min-height: 74px;
        padding: 13px 14px;
    }

    .es-ppc-specs dd {
        font-size: 1.03rem;
    }

    .es-ppc-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .es-ppc-sticky-action {
        gap: 12px;
        font-size: 1.45rem;
    }

    .es-ppc-sticky-action--phone {
        font-size: 1.8rem;
    }

    .es-ppc-cta-icon {
        width: 30px;
        height: 30px;
    }

    .es-ppc-phone-label-mobile {
        display: none;
    }

    .es-ppc-phone-label-desktop {
        display: inline;
    }
}

@media (min-width: 1120px) {
    .es-ppc-highlights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .es-ppc-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ---------- Mobile readability + spacing reset (0.2.1) ---------- */
@media (max-width: 819px) {
    :root {
        --es-panel: #f4f4f6;
        --es-panel-soft: #f7f7f8;
        --es-border: #cfd0d6;
    }

    body.es-ppc-landing-page {
        font-size: 1.125rem; /* 18px floor for visible body text */
    }

    .es-ppc-shell {
        padding-inline: 14px;
    }

    .es-ppc-masthead {
        gap: 10px;
        padding-block: 12px 8px;
    }

    .es-ppc-brand {
        font-size: 1.25rem; /* 20px */
    }

    .es-ppc-context {
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-offer-grid {
        gap: 8px;
        margin-bottom: 10px;
    }

    .es-ppc-deal {
        padding: 14px;
        border-color: var(--es-border);
        border-radius: 12px;
    }

    .es-ppc-deal-label {
        margin-bottom: 4px;
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-identity {
        margin-top: 6px;
        font-size: 1.25rem; /* 20px */
        line-height: 1.35;
    }

    .es-ppc-price {
        margin-top: 12px;
    }

    .es-ppc-primary-data {
        gap: 6px;
        margin-top: 10px;
    }

    .es-ppc-primary-data li {
        min-height: 34px;
        padding: 5px 8px;
        border-color: var(--es-border);
        background: #fff;
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-location {
        gap: 6px;
        margin-top: 10px;
        font-size: 1.25rem; /* 20px */
    }

    .es-ppc-disclosure {
        margin-top: 10px;
        padding: 9px 0;
        border: 0;
        border-top: 2px solid var(--es-purple);
        border-bottom: 1px solid var(--es-border);
        border-radius: 0;
        background: transparent;
        font-size: 1.125rem; /* 18px */
        line-height: 1.5;
    }

    .es-ppc-summary {
        padding: 14px;
        border-color: var(--es-border);
        border-radius: 12px;
        background: var(--es-panel);
    }

    .es-ppc-section-title {
        margin-bottom: 9px;
    }

    .es-ppc-highlights {
        gap: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .es-ppc-highlight {
        padding: 9px 8px;
        border-bottom: 1px solid var(--es-border);
        background: transparent;
    }

    .es-ppc-highlight:nth-child(odd) {
        border-inline-end: 1px solid var(--es-border);
    }

    .es-ppc-highlight small {
        margin-bottom: 2px;
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-highlight strong {
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-seller-note,
    .es-ppc-private-note {
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-seller-note {
        margin-top: 10px;
    }

    .es-ppc-private-note {
        margin-top: 8px;
    }

    .es-ppc-content-grid {
        gap: 8px;
        margin-bottom: 10px;
    }

    .es-ppc-section {
        padding: 14px;
        border-color: var(--es-border);
        border-radius: 12px;
    }

    .es-ppc-section--soft {
        background: var(--es-panel);
    }

    .es-ppc-section h2 {
        margin-bottom: 8px;
    }

    .es-ppc-section p {
        margin-bottom: 8px;
        font-size: 1.125rem; /* 18px */
        line-height: 1.55;
    }

    .es-ppc-condition-list {
        margin-top: 9px;
    }

    .es-ppc-condition-list li {
        gap: 8px;
        padding: 9px 0;
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-specs-section {
        margin-bottom: 10px;
    }

    .es-ppc-specs {
        gap: 0;
        margin-top: 9px;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .es-ppc-specs > div {
        padding: 9px 8px;
        border-bottom: 1px solid var(--es-border);
        background: transparent;
    }

    .es-ppc-specs > div:nth-child(odd) {
        border-inline-end: 1px solid var(--es-border);
    }

    .es-ppc-specs dt {
        margin-bottom: 2px;
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-specs dd {
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-gallery-section {
        margin-bottom: 12px;
    }

    .es-ppc-gallery {
        gap: 10px;
        margin-top: 10px;
    }

    .es-ppc-gallery figcaption {
        font-size: 1.125rem; /* 18px */
    }

    .es-ppc-sticky-action {
        font-size: 1.125rem; /* 18px */
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
