/* ===== Riaya landing — design tokens ===== */
:root {
    --teal-900: #0a5a4a;
    --teal-700: #0E7C66;   /* brand seed (matches the app) */
    --teal-500: #1aa583;
    --teal-50:  #e8f5f1;
    --ink:      #0f1f1b;
    --slate:    #5b6b66;
    --line:     #e4ebe8;
    --bg:       #ffffff;
    --bg-tint:  #f5faf8;
    --amber:    #f5a623;
    --radius:   18px;
    --shadow:   0 18px 50px -20px rgba(14, 124, 102, .35);
    --maxw:     1140px;
    --font:     'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html[dir="rtl"] body { font-family: 'Tajawal', system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin: 0 auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--slate); }

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 1rem;
    padding: 14px 26px; border-radius: 999px;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 10px 24px -10px rgba(14,124,102,.6); }
.btn-primary:hover { background: var(--teal-900); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-50); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
}
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--teal-900); }
.site-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.site-nav a { font-weight: 500; color: var(--slate); }
.site-nav a:hover { color: var(--teal-700); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
    background: var(--teal-50); color: var(--teal-900);
    border: none; border-radius: 999px; padding: 8px 16px;
    font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit;
}
.lang-toggle:hover { background: #d8efe8; }

/* ===== Hero ===== */
.hero {
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(26,165,131,.16), transparent 60%),
        linear-gradient(180deg, var(--bg-tint), var(--bg));
    padding: clamp(48px, 8vw, 96px) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-block; font-weight: 700; font-size: .85rem;
    color: var(--teal-700); background: var(--teal-50);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.15rem; margin: 20px 0 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1.4rem; color: var(--teal-900); font-weight: 800; }
.trust-item span { font-size: .9rem; color: var(--slate); }

/* Hero phone mockup */
.hero-art { display: flex; justify-content: center; }
.phone {
    width: 300px; padding: 14px; border-radius: 42px;
    background: linear-gradient(160deg, #14322b, #0a201b);
    box-shadow: var(--shadow); transform: rotate(2deg);
}
.phone-screen {
    background: var(--bg-tint); border-radius: 30px; padding: 20px 16px;
    min-height: 520px; display: flex; flex-direction: column; gap: 14px;
}
.app-search {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 13px 14px; color: var(--slate); font-size: .92rem;
    display: flex; align-items: center; gap: 10px;
}
.app-search .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); }
.app-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 14px; display: flex; align-items: center; gap: 12px;
}
.avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
}
.avatar.alt { background: linear-gradient(135deg, #f5a623, #d97706); }
.app-card-body { flex: 1; min-width: 0; }
.app-name { font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 4px; }
.app-meta { font-size: .8rem; color: var(--slate); }
.app-rate { font-weight: 800; color: var(--teal-900); font-size: 1rem; }
.app-rate small { font-weight: 500; color: var(--slate); font-size: .68rem; display: block; }
.app-book {
    margin-top: auto; background: var(--teal-700); color: #fff;
    text-align: center; padding: 14px; border-radius: 14px; font-weight: 700;
}

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--bg-tint); }
.section-eyebrow {
    display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
    text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px;
}
.section-lead { font-size: 1.12rem; margin-top: 16px; }

/* Care cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.care-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.care-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.care-icon { font-size: 2.2rem; margin-bottom: 14px; }
.care-card h3 { margin-bottom: 8px; }

/* Features */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px;
}
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px;
}
.feature-ic {
    width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50);
    display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .96rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { text-align: center; padding: 8px; }
.step-num {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px;
    display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
}
.step h3 { margin-bottom: 8px; }

/* Split (caregivers) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 32px; color: var(--ink); font-weight: 500; }
.check-list li::before {
    content: "✓"; position: absolute; inset-inline-start: 0; top: -1px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700);
    display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}
.split-art { display: flex; justify-content: center; }
.quote-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px; max-width: 380px; box-shadow: var(--shadow);
}
.quote-stars { color: var(--amber); font-size: 1.2rem; letter-spacing: 2px; }
.quote-card p { font-size: 1.18rem; color: var(--ink); font-weight: 500; margin: 16px 0; }
.quote-by { color: var(--slate); font-size: .92rem; }

/* Testimonials */
.testimonial {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; display: flex; flex-direction: column;
}
.testimonial p { color: var(--ink); font-weight: 500; margin: 14px 0 20px; flex: 1; }
.testimonial-by { display: flex; align-items: center; gap: 12px; }
.t-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
}
.t-avatar.alt { background: linear-gradient(135deg, #f5a623, #d97706); }
.testimonial-by strong { display: block; font-size: .95rem; }
.testimonial-by span { font-size: .82rem; color: var(--slate); }

/* FAQ */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 4px 20px; transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
    cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
    display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; font-size: 1.4rem; color: var(--teal-700); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 18px; }

/* Download */
.download {
    background:
        radial-gradient(700px 360px at 50% 120%, rgba(26,165,131,.2), transparent 60%),
        var(--bg-tint);
}
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 28px 0 14px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px;
    transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge small { display: block; font-size: .68rem; opacity: .8; }
.store-badge strong { font-size: 1.05rem; }
.download-note { font-size: .9rem; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand .brand-name { display: block; margin-bottom: 8px; }
.footer-brand p { font-size: .95rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--slate); font-weight: 500; }
.footer-links a:hover { color: var(--teal-700); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: var(--teal-700); font-weight: 600; }
.footer-copy { font-size: .85rem; color: var(--slate); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .cards-3, .features-grid, .steps { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Apply page ===== */
.apply-hero { padding-bottom: 0; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.apply-form-section { padding-top: 40px; }
.apply-form fieldset {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; margin-bottom: 22px;
}
.apply-form legend {
    font-weight: 700; color: var(--teal-900); padding: 0 10px; font-size: 1.05rem;
}
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .field-label {
    display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink);
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="number"], .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); }
.field input[type="file"] {
    width: 100%; padding: 10px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff;
}
.field-hint { font-size: .88rem; color: var(--slate); margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.apply-form .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; }

.apply-error {
    background: #fdecec; border: 1px solid #f5c2c2; color: #b42318;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; font-weight: 500;
}
.apply-success {
    text-align: center; background: var(--teal-50); border: 1px solid #cde9e1;
    border-radius: var(--radius); padding: 44px 28px;
}
.apply-success-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
    display: grid; place-items: center; font-size: 2rem; color: #fff; font-weight: 800;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
}
.apply-success p { max-width: 480px; margin: 12px auto 24px; }

@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* RTL niceties */
html[dir="rtl"] .phone { transform: rotate(-2deg); }
