/* Aidrobe help pages — shared stylesheet
   Matches the homepage design language: warm pastel gradient,
   Inter + Caveat type, capsule pills, glassy details accordions. */

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

:root {
    --pink-1: #ffd6e7;
    --pink-2: #ffd0d8;
    --peach: #ffe2c8;
    --cream-1: #fff1d4;
    --cream-2: #fdf5e2;
    --ink: #0e0a08;
    --ink-soft: #3a2a25;
    --muted: #6a4f4a;
    --rose: #ff3aa3;
    --rose-deep: #c81f7f;
    --rose-soft: #ffc1de;
    --paper: #ffffff;
    --line: rgba(20, 10, 14, 0.1);
    --radius-pill: 999px;
    --radius-card: 18px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background:
        radial-gradient(120% 60% at 95% 0%, var(--pink-1) 0%, rgba(255, 214, 231, 0) 55%),
        radial-gradient(100% 70% at 0% 100%, var(--cream-1) 0%, rgba(255, 241, 212, 0) 60%),
        linear-gradient(180deg, var(--pink-2) 0%, var(--peach) 38%, var(--cream-1) 72%, var(--cream-2) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
}

::selection {
    background: var(--rose);
    color: white;
}

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

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
}

.script {
    font-family: "Caveat", "Snell Roundhand", "Brush Script MT", cursive;
    color: var(--rose);
    font-weight: 700;
    line-height: 0.95;
}

.eyebrow {
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(18px, 5vw, 56px);
    background: rgba(255, 232, 215, 0.55);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(20, 10, 14, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.nav a:not(.pill):hover {
    color: var(--rose-deep);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.pill-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 22px rgba(20, 10, 14, 0.18);
}

.pill-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 10, 14, 0.25);
}

.pill-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    border: 1px solid rgba(20, 10, 14, 0.1);
}

.pill-ghost:hover {
    background: #fff;
}

/* Hero band */
main {
    padding: 0 clamp(20px, 5vw, 56px);
}

.help-hero {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
}

.help-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin-bottom: 14px;
}

.help-hero h1 .script {
    font-size: clamp(2.9rem, 7vw, 4.9rem);
    display: inline-block;
    margin-top: -0.05em;
}

.help-hero p.lead {
    color: var(--ink-soft);
    font-size: clamp(1.04rem, 1.5vw, 1.18rem);
    max-width: 580px;
}

/* FAQ accordion */
.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: clamp(48px, 7vw, 84px);
    display: grid;
    gap: 12px;
}

details.faq {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(20, 10, 14, 0.07);
    border-radius: 14px;
    padding: 18px 22px;
    transition: background 0.2s ease;
}

details.faq[open] {
    background: rgba(255, 255, 255, 0.88);
}

details.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--ink);
}

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

details.faq summary::after {
    content: "+";
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--rose);
    transition: transform 0.2s ease;
}

details.faq[open] summary::after {
    content: "–";
}

details.faq p {
    margin-top: 12px;
    color: var(--ink-soft);
    line-height: 1.6;
}

details.faq a {
    color: var(--rose-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Contact block */
.help-contact {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: clamp(60px, 8vw, 110px);
    text-align: center;
}

.help-contact-card {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
    color: #fff;
    border-radius: 22px;
    padding: clamp(34px, 5vw, 56px);
    box-shadow: 0 18px 40px rgba(200, 30, 130, 0.22);
}

.help-contact-card .eyebrow {
    color: #ffe7f4;
    margin-bottom: 14px;
}

.help-contact-card h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: 12px;
}

.help-contact-card h2 .script {
    color: #ffe7f4;
}

.help-contact-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 24px;
}

.help-contact-card .pill-dark {
    background: var(--ink);
}

/* Footer */
footer {
    border-top: 1px solid rgba(20, 10, 14, 0.08);
    padding: 32px clamp(20px, 5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--ink-soft);
    font-weight: 600;
}

footer a:hover {
    color: var(--rose-deep);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

/* Back link variant */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--rose-deep);
}

/* RTL fixes for Arabic */
html[dir="rtl"] details.faq summary {
    flex-direction: row-reverse;
}

html[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 760px) {
    .nav .hide-mobile {
        display: none;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 12px 18px;
    }

    .help-hero {
        padding: 32px 0 24px;
    }

    .help-hero h1 {
        font-size: clamp(2.1rem, 9vw, 2.8rem);
    }

    .help-hero h1 .script {
        font-size: clamp(2.5rem, 11vw, 3.4rem);
    }

    .help-contact {
        padding-bottom: 64px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
