/* Public pages only: landing page, sign in and register (loaded after auth.css). */

/* ---------- Landing: hero ---------- */
body.landing { background: #FAFCFF; }
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 65% 25%, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse at 65% 25%, #000 25%, transparent 72%);
}
.hero-in { position: relative; }
.hero h1 em {
    background: linear-gradient(120deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.l-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.l-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.hero-points span { transition: color .2s ease; }
.hero-points span:hover { color: var(--navy); }
.mock {
    box-shadow: 0 30px 60px -20px rgba(20, 33, 61, .30), 0 0 0 1px rgba(37, 99, 235, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}
.mock:hover { transform: perspective(1400px) rotateY(-1deg) rotateX(1deg); box-shadow: 0 36px 70px -20px rgba(20, 33, 61, .34); }
.mock-row { transition: border-color .2s ease, background .2s ease; }
.mock-row:hover { border-color: #C7D7F5; background: #FAFCFF; }

/* ---------- Landing: navigation ---------- */
.l-nav { box-shadow: 0 1px 0 rgba(20, 33, 61, .02), 0 8px 24px -18px rgba(20, 33, 61, .25); }
.l-links a { transition: background .2s ease, color .2s ease; }

/* ---------- Landing: cards ---------- */
.feature, .step { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover, .step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C7D7F5; }
.feature .stat-ic { transition: transform .2s ease; }
.feature:hover .stat-ic { transform: scale(1.06); }
.step::before { box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6); }

.callout {
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(59, 130, 246, .35), transparent 70%),
        radial-gradient(500px 220px at 0% 100%, rgba(124, 58, 237, .25), transparent 70%),
        var(--navy);
    box-shadow: var(--shadow-lg);
}
.callout pre { border: 1px solid rgba(147, 197, 253, .12); }

/* ---------- Landing: pricing ---------- */
.plan { border-radius: 18px; }
.plan.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 24px 44px -20px rgba(37, 99, 235, .45);
}
.plan.featured:hover { box-shadow: 0 30px 54px -20px rgba(37, 99, 235, .55); }
.plan-tag { box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .6); }

/* ---------- Landing: docs and FAQ ---------- */
.docs .card { transition: box-shadow .2s ease, border-color .2s ease; }
.docs .card:hover { box-shadow: var(--shadow); border-color: #C7D7F5; }
.faq details { transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #C7D7F5; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--light); color: var(--primary); font-size: 18px; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.l-foot { background: #fff; }

/* ---------- Sign in / register ---------- */
body.auth-page {
    background:
        radial-gradient(900px 480px at 50% -12%, #DBEAFE 0%, transparent 62%),
        radial-gradient(500px 300px at 100% 110%, #EDE9FE 0%, transparent 60%),
        #F7F9FC;
}
.auth-brand { transition: opacity .2s ease; }
.auth-brand:hover { opacity: .85; color: var(--navy); }
.auth-card {
    position: relative; overflow: hidden; padding: 40px 36px;
    border-radius: 22px; border-color: rgba(229, 234, 242, .9);
    box-shadow: 0 30px 60px -24px rgba(20, 33, 61, .28);
}
.auth-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
}
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; }
.auth-sub { font-size: 14.5px; margin-bottom: 26px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .form-group label { font-weight: 600; font-size: 13.5px; color: var(--navy); margin-bottom: 6px; display: inline-block; }
.auth-card .input { padding: 12px 14px; border-radius: 12px; background: #FBFCFE; }
.auth-card .input:focus { background: #fff; }
.auth-card .btn-lg { border-radius: 12px; margin-top: 6px; box-shadow: 0 12px 22px -12px rgba(37, 99, 235, .7); }
.auth-card .alert { border-radius: 12px; }
.auth-row a, .auth-foot a { font-weight: 600; }
.auth-foot { background: rgba(255, 255, 255, .6); border-radius: 12px; padding: 12px 16px; border: 1px solid var(--border); }
