:root {
    --ink: #0b2622;
    --ink-soft: #33504b;
    --muted: #5e7772;
    --bg: #f6fbf9;
    --surface: #ffffff;
    --teal-50: #ecfdf8;
    --teal-100: #d1faee;
    --teal-200: #a7f3dc;
    --teal-500: #14a38b;
    --teal-600: #0f8a76;
    --teal-700: #0d6e5f;
    --teal-900: #0a3b34;
    --amber: #f5b544;
    --coral: #f27a5e;
    --line: #dcebe6;
    --shadow-sm: 0 1px 2px rgba(11, 38, 34, 0.06), 0 2px 8px rgba(11, 38, 34, 0.04);
    --shadow-md: 0 10px 30px -12px rgba(11, 38, 34, 0.18);
    --shadow-lg: 0 30px 60px -20px rgba(11, 38, 34, 0.28);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", Georgia, serif;
}

html[lang="ar"] {
    --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[lang="ar"] body { line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.4rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.97rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--teal-200); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 1.8rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 138, 118, 0.7); }
.btn-primary:hover { background: var(--teal-700); }

.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--teal-200); background: var(--teal-50); }

.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--teal-200); }
.btn-outline:hover { background: var(--teal-50); }

.btn .icon { width: 18px; height: 18px; }
html[dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 251, 249, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.brand-mark {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #000;
    box-shadow: 0 6px 14px -6px rgba(11, 38, 34, 0.55);
}
.brand-word { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-word-a { color: #1667c7; }
.brand-word-b { color: #3ea83a; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.main-nav a {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: var(--teal-700); background: var(--teal-50); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.9rem;
    transition: border-color .2s ease, color .2s ease;
}
.lang-toggle:hover { border-color: var(--teal-200); color: var(--teal-700); }
.lang-toggle .icon { width: 18px; height: 18px; }
.lang-toggle [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    place-items: center;
}
.menu-button svg { width: 22px; height: 22px; }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 0.75rem 0 1.25rem;
}
.mobile-nav a {
    display: block;
    padding: 0.8rem 0;
    font-weight: 600;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1rem; }
.site-header.menu-open .mobile-nav { display: block; }

@media (max-width: 900px) {
    .main-nav, .header-actions .btn-header-cta { display: none; }
    .menu-button { display: grid; }
}

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--teal-100);
    color: var(--teal-700);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-500);
}

h1, h2, h3 { margin: 0; color: var(--ink); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.35; }

.section-sub {
    margin: 0;
    font-size: 1.08rem;
    color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 720px;
    background:
        radial-gradient(520px 320px at 78% 30%, rgba(20, 163, 139, 0.22), transparent 70%),
        radial-gradient(420px 260px at 12% 10%, rgba(167, 243, 220, 0.6), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
html[dir="rtl"] .hero::before { transform: scaleX(-1); }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero h1 .accent { color: var(--teal-600); }

.hero-sub {
    max-width: 540px;
    margin: 0 0 2rem;
    font-size: 1.15rem;
    color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points .icon { width: 20px; height: 20px; color: var(--teal-600); }

/* Dashboard mockup */
.mockup {
    position: relative;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
    box-shadow: var(--shadow-lg);
}
.mockup-window {
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #fafdfc;
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e3ece9; }
.mockup-bar strong { margin-inline-start: auto; font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.mockup-body { padding: 1.1rem; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.mockup-stat {
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--teal-50);
}
.mockup-stat small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.mockup-stat b { display: block; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.mockup-stat.alt { background: #fff7e8; }
.mockup-stat.alt2 { background: #fff0ec; }

.mockup-list-title { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 0.5rem; }
.mockup-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}
.mockup-row time { font-weight: 700; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.mockup-row .pet b { display: block; color: var(--ink); line-height: 1.3; }
.mockup-row .pet small { color: var(--muted); }
.status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--teal-100);
    color: var(--teal-700);
}
.status-pill.wait { background: #fff4dc; color: #9a6a0c; }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ink);
    animation: float 6s ease-in-out infinite;
}
.float-chip .dot {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--teal-100);
    color: var(--teal-700);
}
.float-chip .dot svg { width: 16px; height: 16px; }
.float-chip.one { inset-block-start: -18px; inset-inline-end: -14px; }
.float-chip.two { inset-block-end: -20px; inset-inline-start: -18px; animation-delay: -3s; }
.float-chip.two .dot { background: #fff1d6; color: #a86f00; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 960px) {
    .hero { padding-top: 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .mockup { max-width: 560px; }
}
@media (max-width: 520px) {
    .float-chip { display: none; }
    .mockup { padding: 0.75rem; }
}

/* ---------- Stats ---------- */
.stats-band { padding: 0 0 1rem; }
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.stat { padding: 1.6rem 1.5rem; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--teal-700);
    line-height: 1.3;
}
.stat span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-inline-start: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Steps ---------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 2rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.step-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--teal-600);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features-section { background: #fff; border-block: 1px solid var(--line); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.feature {
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid transparent;
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--teal-200); background: #fff; transform: translateY(-3px); }
.feature-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: #fff;
    color: var(--teal-600);
    box-shadow: var(--shadow-sm);
}
.feature:hover .feature-icon { background: var(--teal-600); color: #fff; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.billing-switch {
    display: inline-flex;
    flex: none;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}
.billing-switch button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 34px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.billing-switch button.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.billing-switch button:focus-visible { outline: 2px solid var(--teal-200); outline-offset: 2px; }
.save-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #fff1d6;
    color: #8a5a00;
    font-size: 0.72rem;
    font-weight: 800;
}
.billing-switch button.is-active .save-badge { background: rgba(255, 255, 255, 0.2); color: #fff; }

.pricing-center { text-align: center; }

.pricing-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.5fr);
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1060px;
    margin-inline: auto;
    text-align: start;
}

.trial-plan,
.paid-plan {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.trial-plan {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #fff;
}
.trial-plan h3 { margin: 0 0 0.45rem; font-size: 1.45rem; }
.trial-plan > p { margin: 0; color: var(--muted); }
.trial-price {
    margin-top: 1.8rem;
    color: var(--teal-700);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}
.trial-duration { margin-top: 0.4rem !important; font-weight: 700; }

.plan-tag {
    position: absolute;
    inset-block-start: -14px;
    inset-inline-start: 2rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--amber);
    color: #3b2600;
    font-size: 0.78rem;
    font-weight: 800;
}

.compact-features,
.paid-features {
    margin: 1.6rem 0 0;
    padding: 1.4rem 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.compact-features {
    display: grid;
    gap: 0.65rem;
    margin-top: auto;
}
.compact-features li,
.paid-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.compact-features .icon,
.paid-features .icon { flex: none; width: 18px; height: 18px; margin-top: 0.2em; color: var(--teal-500); }

.paid-plan {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 163, 139, 0.25), transparent 34%),
        linear-gradient(145deg, #172d2a, #0b1f1c);
}
.paid-plan-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.7rem;
}
.paid-plan-head h3 { margin: 0 0 0.35rem; color: #fff; font-size: 1.55rem; }
.paid-plan-head p { margin: 0; color: rgba(255, 255, 255, 0.66); }
.billing-panels {
    min-height: 132px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.billing-panel { padding: 1.55rem 0.2rem; }
.billing-panel[hidden] { display: none; }
.billing-price-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}
.billing-plan-label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; }
.billing-plan-label strong { color: #fff; font-size: 1.1rem; }
.billing-price-copy p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}
.best-value {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: #fff;
    background: var(--teal-600);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.billing-option-price {
    text-align: end;
    font-variant-numeric: tabular-nums;
}
.billing-option-price > div {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.old-monthly-price { color: rgba(255, 255, 255, 0.48); text-decoration: line-through; }
.billing-option-price strong { color: #fff; font-size: 2rem; line-height: 1; letter-spacing: -0.04em; }
.billing-option-price > div > span:not(.old-monthly-price) { color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; }
.billing-option-price small {
    display: block;
    margin-top: 0.45rem;
    color: var(--teal-200);
    font-size: 0.75rem;
    font-weight: 700;
}
.paid-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
    border-top-color: rgba(255, 255, 255, 0.11);
}
.paid-features li { color: rgba(255, 255, 255, 0.82); }

.pricing-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

@media (max-width: 900px) {
    .pricing-showcase { grid-template-columns: 1fr; max-width: 680px; }
}
@media (max-width: 640px) {
    .trial-plan, .paid-plan { padding: 1.6rem 1.25rem; }
    .paid-plan-head { display: block; }
    .billing-switch { margin-top: 1.1rem; max-width: 100%; }
    .billing-switch button { padding-inline: 0.7rem; }
    .billing-price-row { grid-template-columns: 1fr; gap: 1.1rem; }
    .billing-option-price { justify-content: flex-start; text-align: start; }
    .billing-option-price > div { justify-content: flex-start; }
    .paid-features { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--teal-200); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--teal-600);
    transition: transform .25s ease;
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Signup ---------- */
.signup-section { padding-top: 2rem; }
.signup-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.signup-aside {
    position: relative;
    padding: 3rem 2.5rem;
    background: linear-gradient(165deg, var(--teal-700), var(--teal-900));
    color: #fff;
    overflow: hidden;
}
.signup-aside::after {
    content: "";
    position: absolute;
    inset-block-end: -120px;
    inset-inline-end: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 50px solid rgba(167, 243, 220, 0.08);
}
.signup-aside .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--teal-100); }
.signup-aside .eyebrow::before { background: var(--teal-200); }
.signup-aside .section-title { color: #fff; }
.signup-aside .section-sub { color: rgba(255, 255, 255, 0.78); margin-bottom: 2rem; }
.benefits { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; }
.benefits .check {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(167, 243, 220, 0.16);
    color: var(--teal-200);
}
.benefits .check svg { width: 16px; height: 16px; }

.signup-form { padding: 2.75rem 2.5rem; }
.form-section-title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-700);
}
html[lang="ar"] .form-section-title { letter-spacing: 0; font-size: 0.9rem; }
.form-section + .form-section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px dashed var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-soft);
}
.input, .select {
    width: 100%;
    min-height: 50px;
    padding: 0 0.95rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfdfc;
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.input::placeholder { color: #9fb2ad; }
.input:hover, .select:hover { border-color: #c7ddd6; }
.input:focus, .select:focus {
    outline: none;
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 163, 139, 0.14);
}
.field.has-error .input, .field.has-error .select { border-color: #e5484d; background: #fffafa; }
.input-ltr { direction: ltr; text-align: start; }
html[dir="rtl"] .input-ltr { text-align: right; }

.select {
    appearance: none;
    padding-inline-end: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235e7772'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: right 0.8rem center;
}
html[dir="rtl"] .select { background-position: left 0.8rem center; }

.slug-field {
    display: flex;
    direction: ltr;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfdfc;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.slug-field:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20, 163, 139, 0.14); background: #fff; }
.field.has-error .slug-field { border-color: #e5484d; }
.slug-field .input { border: 0; box-shadow: none; background: transparent; min-width: 0; flex: 1; text-align: left; }
.slug-field .input:focus { box-shadow: none; }
.slug-suffix {
    display: flex;
    align-items: center;
    padding: 0 0.95rem;
    background: var(--teal-50);
    color: var(--teal-700);
    font-weight: 700;
    font-size: 0.92rem;
    border-left: 1.5px solid var(--line);
    white-space: nowrap;
}

.phone-field {
    display: grid;
    grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr);
    gap: 0.6rem;
}
.phone-country {
    padding-inline: 0.75rem;
    font-size: 0.92rem;
    cursor: pointer;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 560px) {
    .phone-field { grid-template-columns: 1fr; }
}

.hint { margin-top: 0.4rem; font-size: 0.83rem; color: var(--muted); }
.error { margin-top: 0.4rem; font-size: 0.84rem; color: #cd2b31; font-weight: 600; }

.segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
@media (max-width: 560px) {
    .segmented { grid-template-columns: 1fr; }
}
.segmented label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfdfc;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink-soft);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + label { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700); }
.segmented input:focus-visible + label { box-shadow: 0 0 0 4px rgba(20, 163, 139, 0.14); }

.form-footer { margin-top: 2rem; }
.form-footer .terms { margin: 0.9rem 0 0; text-align: center; font-size: 0.87rem; color: var(--muted); }

.alert {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    font-size: 0.95rem;
}
.alert .icon { flex: none; width: 22px; height: 22px; margin-top: 0.1em; }
.alert strong { display: block; }
.alert-success { background: var(--teal-50); border: 1px solid var(--teal-200); color: var(--teal-900); }
.alert-success .icon { color: var(--teal-600); }
.alert-error { background: #fff5f5; border: 1px solid #fbd0d1; color: #8f1d22; }
.alert-error .icon { color: #cd2b31; }
.alert[hidden] { display: none !important; }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 28, 25, 0.55);
    backdrop-filter: blur(2px);
}
.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 2rem 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.modal-close {
    position: absolute;
    inset-block-start: 0.85rem;
    inset-inline-end: 0.85rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--teal-50);
    color: var(--ink-soft);
    cursor: pointer;
}
.modal-close:hover { background: var(--teal-100); color: var(--ink); }
.modal-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0.25rem auto 1rem;
    border-radius: 50%;
    background: var(--teal-50);
    color: var(--teal-600);
}
.modal-icon svg { width: 32px; height: 32px; }
.modal-dialog h3 {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    color: var(--ink);
}
.modal-dialog p {
    margin: 0 0 1.5rem;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 960px) {
    .signup-card { grid-template-columns: 1fr; }
    .signup-aside { padding: 2.5rem 1.75rem; }
    .signup-form { padding: 2.25rem 1.75rem; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    section { padding: 4.5rem 0; }
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 5rem;
    padding: 3.5rem 0 2rem;
    background: var(--teal-900);
    color: rgba(255, 255, 255, 0.72);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .brand { color: #fff; margin-bottom: 0.8rem; }
.brand-footer img { display: block; width: 150px; height: auto; }
.site-footer p { margin: 0; max-width: 360px; }
.footer-links h4 { margin: 0 0 0.9rem; color: #fff; font-size: 0.95rem; }
.footer-links ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; font-size: 0.88rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-chip { animation: none; }
    * { transition-duration: 0s !important; }
}
