/*
 * ArabicRoom Pricing Page Styles
 * Design: DM Sans / DM Serif Display — Navy × Blue × Green palette
 * Updated: 11.0 – full redesign with 3-column layout & billing toggle
 */

/* ── CSS custom properties ─────────────────────────────────────────────── */
.arp-wrap {
    --navy:   #0f2544;
    --blue:   #185FA5;
    --green:  #1D9E75;
    --red:    #e53e3e;
    --amber:  #d97706;
    --bg:     #f8fafd;
    --surface:#ffffff;
    --border: #dde3ec;
    --text-1: #0f2544;
    --text-2: #374151;
    --text-3: #6b7280;
    --text-4: #9ca3af;
    --radius: 18px;
    --shadow-xs: 0 1px 2px rgba(15,37,68,.05);
    --shadow-s:  0 2px 8px rgba(15,37,68,.08);
    --shadow-m:  0 6px 20px rgba(15,37,68,.10);
    --shadow-l:  0 16px 40px rgba(15,37,68,.12);
    --shadow-xl: 0 24px 60px rgba(15,37,68,.16);
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    font-family: var(--font-body);
    color: var(--text-1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding: 0 0 80px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.arp-wrap *,
.arp-wrap *::before,
.arp-wrap *::after {
    box-sizing: inherit;
}

/* ── Current subscriber banner ─────────────────────────────────────────── */
.arp-current-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 40px;
    font-size: .9rem;
}
.arp-current-banner__icon { font-size: 1.4rem; }
.arp-current-banner > div { flex: 1; }
.arp-current-banner strong { display: block; color: #065f46; font-weight: 600; }
.arp-current-banner span   { color: #047857; }
.arp-current-banner__link  { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.arp-current-banner__link:hover { text-decoration: underline; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.arp-hero {
    text-align: center;
    padding: 60px 24px 40px;
}

.arp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e8f0fe;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.arp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

.arp-hero__sub {
    font-size: 1.05rem;
    color: var(--text-3);
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto 28px;
}

/* ── Platform stats grid ───────────────────────────────────────────────── */
.arp-stats {
    display: inline-flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-s);
    overflow: hidden;
}

.arp-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 32px;
    gap: 5px;
    text-align: center;
}

.arp-stats__item strong {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -.03em;
}

.arp-stats__item span {
    font-size: .78rem;
    color: var(--text-3);
    white-space: nowrap;
    font-weight: 500;
}

.arp-stats__sep {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
    align-self: stretch;
    margin: 14px 0;
}

.arp-stats__dot { display: none; }

/* ── Billing toggle ────────────────────────────────────────────────────── */
.arp-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 44px;
}

.arp-toggle__label {
    font-size: .9rem;
    color: var(--text-3);
    font-weight: 500;
    transition: color .2s;
    user-select: none;
}

.arp-toggle__label--active {
    color: var(--navy);
    font-weight: 600;
}

/* The toggle button itself */
.arp-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 52px;
    height: 28px;
    background: var(--border);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background .25s;
    padding: 0;
}

.arp-toggle--yearly {
    background: var(--blue);
}

.arp-toggle__thumb {
    position: absolute;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}

.arp-toggle--yearly .arp-toggle__thumb {
    transform: translateX(24px);
}

.arp-save-pill {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 100px;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s, transform .2s;
}

.arp-save-pill--visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Cards grid ────────────────────────────────────────────────────────── */
.arp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    padding: 0 20px;
}

/* ── Single card ───────────────────────────────────────────────────────── */
.arp-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.arp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-m);
}

/* Featured Pro card */
.arp-card--featured {
    border: 2px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(24,95,165,.08), var(--shadow-l);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 60%);
    transform: scale(1.025);
    z-index: 2;
}

.arp-card--featured:hover {
    transform: scale(1.025) translateY(-5px);
    box-shadow: 0 0 0 4px rgba(24,95,165,.12), var(--shadow-xl);
}

/* University card */
.arp-card--uni {
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 60%);
    border-color: #fddcb1;
}

.arp-card--uni:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-m);
}

/* ── Popular badge (floating above Pro card) ───────────────────────────── */
.arp-card__popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(24,95,165,.35);
}

/* ── Top badge (top-right corner) ──────────────────────────────────────── */
.arp-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

.arp-card__badge--free {
    background: #f3f4f6;
    color: var(--text-3);
}

.arp-card__badge--pro {
    background: #dbeafe;
    color: var(--blue);
}

.arp-card__badge--uni {
    background: #fff3e0;
    color: var(--amber);
}

/* ── Card name / description ───────────────────────────────────────────── */
.arp-card__name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.arp-card__desc {
    font-size: .85rem;
    color: var(--text-3);
    line-height: 1.5;
    margin-bottom: 22px;
}

/* ── Price block ───────────────────────────────────────────────────────── */
.arp-card__price-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.arp-card__amount {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -.03em;
    transition: all .25s;
}

.arp-card--featured .arp-card__amount {
    color: var(--blue);
}

.arp-card__amount--custom {
    font-size: 2.4rem;
    color: var(--amber);
}

.arp-card__period {
    font-size: .9rem;
    color: var(--text-3);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 4px;
}

.arp-card__price-note {
    font-size: .8rem;
    min-height: 1.2em;
    margin-bottom: 22px;
    line-height: 1.4;
}

.arp-card__price-note--green  { color: var(--green); font-weight: 500; }
.arp-card__price-note--muted  { color: var(--text-3); }
.arp-card__price-note--empty  { visibility: hidden; }

/* ── CTA buttons ───────────────────────────────────────────────────────── */
.arp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .22s ease;
    letter-spacing: -.01em;
    line-height: 1.3;
    text-align: center;
}

.arp-btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(24,95,165,.35);
}

.arp-btn--primary:hover {
    background: #1452a0;
    box-shadow: 0 6px 20px rgba(24,95,165,.45);
    transform: translateY(-1px);
    color: #fff;
}

.arp-btn--outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
}

.arp-btn--outline:hover {
    border-color: var(--navy);
    background: #f1f5f9;
}

.arp-btn--ghost {
    background: var(--bg);
    color: var(--navy);
    border: 1.5px solid var(--border);
}

.arp-btn--ghost:hover {
    background: #eaf0fb;
    border-color: var(--blue);
    color: var(--blue);
}

.arp-btn--current {
    background: #f9fafb;
    color: var(--text-3);
    border: 1px dashed var(--border);
    cursor: default;
}

.arp-btn-note {
    text-align: center;
    font-size: .78rem;
    color: var(--text-4);
    margin-top: 10px;
    min-height: 1.2em;
    line-height: 1.4;
}

/* ── Divider & section label ───────────────────────────────────────────── */
.arp-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 26px 0 18px;
}

.arp-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-4);
    margin-bottom: 10px;
}

/* ── Feature list ──────────────────────────────────────────────────────── */
.arp-feat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.arp-feat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .875rem;
    color: var(--text-2);
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}

.arp-feat-list li:last-child {
    border-bottom: none;
}

/* Check / cross variants */
.arp-feat-list__check::before {
    content: '✓';
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    flex-shrink: 0;
    width: 18px;
}

.arp-feat-list__cross {
    opacity: .45;
}

.arp-feat-list__cross::before {
    content: '–';
    font-size: 1rem;
    color: var(--text-4);
    flex-shrink: 0;
    width: 18px;
}

/* Inline limit chip */
.arp-chip {
    font-size: .72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-3);
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Accessible / hardship box ─────────────────────────────────────────── */
.arp-accessible {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 26px 30px;
    margin: 52px 20px 0;
}

.arp-accessible__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.arp-accessible h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.arp-accessible p {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
}

.arp-accessible a {
    color: var(--blue);
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .arp-cards {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }
    .arp-card--featured {
        transform: none;
    }
    .arp-card--featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 600px) {
    .arp-hero { padding: 40px 16px 28px; }
    .arp-hero__title { font-size: 2rem; }
    .arp-hero__sub   { font-size: .95rem; }
    .arp-cards { padding: 0 12px; }
    .arp-card  { padding: 30px 20px; }
    .arp-card__amount { font-size: 2.6rem; }
    .arp-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 14px;
        width: 100%;
        max-width: 340px;
    }
    .arp-stats__item { padding: 16px 12px; }
    .arp-stats__item strong { font-size: 1.5rem; }
    .arp-stats__sep {
        display: none;
    }
    /* add borders via item styling on mobile grid */
    .arp-stats__item:nth-child(odd):not(:last-child),
    .arp-stats__item:nth-child(even):not(:last-child) {
        border-bottom: 1px solid var(--border);
    }
    .arp-stats__item:nth-child(1),
    .arp-stats__item:nth-child(3) {
        border-right: 1px solid var(--border);
    }
    .arp-accessible { flex-direction: column; gap: 10px; padding: 20px; margin: 36px 12px 0; }
}

@media (max-width: 400px) {
    .arp-toggle-wrap { flex-wrap: wrap; justify-content: center; gap: 8px; }
}
