/*
 * Homepage (resources/views/home/*). Loaded only on the homepage.
 * Uses logical properties (inline-start/end) throughout so Arabic mirrors
 * without a separate RTL stylesheet.
 */
.hp {
    --hp-primary: #0282DA;
    --hp-primary-dark: #026BB4;
    --hp-heading: #161C2D;
    --hp-text: #3C4858;
    --hp-muted: #5B6577;
    --hp-tint: #F7FAFF;
    --hp-border: #E5ECF6;
    --hp-radius: 12px;
    color: var(--hp-text);
    font-family: Nunito, sans-serif;
}

.hp h1, .hp h2, .hp h3 { color: var(--hp-heading); font-family: inherit; }
.hp p { margin: 0; }

.hp-tint { background: var(--hp-tint); }
.hp-section { padding: 80px 0; }
.hp-section--tight { padding: 0 0 80px; }

/* Section heads */
.hp-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.hp-head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    text-align: start;
}
.hp-title { font-size: 34px !important; line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
.hp-intro { font-size: 18px; line-height: 1.6; }
.hp-more { margin-top: 32px !important; text-align: center; }

/* Buttons and links */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    border: 2px solid transparent;
    font: 700 16px/1.2 Nunito, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.hp-btn--primary { background: var(--hp-primary); color: #fff; }
.hp-btn--primary:hover, .hp-btn--primary:focus-visible { background: var(--hp-primary-dark); color: #fff; }
.hp-btn--outline { background: #fff; color: var(--hp-primary); border-color: var(--hp-primary); }
.hp-btn--outline:hover, .hp-btn--outline:focus-visible { background: var(--hp-primary); color: #fff; }
.hp-btn--light { background: #fff; color: var(--hp-primary); }
.hp-btn--light:hover, .hp-btn--light:focus-visible { background: var(--hp-tint); color: var(--hp-primary-dark); }
.hp-btn__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hp-primary);
    color: #fff;
    transition: background-color .2s;
}
[dir="rtl"] .hp-btn__play svg { transform: scaleX(-1); }

.hp-link {
    display: inline;
    color: var(--hp-primary);
    font-weight: 700;
    text-decoration: none;
}
.hp-link:hover { color: var(--hp-primary-dark); text-decoration: underline; }
.hp-arrow { display: inline-block; margin-inline-start: 6px; vertical-align: -2px; }
.hp-card > .hp-link { align-self: flex-start; }
[dir="rtl"] .hp-arrow { transform: scaleX(-1); }

/* Hero: the shared page hero (css/page-hero.css). Only the homepage's own
   extras are styled here: the play icon, the store badges and the image. */
.ph .hp-btn__play { width: 28px; height: 28px; }
.ph__btn--ghost:hover .hp-btn__play { background: var(--hp-primary-dark); }
.hp-hero__badge { display: inline-block; line-height: 0; }
.hp-hero__badge img { width: 151px; height: auto; }
.hp-hero__platforms { width: 100%; margin: 0 !important; color: var(--hp-muted); font-size: 14px; font-weight: 600; }
.hp-hero__image { width: 100%; max-width: 620px; height: auto; margin-inline: auto; }

/* Video modal. */
.hp-video .video-modal .modal-content { background: none; border: none; }
.hp-video .video-modal .modal-body { padding: 0; }
.hp-video .video-modal .modal-dialog { min-width: 800px; width: 800px; top: 50%; transform: translateY(-50%) !important; }
.hp-video .video-modal iframe { border-radius: 15px; max-width: 100%; }
.hp-video #modalBackdrop { display: none; background-color: rgba(0, 0, 0, .5); }
@media (max-width: 800px) {
    .hp-video .video-modal .modal-dialog { margin: 0; min-width: 100%; width: 100%; }
    .hp-video .video-modal .modal-dialog iframe { width: 100% !important; height: auto; aspect-ratio: 16 / 9; }
}

/* Stats */
.hp-stats { padding: 32px 0; border-bottom: 1px solid var(--hp-border); }
.hp-stats__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin: 0;
    text-align: center;
}
.hp-stats__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.hp-stats__value { margin: 0; color: var(--hp-primary); font-size: 32px; font-weight: 700; line-height: 1.2; }
.hp-stats__label { margin: 0; font-weight: 600; font-size: 15px; }

/* Grids and cards */
.hp-grid { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hp-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: #fff;
}
.hp-card__icon { flex: none; }
.hp-card__title { margin: 0; font-size: 20px !important; line-height: 1.35; font-weight: 700; }
.hp-card__title a { color: inherit; text-decoration: none; }
.hp-card__title a:hover { color: var(--hp-primary); }
.hp-card__text { flex: 1 0 auto; font-size: 16px; line-height: 1.6; }

/* Steps */
.hp-steps { counter-reset: none; }
.hp-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hp-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* Industries: photo on top, text below; photo beside the text on phones. */
.hp-card.hp-industry { padding: 0; gap: 0; overflow: hidden; }
.hp-industry__img { display: block; width: 100%; height: auto; aspect-ratio: 446 / 255; object-fit: cover; background: var(--hp-tint); }
.hp-industry__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.hp-industry__body > .hp-link { margin-top: auto; align-self: flex-start; }
.hp-industry .hp-card__title { font-size: 18px !important; }
.hp-industry .hp-card__text { font-size: 15px; }
.hp-industry .hp-link { font-size: 15px; }

/* Reviews */
.hp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -16px 0 32px; padding: 0; list-style: none; }
.hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--hp-border);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
}
.hp-chip strong { color: var(--hp-heading); }
.hp-star { color: #FFB400; }
.hp-review { margin: 0; }
.hp-review__stars { display: flex; gap: 2px; }
.hp-review__quote { flex: 1 0 auto; margin: 0; font-size: 16px; line-height: 1.6; }
.hp-review__author { display: flex; flex-direction: column; font-size: 15px; }
.hp-review__author strong { color: var(--hp-heading); }
.hp-review__author span { color: var(--hp-muted); }

/* Pricing */
.hp-plan { gap: 14px; }
.hp-plan--pro { border-color: var(--hp-primary); box-shadow: 0 8px 24px rgba(2, 130, 218, .08); }
.hp-plan__name { margin: 0; font-size: 20px !important; font-weight: 700; color: var(--hp-primary) !important; }
.hp-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.hp-plan__amount { color: var(--hp-heading); font-size: 40px; font-weight: 700; line-height: 1.1; }
.hp-plan__term { color: var(--hp-muted); font-weight: 600; }
.hp-plan__note { min-height: 24px; color: var(--hp-muted); font-size: 15px; }
.hp-plan__plus { margin-top: 6px !important; color: var(--hp-heading); font-weight: 700; }
.hp-plan__features { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.hp-plan__features li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.hp-plan__features svg { flex: none; margin-top: 1px; color: var(--hp-primary); }
.hp-plan .hp-btn { width: 100%; }

/* Switch banner */
.hp-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 48px;
    border-radius: 16px;
    background: #161C2D;
}
.hp-switch__title { margin: 0 0 8px; color: #fff !important; font-size: 28px !important; font-weight: 700; }
.hp-switch__text { color: #C9D2E3; font-size: 17px; }

/* FAQ */
.hp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; max-width: 1040px; margin: 0 auto; }
.hp-faq__q { margin: 0 0 8px; font-size: 18px !important; line-height: 1.4; font-weight: 700; }
.hp-faq__a { font-size: 16px; line-height: 1.6; }

/* Blog */
.hp-post { padding: 0 0 24px; overflow: hidden; }
.hp-post > :not(.hp-post__media) { margin-inline: 24px; }
.hp-post__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--hp-tint); }
.hp-post__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-post__category { color: var(--hp-primary); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.hp-post .hp-card__title { flex: 1 0 auto; font-size: 18px !important; }

/* Final call to action */
.hp-cta { padding: 64px 0; background: var(--hp-primary); color: #fff; }
.hp-cta__title { margin: 0 0 12px; color: #fff !important; font-size: 34px !important; font-weight: 700; line-height: 1.25; }
.hp-cta__text { margin-bottom: 24px !important; color: #E6F3FC; font-size: 18px; line-height: 1.6; }
.hp-cta__stores { margin-top: 24px; }
.hp-cta__image { width: 100%; max-width: 500px; height: auto; }

/* Focus */
.hp a:focus-visible, .hp button:focus-visible { outline: 3px solid #7CC3F2; outline-offset: 2px; }

/* Responsive */
@media (max-width: 1199.98px) {
    .hp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
}
@media (max-width: 767.98px) {
    .hp-section { padding: 56px 0; }
    .hp-section--tight { padding: 0 0 56px; }
    .hp-title, .hp-cta__title { font-size: 26px !important; }
    .hp-intro { font-size: 16px; }
    .hp-grid--3, .hp-grid--4, .hp-faq { grid-template-columns: minmax(0, 1fr); }
    .hp-card { padding: 22px; }
    .hp-card.hp-industry { flex-direction: row; padding: 0; }
    .hp-industry__img { flex: none; width: 34%; max-width: 150px; aspect-ratio: auto; height: auto; align-self: stretch; }
    .hp-industry__body { padding: 16px 18px; gap: 6px; }
    .hp-industry .hp-card__title { font-size: 17px !important; }
    .hp-industry .hp-card__text { font-size: 14px; }
    .hp-switch { padding: 28px 24px; }
    .hp-switch__title { font-size: 23px !important; }
    .hp-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-stats__value { font-size: 26px; }
}
