/* Pharma Points public landing page */

:root {
    --ld-primary: #0f766e;
    --ld-primary-dark: #115e59;
    --ld-deep: #062f2c;
    --ld-accent: #2dd4bf;
    --ld-soft: #e3f5f2;
    --ld-softer: #f3fbf9;
    --ld-border: #d9e8e5;
    --ld-text: #14302c;
    --ld-muted: #5b7772;
    --ld-gold: #d99a1c;
    --ld-gold-soft: #fdf3dc;
    --ld-danger: #b4372b;
    --ld-shadow: 0 18px 50px -20px rgba(6, 47, 44, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    color: var(--ld-text);
    background: #fff;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }

/* Arabic text reads better a little looser and without synthetic bold. */
h1, h2, h3 { font-weight: 700; letter-spacing: 0; }
body { font-synthesis: none; text-rendering: optimizeLegibility; }
ul { list-style: none; }

.ld-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ld-wrap--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */

.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.6rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--ld-primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ld-btn:hover { transform: translateY(-2px); background: var(--ld-primary-dark); box-shadow: 0 10px 24px -10px rgba(15, 118, 110, 0.7); }
.ld-btn i { font-size: 1.2rem; }
.ld-btn:focus-visible, .ld-lang:focus-visible, .ld-nav__links a:focus-visible { outline: 3px solid var(--ld-accent); outline-offset: 2px; }

.ld-btn--small { min-height: 42px; padding: 0.35rem 1.15rem; font-size: 0.9rem; border-radius: 12px; }
.ld-btn--block { width: 100%; }

.ld-btn--light { background: #fff; color: var(--ld-primary-dark); }
.ld-btn--light:hover { background: #fff; color: var(--ld-deep); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5); }

.ld-btn--ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.ld-btn--ghost:hover { background: rgba(255, 255, 255, 0.2); box-shadow: none; }

/* ---------- Brand ---------- */

.ld-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ld-deep); }
.ld-logo .pp-mark { display: block; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(15, 118, 110, 0.3)); }
.ld-logo__text { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.ld-logo__text b { color: var(--ld-gold); font-weight: 700; }
.ld-logo--light { color: #fff; }

/* ---------- Navigation ---------- */

.ld-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ld-border);
}

.ld-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.ld-nav__links { display: flex; align-items: center; gap: 0.25rem; }

.ld-nav__links a {
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    color: var(--ld-muted);
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ld-nav__links a:hover { color: var(--ld-primary-dark); background: var(--ld-soft); }

.ld-nav__end { display: flex; align-items: center; gap: 0.6rem; }

.ld-lang {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    color: var(--ld-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.ld-lang:hover { background: var(--ld-soft); }

/* ---------- Hero ---------- */

.ld-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(45, 212, 191, 0.35), transparent 60%),
        radial-gradient(700px 400px at -5% 110%, rgba(217, 154, 28, 0.25), transparent 60%),
        linear-gradient(140deg, #0b4f4a 0%, #062f2c 100%);
}

.ld-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
    pointer-events: none;
}

.ld-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
}

.ld-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
    font-weight: 700;
}

.ld-eyebrow i { color: #ffd25a; }

.ld-hero h1 { margin: 1.1rem 0 1rem; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; line-height: 1.3; }
.ld-hero__text > p { max-width: 560px; font-size: 1.1rem; color: rgba(255, 255, 255, 0.82); }

.ld-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

.ld-hero__points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.7rem; font-size: 0.92rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.ld-hero__points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ld-hero__points i { color: var(--ld-accent); font-size: 1.15rem; }

/* ---------- Demo card ---------- */

/* ---------- Sections ---------- */

.ld-section { padding: 5.5rem 0; }
.ld-section--tint { background: var(--ld-softer); border-block: 1px solid var(--ld-border); }

.ld-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.ld-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.4; color: var(--ld-deep); letter-spacing: 0; }
.ld-head p { margin-top: 0.9rem; color: #0b2a27; font-size: 1.22rem; font-weight: 600; line-height: 1.9; }

/* What is it */

.ld-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.ld-trio__item {
    position: relative;
    padding: 1.9rem 1.6rem;
    border: 1px solid var(--ld-border);
    border-radius: 22px;
    background: #fff;
}

.ld-trio__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.7rem;
}

.ld-trio__label { display: block; margin-top: 1.1rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ld-trio__item h3 { margin: 0.2rem 0 0.5rem; font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.ld-trio__item p { color: var(--ld-muted); }

.ld-trio__item.is-problem .ld-trio__icon { background: #fdeceb; color: var(--ld-danger); }
.ld-trio__item.is-problem .ld-trio__label { color: var(--ld-danger); }
.ld-trio__item.is-solution .ld-trio__icon { background: var(--ld-gold-soft); color: var(--ld-gold); }
.ld-trio__item.is-solution .ld-trio__label { color: #a56a05; }
.ld-trio__item.is-result .ld-trio__icon { background: var(--ld-soft); color: var(--ld-primary); }
.ld-trio__item.is-result .ld-trio__label { color: var(--ld-primary); }

/* How it works */

.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }

.ld-step {
    padding: 1.8rem 1.6rem;
    border: 1px solid var(--ld-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px -22px rgba(6, 47, 44, 0.5);
}

.ld-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ld-primary), #0b4f4a);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.ld-step h3 { margin: 1rem 0 0.4rem; font-size: 1.15rem; font-weight: 700; }
.ld-step p { color: var(--ld-muted); }

.ld-rules {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(140deg, #0b4f4a, #062f2c);
    color: #fff;
}

.ld-rules__head h3 { font-size: 1.35rem; font-weight: 700; }
.ld-rules__head p { margin-top: 0.2rem; color: rgba(255, 255, 255, 0.75); }
.ld-rules__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }

.ld-rule {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.ld-rule > i { flex: 0 0 auto; font-size: 1.8rem; color: #ffd25a; }
.ld-rule strong { display: block; font-size: 1.02rem; }
.ld-rule span { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); line-height: 1.65; }

/* Features */

.ld-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

.ld-card {
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--ld-border);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ld-card:hover { transform: translateY(-4px); border-color: var(--ld-accent); box-shadow: var(--ld-shadow); }

.ld-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ld-soft);
    color: var(--ld-primary);
    font-size: 1.5rem;
}

.ld-card h3 { margin: 0.95rem 0 0.35rem; font-size: 1.05rem; font-weight: 700; }
.ld-card p { color: var(--ld-muted); font-size: 0.93rem; line-height: 1.7; }

/* FAQ */

.ld-faq { display: grid; gap: 0.75rem; }

.ld-faq__item { border: 1px solid var(--ld-border); border-radius: 16px; background: #fff; transition: border-color 0.15s ease; }
.ld-faq__item[open] { border-color: var(--ld-accent); box-shadow: 0 10px 28px -22px rgba(6, 47, 44, 0.6); }

.ld-faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.ld-faq__item summary::-webkit-details-marker { display: none; }

.ld-faq__item summary::after {
    content: "+";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ld-soft);
    color: var(--ld-primary);
    font-size: 1.3rem;
    line-height: 1;
}

.ld-faq__item[open] summary::after { content: "−"; }
.ld-faq__item p { padding: 0 1.3rem 1.2rem; color: var(--ld-muted); }

/* Contact */

.ld-contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.ld-contact__info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--ld-deep); line-height: 1.4; }
.ld-contact__info > p { margin-top: 0.7rem; color: var(--ld-muted); font-size: 1.05rem; }

.ld-contact__list { margin-top: 1.8rem; display: grid; gap: 1rem; }
.ld-contact__list li { display: flex; align-items: center; gap: 0.9rem; }

.ld-contact__list li > i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ld-border);
    color: var(--ld-primary);
    font-size: 1.4rem;
}

.ld-contact__list span { display: block; font-weight: 700; }
.ld-contact__list small { display: block; color: var(--ld-muted); font-weight: 600; font-size: 0.8rem; }
.ld-contact__list a:hover { color: var(--ld-primary); text-decoration: underline; }

.ld-form {
    display: grid;
    gap: 1rem;
    padding: 1.9rem;
    border: 1px solid var(--ld-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--ld-shadow);
}

.ld-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ld-form label { display: grid; gap: 0.35rem; }
.ld-form label > span { font-size: 0.88rem; font-weight: 700; }
.ld-form label em { font-style: normal; font-weight: 600; color: var(--ld-muted); }

.ld-form input, .ld-form textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    background: var(--ld-softer);
    color: var(--ld-text);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ld-form textarea { resize: vertical; min-height: 110px; }

.ld-form input:focus, .ld-form textarea:focus {
    outline: none;
    border-color: var(--ld-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25);
}

.ld-hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; pointer-events: none; }

.ld-alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: 12px; font-weight: 700; font-size: 0.93rem; }
.ld-alert i { font-size: 1.3rem; }
.ld-alert--ok { background: #e6f7ee; color: #14633a; }
.ld-alert--error { background: #fdeceb; color: var(--ld-danger); }

/* Footer */

.ld-footer { padding: 1.8rem 0; background: #041f1d; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.ld-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ld-footer .ld-logo .pp-mark { filter: none; }

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

@media (max-width: 1020px) {
    .ld-grid { grid-template-columns: repeat(2, 1fr); }
    .ld-nav__links { display: none; }
}

@media (max-width: 860px) {
    .ld-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 4rem; }
    .ld-trio, .ld-steps, .ld-rules__grid { grid-template-columns: 1fr; }
    .ld-contact { grid-template-columns: 1fr; gap: 2rem; }
    .ld-section { padding: 4rem 0; }
}

@media (max-width: 560px) {
    .ld-grid, .ld-form__row { grid-template-columns: 1fr; }
    .ld-nav__inner { min-height: 64px; }
    .ld-logo__text { font-size: 1.15rem; }
    .ld-hero__actions .ld-btn { flex: 1 1 100%; }
    .ld-form { padding: 1.3rem; }
    .ld-footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ld-btn, .ld-card { transition: none; }
}

/* ---------- Hero visual (brand mark with floating chips) ---------- */

.ld-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }

.ld-visual__mark {
    position: relative;
    z-index: 1;
    padding: 1.4rem;
    border-radius: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(45, 212, 191, 0.12);
}

.ld-visual__mark .pp-mark { display: block; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4)); }

.ld-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ld-deep);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.ld-chip i { color: var(--ld-primary); font-size: 1.2rem; }
.ld-chip--1 { top: 12%; inset-inline-start: 2%; }
.ld-chip--2 { top: 46%; inset-inline-end: 0; }
.ld-chip--3 { bottom: 10%; inset-inline-start: 8%; }
.ld-chip--2 i { color: var(--ld-gold); }

/* ---------- Dark section with a form (request a demo) ---------- */

.ld-section--dark {
    color: #fff;
    background:
        radial-gradient(700px 360px at 90% 0%, rgba(45, 212, 191, 0.25), transparent 60%),
        linear-gradient(140deg, #0b4f4a, #062f2c);
}

.ld-section--dark .ld-contact__info h2 { color: #fff; }
.ld-section--dark .ld-contact__info > p { color: rgba(255, 255, 255, 0.8); }

.ld-checks { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.ld-checks li { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.ld-checks i { color: var(--ld-accent); font-size: 1.4rem; }

.ld-form select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    background: var(--ld-softer);
    color: var(--ld-text);
    font-family: inherit;
    font-size: 0.98rem;
}

.ld-form select:focus { outline: none; border-color: var(--ld-primary); background: #fff; box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25); }
.ld-form select:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 860px) {
    .ld-visual { min-height: 300px; }
    .ld-visual__mark .pp-mark { width: 150px; height: 150px; }
    .ld-chip--1 { inset-inline-start: 0; }
    .ld-chip--3 { inset-inline-start: 4%; }
}

/* ---------- Styled dropdown (replaces the browser's plain select) ---------- */

.ld-select { position: relative; }

.ld-select__native {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.ld-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    background: var(--ld-softer);
    color: var(--ld-text);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ld-select__btn:hover { border-color: #b9d6d1; }
.ld-select__btn:focus-visible, .ld-select.is-open .ld-select__btn {
    outline: none;
    border-color: var(--ld-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25);
}

.ld-select__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-select.is-placeholder .ld-select__label { color: var(--ld-muted); font-weight: 500; }
.ld-select__chevron { flex: 0 0 auto; color: var(--ld-muted); font-size: 1.15rem; transition: transform 0.18s ease; }
.ld-select.is-open .ld-select__chevron { transform: rotate(180deg); color: var(--ld-primary); }

.ld-select.is-disabled .ld-select__btn { opacity: 0.55; cursor: not-allowed; background: #eef4f3; }

.ld-select__panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 50px -18px rgba(6, 47, 44, 0.45);
    overflow: hidden;
    animation: ld-select-in 0.14s ease-out;
}

.ld-select__panel[hidden] { display: none; }
.ld-select.is-up .ld-select__panel { top: auto; bottom: calc(100% + 6px); }

@keyframes ld-select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ld-form .ld-select__search {
    flex: 0 0 auto;
    width: calc(100% - 1rem);
    margin: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: var(--ld-softer);
    font-size: 0.92rem;
}

.ld-select__list { flex: 1; margin: 0; padding: 0.35rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9d6d1 transparent; }

.ld-select__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    color: var(--ld-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.ld-select__opt[hidden] { display: none; }
.ld-select__opt .ti { visibility: hidden; color: var(--ld-primary); font-size: 1.1rem; }
.ld-select__opt.is-active { background: var(--ld-soft); }
.ld-select__opt.is-selected { color: var(--ld-primary-dark); font-weight: 700; }
.ld-select__opt.is-selected .ti { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
    .ld-select__panel { animation: none; }
    .ld-select__chevron { transition: none; }
}

/* ---------- Form fixes, field errors and the success card ---------- */

/* The demo form sits in a dark section: its own text must stay dark. */
.ld-form, .ld-success { color: var(--ld-text); }
.ld-form label > span { color: var(--ld-deep); }

/* The real <select> is only there for the form to submit: never show it. */
.ld-select__native { opacity: 0 !important; visibility: hidden; }

.ld-form input::placeholder, .ld-form textarea::placeholder { color: #9bb0ac; font-weight: 500; }

.ld-form label { gap: 0.4rem; }
.ld-form__row { align-items: start; }

.ld-form input.is-invalid, .ld-form textarea.is-invalid, .ld-select__btn.is-invalid {
    border-color: var(--ld-danger);
    background: #fff7f6;
}

.ld-form input.is-invalid:focus, .ld-form textarea.is-invalid:focus, .ld-select.is-open .ld-select__btn.is-invalid {
    box-shadow: 0 0 0 4px rgba(180, 55, 43, 0.15);
}

.ld-error {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ld-danger);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
    animation: ld-error-in 0.18s ease-out;
}

.ld-error::before {
    content: "!";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ld-danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

@keyframes ld-error-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.ld-btn.is-loading { pointer-events: none; opacity: 0.85; }
.ld-btn.is-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ld-spin 0.7s linear infinite;
}

@keyframes ld-spin { to { transform: rotate(360deg); } }

.ld-btn--ghost-dark { background: var(--ld-soft); color: var(--ld-primary-dark); border-color: var(--ld-border); }
.ld-btn--ghost-dark:hover { background: #d3eee9; box-shadow: none; }

.ld-form[hidden] { display: none; }

.ld-success {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 2.6rem 1.8rem;
    text-align: center;
    animation: ld-success-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ld-success h3 { font-size: 1.4rem; font-weight: 700; color: var(--ld-deep); }
.ld-success p { max-width: 380px; color: var(--ld-muted); font-size: 1.02rem; }
.ld-success .ld-btn { margin-top: 0.8rem; }

.ld-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #e6f7ee;
    box-shadow: 0 0 0 10px rgba(20, 158, 90, 0.1);
}

.ld-success__icon svg { width: 52px; height: 52px; stroke: #14994f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ld-success__icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: ld-draw 0.6s 0.1s ease-out forwards; }
.ld-success__icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ld-draw 0.4s 0.55s ease-out forwards; }

@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-success-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ld-success, .ld-error { animation: none; }
    .ld-success__icon circle, .ld-success__icon path { animation: none; stroke-dashoffset: 0; }
    .ld-btn.is-loading::after { animation-duration: 2s; }
}

/* ---------- Official logo image ---------- */

.ld-logo .pp-logo { display: block; }
.ld-logo { line-height: 0; }

/* On the dark footer the full logo sits on a white pill. */
.ld-logo--tile { padding: 0.55rem 1rem; border-radius: 14px; background: #fff; }

/* The mark in the hero rests on a white tile so its dark green stays readable. */
.ld-visual__mark { padding: 1.6rem; border-radius: 48px; background: #fff; border: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.ld-visual__mark .pp-mark { filter: none; }

@media (max-width: 860px) {
    .ld-visual__mark .pp-mark { height: 130px !important; }
    .ld-logo .pp-logo { height: 38px !important; }
}

/* ---------- Features: refined cards ---------- */

#features { background: linear-gradient(180deg, #fff 0%, var(--ld-softer) 100%); }

.ld-grid { gap: 1.25rem; }

.ld-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.7rem 1.5rem 1.6rem;
    border: 1px solid var(--ld-border);
    border-radius: 22px;
    background:
        radial-gradient(180px 120px at 100% 0%, rgba(45, 212, 191, 0.10), transparent 70%),
        #fff;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

html[dir="ltr"] .ld-card { background: radial-gradient(180px 120px at 0% 0%, rgba(45, 212, 191, 0.10), transparent 70%), #fff; }

/* a thin accent line that grows in on hover */
.ld-card::after {
    content: "";
    position: absolute;
    inset-inline: 1.5rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--ld-primary), var(--ld-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.ld-card:hover { transform: translateY(-5px); border-color: rgba(45, 212, 191, 0.7); box-shadow: 0 24px 44px -26px rgba(6, 47, 44, 0.55); }
.ld-card:hover::after { transform: scaleX(1); }

.ld-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, #14b8a6, var(--ld-primary-dark));
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 12px 22px -12px rgba(15, 118, 110, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.22s ease;
}

.ld-card:hover .ld-card__icon { transform: scale(1.06) rotate(-4deg); }

.ld-card h3 { margin: 1.15rem 0 0.45rem; font-size: 1.1rem; font-weight: 700; color: var(--ld-deep); line-height: 1.5; }
.ld-card p { color: var(--ld-muted); font-size: 0.94rem; line-height: 1.9; }

@media (prefers-reduced-motion: reduce) {
    .ld-card, .ld-card::after, .ld-card__icon { transition: none; }
    .ld-card:hover, .ld-card:hover .ld-card__icon { transform: none; }
}

/* ---------- FAQ: fills the full section width ---------- */

.ld-faqwrap { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 2rem; align-items: stretch; }

.ld-faqwrap__intro {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 2rem 1.8rem;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(320px 200px at 100% 0%, rgba(45, 212, 191, 0.28), transparent 65%),
        linear-gradient(150deg, #0b4f4a, #062f2c);
    box-shadow: var(--ld-shadow);
}

html[dir="ltr"] .ld-faqwrap__intro { background: radial-gradient(320px 200px at 0% 0%, rgba(45, 212, 191, 0.28), transparent 65%), linear-gradient(150deg, #0b4f4a, #062f2c); }

.ld-faqwrap__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); color: #ffd25a; font-size: 1.8rem; }
.ld-faqwrap__intro h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.4; }
.ld-faqwrap__intro p { color: rgba(255, 255, 255, 0.8); }
.ld-faqwrap__intro .ld-btn { margin-top: 0.6rem; }

.ld-faqwrap .ld-faq { gap: 0.9rem; }
.ld-faqwrap .ld-faq__item summary { padding: 1.2rem 1.5rem; font-size: 1.04rem; }
.ld-faqwrap .ld-faq__item p { padding: 0 1.5rem 1.4rem; font-size: 0.98rem; line-height: 1.9; }

@media (max-width: 900px) {
    .ld-faqwrap { grid-template-columns: 1fr; }
    .ld-faqwrap__intro { position: static; }
}

/* ---------- Contact: info card that matches the form's height ---------- */

#contact .ld-contact { align-items: stretch; }

#contact .ld-contact__info {
    display: flex;
    flex-direction: column;
    padding: 2.2rem 2rem;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(340px 220px at 100% 0%, rgba(45, 212, 191, 0.28), transparent 65%),
        linear-gradient(150deg, #0b4f4a, #062f2c);
    box-shadow: var(--ld-shadow);
}

html[dir="ltr"] #contact .ld-contact__info { background: radial-gradient(340px 220px at 0% 0%, rgba(45, 212, 191, 0.28), transparent 65%), linear-gradient(150deg, #0b4f4a, #062f2c); }

#contact .ld-contact__info h2 { color: #fff; }
#contact .ld-contact__info > p { color: rgba(255, 255, 255, 0.8); }

#contact .ld-contact__list { margin-top: 1.8rem; gap: 0.85rem; }

#contact .ld-contact__list li {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

#contact .ld-contact__list li:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }

#contact .ld-contact__list li > i {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 210, 90, 0.16);
    color: #ffd25a;
    font-size: 1.5rem;
}

#contact .ld-contact__list small { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }
#contact .ld-contact__list span { font-size: 1.12rem; font-weight: 700; color: #fff; }
#contact .ld-contact__list a:hover { color: #ffd25a; text-decoration: none; }

/* the logo rests on a white pill at the bottom of the card */
.ld-contact__brand { margin-top: auto; padding-top: 1.8rem; }
.ld-contact__brand img { padding: 0.55rem 1rem; box-sizing: content-box; border-radius: 14px; background: #fff; }

@media (max-width: 860px) {
    #contact .ld-contact__info { padding: 1.7rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    #contact .ld-contact__list li { transition: none; }
}

/* ---------- Hero: free trial note ---------- */

.ld-hero__trial {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.3rem 0 0;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 210, 90, 0.16);
    border: 1px solid rgba(255, 210, 90, 0.5);
    color: #ffe29a;
    font-size: 0.95rem;
    font-weight: 700;
}

.ld-hero__trial i { font-size: 1.25rem; color: #ffd25a; }

/* ---------- Our partners: looping slider ---------- */

.ld-partners {
    position: relative;
    overflow: hidden;
    margin-top: 2.2rem;
    padding: 0.8rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ld-partners__track { display: flex; width: max-content; animation: ld-partners-move var(--ld-partners-time, 32s) linear infinite; }
.ld-partners:hover .ld-partners__track { animation-play-state: paused; }
.ld-partners__row { display: flex; gap: 1rem; padding: 0 0.5rem; margin: 0; list-style: none; }

.ld-partner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 230px;
    padding: 0.75rem 1.3rem 0.75rem 0.75rem;
    border: 1px solid var(--ld-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 30px -22px rgba(6, 47, 44, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ld-partner:hover { transform: translateY(-4px); border-color: var(--ld-accent); box-shadow: 0 20px 36px -20px rgba(15, 118, 110, 0.45); }

.ld-partner__logo {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ld-soft);
    background: #fff;
}

.ld-partner__logo--letter { display: inline-flex; align-items: center; justify-content: center; border: 0; background: linear-gradient(145deg, #14b8a6, #0f766e); color: #fff; font-size: 1.5rem; font-weight: 800; }

.ld-partner__name { font-size: 1.02rem; font-weight: 700; color: var(--ld-deep); line-height: 1.4; max-width: 190px; overflow-wrap: anywhere; }

@keyframes ld-partners-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 575.98px) {
    .ld-partner { min-width: 190px; }
    .ld-partner__logo { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .ld-partners { overflow-x: auto; }
    .ld-partners__track { animation: none; }
}

/* ---------- Phones: the header must fit the screen ---------- */

html, body { max-width: 100%; }

@media (max-width: 575.98px) {
    .ld-nav__inner { gap: 0.5rem; }
    .ld-nav__end { gap: 0.4rem; min-width: 0; }
    .ld-logo { flex: 0 1 auto; min-width: 0; }
    .ld-logo .pp-logo { height: 30px !important; width: auto; max-width: 100%; }
    .ld-lang { padding: 0.3rem 0.6rem; font-size: 0.82rem; }
    .ld-btn--small { min-height: 38px; padding: 0.3rem 0.7rem; font-size: 0.82rem; white-space: nowrap; }
}

@media (max-width: 380px) {
    .ld-wrap { padding-inline: 0.75rem; }
    .ld-logo .pp-logo { height: 26px !important; }
    .ld-btn--small { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
}
