/**
 * Gripar Static Pages — Shared Shell
 * Version: 1.2.2
 *
 * Design tokens kept 1:1 with gripar-login.php so every static page reads as
 * one product with the auth surface. Class prefix: `.gp-about-*` (kept for
 * naming continuity with the existing About page; safe to reuse across
 * Features, Privacy, Help, etc. — it's a shell, not About-specific).
 */

/* ============================================================
   1.  Release WP/Blocksy container clamp ONLY on the container(s)
       that actually wrap the shell. Using :has() on each container
       (instead of body:has() ... container) keeps the header,
       sidebar, footer, and any other containers on the page
       completely untouched. The header is rendered by WP/Blocksy
       and we must not mutate it.
   ============================================================ */
.ct-container:has(.gp-about-shell-outer),
.ct-container-narrow:has(.gp-about-shell-outer),
.ct-main-container:has(.gp-about-shell-outer),
.entry-content:has(.gp-about-shell-outer),
#main:has(.gp-about-shell-outer),
.site-main:has(.gp-about-shell-outer),
.wp-site-blocks:has(.gp-about-shell-outer),
main:has(.gp-about-shell-outer),
article:has(.gp-about-shell-outer){
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================================
   2.  Outer wrapper + shell grid
   ============================================================ */
.gp-about-shell-outer{
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 96px);
    display: grid;
    place-items: start center;
    padding: 48px 24px;
    box-sizing: border-box;
    background: transparent;
}

.gp-about-shell{
    --gp-ink: #0f172a;
    --gp-soft: #475569;
    --gp-muted: #94a3b8;
    --gp-line: #e2e8f0;
    --gp-brand: #5B6ABF;
    --gp-brand-dark: #3D4FAF;
    --gp-brand-soft: #eef0fb;
    --gp-card-radius: 18px;
    --gp-shadow: 0 18px 40px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);

    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Page background — only on pages that render the shell. */
body:has(.gp-about-shell){
    background-color: #f5f7fa;
    background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,.05) 1px, transparent 0);
    background-size: 22px 22px;
    background-attachment: fixed;
}

/* ============================================================
   3.  Sidebar — brand + menu
   ============================================================ */
.gp-about-aside{
    background: linear-gradient(155deg, var(--gp-brand) 0%, var(--gp-brand-dark) 100%);
    color: #fff;
    border-radius: var(--gp-card-radius);
    padding: 28px 24px 22px;
    box-shadow: var(--gp-shadow);
    position: sticky;
    top: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.gp-about-aside::before,
.gp-about-aside::after{
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}
.gp-about-aside::before{ top: -70px; right: -70px; width: 200px; height: 200px; }
.gp-about-aside::after { bottom: -90px; left: -50px; width: 170px; height: 170px; background: rgba(255,255,255,.05); }

.gp-about-aside__brand{
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 4px; position: relative;
}
.gp-about-aside__logo{
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.gp-about-aside__logo svg{ width: 22px; height: 22px; display: block; }
.gp-about-aside__title{ font-size: 19px; font-weight: 800; letter-spacing: -.1px; }
.gp-about-aside__tag{
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
    color: rgba(255,255,255,.72); margin: 2px 0 0;
}
.gp-about-aside__sub{
    font-size: 13px; color: rgba(255,255,255,.82);
    margin: 14px 0 18px; line-height: 1.6; position: relative;
    padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15);
}

.gp-about-menu{ list-style: none; margin: 0; padding: 0; position: relative; flex: 1; }
.gp-about-menu li{ margin: 0; }
.gp-about-menu a{
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; margin: 3px 0; border-radius: 10px;
    color: rgba(255,255,255,.94);
    text-decoration: none; font-size: 14px; font-weight: 600;
    border: 1px solid transparent;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.gp-about-menu a:hover,
.gp-about-menu a:focus-visible,
.gp-about-menu a.is-active{
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.20);
    transform: translateX(2px);
    color: #fff; outline: none;
}
.gp-about-menu i{
    width: 18px; text-align: center;
    color: rgba(255,255,255,.82); font-size: 14px;
}
.gp-about-menu__loading,
.gp-about-menu__empty{
    font-size: 13px; color: rgba(255,255,255,.72);
    padding: 8px 12px; font-style: italic;
}

.gp-about-aside__footer{
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 12.5px; color: rgba(255,255,255,.78);
    line-height: 1.55; position: relative;
}
.gp-about-aside__footer strong{ color: #fff; }
.gp-about-aside__cta{
    display: inline-block; margin-top: 10px;
    background: rgba(255,255,255,.16);
    color: #fff !important; text-decoration: none;
    font-size: 12.5px; font-weight: 700;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    transition: background .15s ease, transform .15s ease;
}
.gp-about-aside__cta:hover{
    background: rgba(255,255,255,.26);
    transform: translateY(-1px);
}

/* ============================================================
   4.  Top bar — back button + breadcrumb
   ============================================================ */
.gp-about-main{ min-width: 0; display: flex; flex-direction: column; }

.gp-about-topbar{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Back button */
.gp-about-back{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-brand-dark, #3D4FAF);
    text-decoration: none;
    background: rgba(91,106,191,.08);
    border: 1px solid rgba(91,106,191,.18);
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
    line-height: 1;
}
.gp-about-back svg{
    width: 14px; height: 14px;
    flex: 0 0 14px;
    color: var(--gp-brand-dark, #3D4FAF);
}
.gp-about-back:hover{
    background: rgba(91,106,191,.15);
    border-color: rgba(91,106,191,.30);
    transform: translateX(-2px);
    color: var(--gp-brand-dark, #3D4FAF);
    text-decoration: none;
}

/* Divider between back and breadcrumb */
.gp-about-topbar .gp-about-back + .gp-about-breadcrumb::before{
    content: "";
    display: inline-block;
    width: 1px; height: 14px;
    background: var(--gp-line, #e2e8f0);
    margin-right: 10px;
    vertical-align: middle;
}

/* Breadcrumb */
.gp-about-breadcrumb{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
}
.gp-about-breadcrumb li{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
}
.gp-about-breadcrumb a{
    color: var(--gp-soft, #475569);
    text-decoration: none;
    font-weight: 500;
    transition: color .12s ease;
}
.gp-about-breadcrumb a:hover{
    color: var(--gp-brand-dark, #3D4FAF);
    text-decoration: underline;
}
.gp-about-breadcrumb span[aria-current="page"]{
    color: var(--gp-ink, #0f172a);
    font-weight: 600;
}
.gp-about-breadcrumb__sep{
    display: inline-flex;
    align-items: center;
    color: var(--gp-muted, #94a3b8);
    margin: 0 1px;
}
.gp-about-breadcrumb__sep svg{
    width: 12px; height: 12px;
}

.gp-about-card{
    margin: 0; padding: 0;
    background:
        radial-gradient(circle at 85% -10%, rgba(91,106,191,.10) 0%, rgba(91,106,191,0) 45%),
        radial-gradient(circle at 0% 110%, rgba(91,106,191,.06) 0%, rgba(91,106,191,0) 40%),
        #ffffff;
    border-radius: var(--gp-card-radius);
    box-shadow: var(--gp-shadow);
    border: 1px solid var(--gp-line);
    overflow: hidden;
    position: relative;
}
.gp-about-card::before{
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gp-brand) 0%, var(--gp-brand-dark) 100%);
    z-index: 2;
}
.gp-about-card::after{
    content: "";
    position: absolute; top: -80px; right: -80px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(91,106,191,.06);
    pointer-events: none; z-index: 0;
}
.gp-about-body{
    position: relative; z-index: 1;
    padding: 42px 44px 36px;
}

/* ============================================================
   5.  Hero
   ============================================================ */
.gp-about-hero{
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gp-line);
    margin-bottom: 32px;
}
.gp-about-eyebrow{
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gp-brand-soft);
    color: var(--gp-brand-dark);
    font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
    margin-bottom: 14px;
}
.gp-about-eyebrow svg{ width: 14px; height: 14px; }
.gp-about-h1{
    font-size: 34px; font-weight: 800; letter-spacing: -.6px;
    color: var(--gp-ink);
    margin: 0 0 10px; line-height: 1.15;
}
.gp-about-lede{
    font-size: 15.5px; line-height: 1.65; color: var(--gp-soft);
    margin: 0; max-width: 62ch;
}

/* ============================================================
   6.  Gradient callout (Hindi welcome strip etc.)
   ============================================================ */
.gp-about-callout{
    margin: 28px 0 8px;
    background: linear-gradient(135deg, var(--gp-brand) 0%, var(--gp-brand-dark) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 24px rgba(91,106,191,.25);
}
.gp-about-callout::before{
    content: ""; position: absolute;
    top: -50px; right: -50px; width: 160px; height: 160px;
    background: rgba(255,255,255,.08); border-radius: 50%;
    pointer-events: none;
}
.gp-about-callout__chip{
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    padding: 6px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
    margin-bottom: 10px;
}
.gp-about-callout__title{
    font-size: 22px; font-weight: 800; letter-spacing: -.2px;
    margin: 0 0 8px;
}
.gp-about-callout__text{
    font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.92);
    margin: 0; max-width: 60ch;
}

/* ============================================================
   7.  Sections
   ============================================================ */
.gp-about-section{ margin-top: 36px; }
.gp-about-section + .gp-about-section{ margin-top: 32px; }
.gp-about-section__h2{
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; color: var(--gp-ink);
    letter-spacing: -.2px;
    margin: 0 0 12px;
}
.gp-about-section__h2 .gp-about-ico{
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 10px;
    background: var(--gp-brand-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--gp-brand-dark);
}
.gp-about-section__h2 .gp-about-ico svg{ width: 18px; height: 18px; }
.gp-about-section p{
    font-size: 15px; line-height: 1.7; color: var(--gp-soft);
    margin: 0 0 12px;
}
.gp-about-section p:last-child{ margin-bottom: 0; }
.gp-about-section strong{ color: var(--gp-ink); font-weight: 700; }
.gp-about-section em{ font-style: italic; color: var(--gp-ink); }

/* ============================================================
   8.  Quote
   ============================================================ */
.gp-about-quote{
    margin-top: 22px;
    border-left: 4px solid var(--gp-brand);
    background: linear-gradient(90deg, rgba(91,106,191,.06) 0%, rgba(91,106,191,0) 100%);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    font-size: 15px; line-height: 1.7;
    color: var(--gp-ink);
    font-style: italic;
}
.gp-about-quote::before{
    content: "\201C";
    display: inline-block;
    font-size: 32px; line-height: 0; vertical-align: -12px;
    margin-right: 6px; color: var(--gp-brand);
    font-style: normal; font-weight: 800;
}

/* ============================================================
   9.  Feature grid
   ============================================================ */
.gp-about-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.gp-about-feature{
    background: #fff;
    border: 1px solid var(--gp-line);
    border-radius: 12px;
    padding: 16px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gp-about-feature:hover{
    transform: translateY(-2px);
    border-color: rgba(91,106,191,.35);
    box-shadow: 0 8px 20px rgba(91,106,191,.10);
}
.gp-about-feature__head{
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.gp-about-feature__ico{
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--gp-brand-soft);
    color: var(--gp-brand-dark);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 32px;
}
.gp-about-feature__ico svg{ width: 18px; height: 18px; }
.gp-about-feature__title{
    font-size: 14.5px; font-weight: 700; color: var(--gp-ink);
    margin: 0; letter-spacing: -.1px;
}
.gp-about-feature__text{
    font-size: 13.5px; line-height: 1.6; color: var(--gp-soft);
    margin: 0;
}

/* ============================================================
   10. Step list
   ============================================================ */
.gp-about-steps{
    list-style: none; margin: 14px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.gp-about-step{
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 16px;
    background: #fafbff;
    border: 1px solid var(--gp-line);
    border-radius: 12px;
}
.gp-about-step__num{
    flex: 0 0 30px; width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gp-brand) 0%, var(--gp-brand-dark) 100%);
    color: #fff; font-weight: 800; font-size: 13.5px;
    display: flex; align-items: center; justify-content: center;
}
.gp-about-step__body{ flex: 1; min-width: 0; }
.gp-about-step__title{
    font-size: 14.5px; font-weight: 700; color: var(--gp-ink);
    margin: 0 0 4px;
}
.gp-about-step__text{
    font-size: 13.5px; line-height: 1.6; color: var(--gp-soft);
    margin: 0;
}

/* ============================================================
   11. CTA strip
   ============================================================ */
.gp-about-cta{
    margin-top: 36px;
    background: #fafbff;
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.gp-about-cta__copy h3{
    font-size: 17px; font-weight: 800; color: var(--gp-ink);
    margin: 0 0 4px; letter-spacing: -.1px;
}
.gp-about-cta__copy p{
    font-size: 13.5px; line-height: 1.55; color: var(--gp-soft);
    margin: 0;
}
.gp-about-cta__btn{
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--gp-brand) 0%, var(--gp-brand-dark) 100%);
    color: #fff !important; text-decoration: none;
    font-size: 14px; font-weight: 700;
    padding: 11px 22px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(91,106,191,.30);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gp-about-cta__btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(91,106,191,.45);
}
.gp-about-cta__btn svg{ width: 16px; height: 16px; }

/* ============================================================
   12. Responsive
   ============================================================ */
@media (max-width: 920px){
    .gp-about-shell-outer{ padding: 40px 32px; }
    .gp-about-shell{ grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
    .gp-about-body{ padding: 34px 30px 28px; }
    .gp-about-h1{ font-size: 30px; }
}
@media (max-width: 780px){
    .gp-about-shell-outer{ padding: 24px 16px; min-height: auto; align-items: start; }
    .gp-about-shell{ grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .gp-about-aside{ position: static; padding: 22px 18px; }
    .gp-about-body{ padding: 26px 20px 22px; }
    .gp-about-h1{ font-size: 26px; }
    .gp-about-grid{ grid-template-columns: minmax(0, 1fr); }
    .gp-about-cta{ flex-direction: column; align-items: flex-start; }
    .gp-about-topbar{ gap: 8px; margin-bottom: 8px; }
    .gp-about-back{ font-size: 12px; padding: 4px 10px 4px 7px; }
    .gp-about-breadcrumb li{ font-size: 12px; }
}

/* ============================================================
   FAQ Accordion
   Uses native <details>/<summary> — no JS required, fully
   accessible. Chevron rotates via CSS transition on [open].
   ============================================================ */

.gp-faq {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #e8eaf6;
}

.gp-faq__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.gp-faq__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #eef0fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B6ABF;
}

.gp-faq__icon svg {
    width: 18px;
    height: 18px;
}

.gp-faq__title {
    font-size: 20px;
    font-weight: 700;
    color: #1E2A5E;
    margin: 0;
    line-height: 1.2;
}

/* Group of accordion items */
.gp-faq__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Section divider between page-specific and shared FAQs */
.gp-faq__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}

.gp-faq__divider::before,
.gp-faq__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8eaf6;
}

/* Each accordion item */
.gp-faq__item {
    background: #fff;
    border: 1px solid rgba(91, 106, 191, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gp-faq__item:hover {
    border-color: rgba(91, 106, 191, 0.28);
    box-shadow: 0 2px 12px rgba(91, 106, 191, 0.08);
}

.gp-faq__item[open] {
    border-color: rgba(91, 106, 191, 0.32);
    box-shadow: 0 3px 16px rgba(91, 106, 191, 0.11);
}

/* Question row — the <summary> */
.gp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: #1E2A5E;
    line-height: 1.4;
    list-style: none;          /* hide default marker in Firefox */
    user-select: none;
    transition: background 0.15s ease;
}

/* Chrome/Safari hide default marker */
.gp-faq__question::-webkit-details-marker { display: none; }
.gp-faq__question::marker { display: none; }

.gp-faq__item[open] .gp-faq__question {
    background: #f7f8fe;
    color: #3D4FAF;
    border-bottom: 1px solid rgba(91, 106, 191, 0.10);
}

/* Chevron icon */
.gp-faq__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: transform 0.22s ease, color 0.15s ease;
}

.gp-faq__chevron svg {
    width: 20px;
    height: 20px;
    display: block;
}

.gp-faq__item[open] .gp-faq__chevron {
    transform: rotate(180deg);
    color: #5B6ABF;
}

/* Answer panel */
.gp-faq__answer {
    padding: 14px 18px 18px;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.7;
}

.gp-faq__answer a {
    color: #5B6ABF;
    font-weight: 600;
    text-decoration: none;
}

.gp-faq__answer a:hover {
    text-decoration: underline;
}

@media (max-width: 780px) {
    .gp-faq { margin-top: 32px; padding-top: 24px; }
    .gp-faq__title { font-size: 17px; }
    .gp-faq__question { font-size: 13.5px; padding: 13px 14px; }
    .gp-faq__answer { padding: 12px 14px 16px; font-size: 13px; }
}