/*
 * RankGenius public-site styling (landing + use-case pages).
 * Layered on top of the Inspinia/Bootstrap 3 theme. All rules are scoped with an
 * `rg-` prefix so they don't affect the app (dashboard/explore/admin) chrome.
 * Palette borrows the theme's accents: green #1ab394, blue #1c84c6, teal #23c6c8,
 * amber #f8ac59, red #ED5565.
 */

/* ---- Hero ---------------------------------------------------------------- */
.rg-hero {
    background: linear-gradient(135deg, #1ab394 0%, #1c84c6 100%);
    color: #fff;
    border-radius: 8px;
    padding: 64px 24px 72px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(28, 132, 198, 0.25);
    position: relative;
    overflow: hidden;
}
.rg-hero:after { /* subtle diagonal sheen */
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 420px; height: 420px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(35deg);
    border-radius: 60px;
}
.rg-hero h1 {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.rg-hero .lead { color: rgba(255,255,255,0.95); font-size: 19px; }
.rg-hero .btn-primary {
    background: #fff; color: #1c84c6; border-color: #fff; font-weight: 600;
}
.rg-hero .btn-primary:hover { background: #f1f7fb; color: #16709f; }
.rg-hero .btn-default {
    background: transparent; color: #fff; border-color: rgba(255,255,255,0.7);
}
.rg-hero .btn-default:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ---- Feature row --------------------------------------------------------- */
.rg-feature { text-align: center; padding: 10px 12px; }
.rg-feature-icon {
    width: 66px; height: 66px; line-height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 27px; color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.rg-feature h3 { margin-top: 4px; font-weight: 600; }

/* ---- Section headings ---------------------------------------------------- */
.rg-section-title { text-align: center; margin: 8px 0 6px; }
.rg-section-title h2 { font-weight: 700; margin-bottom: 10px; }
.rg-section-title:after {
    content: ""; display: block; width: 60px; height: 4px;
    margin: 14px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, #1ab394, #1c84c6);
}
.rg-group-label {
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
    font-weight: 700; color: #9aa4b2; margin: 26px 0 6px;
}

/* ---- Use-case cards ------------------------------------------------------ */
.rg-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid var(--rg-accent, #1ab394);
    box-shadow: 0 3px 12px rgba(24, 40, 72, 0.08);
    padding: 22px 22px 20px;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(24, 40, 72, 0.16);
}
.rg-card-icon {
    width: 48px; height: 48px; line-height: 48px; text-align: center;
    border-radius: 12px; font-size: 22px; margin-bottom: 12px;
    color: var(--rg-accent, #1ab394);
    background: var(--rg-accent-soft, rgba(26,179,148,0.12));
}
.rg-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.rg-card h3 a { color: #2b3a4b; }
.rg-card h3 a:hover { color: var(--rg-accent, #1ab394); text-decoration: none; }
.rg-card .rg-tagline { color: #6b7583; margin-bottom: 12px; }
.rg-card .rg-tools { font-size: 12px; color: #9aa4b2; margin-bottom: 14px; }
.rg-card .rg-more {
    font-weight: 600; font-size: 13px; color: var(--rg-accent, #1ab394);
}
.rg-card--featured {
    box-shadow: 0 6px 22px rgba(237, 85, 101, 0.18);
}
.rg-ribbon {
    position: absolute; top: 14px; right: -2px;
    background: var(--rg-accent, #ED5565); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
    padding: 3px 10px; border-radius: 3px 0 0 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---- Use-case detail page ------------------------------------------------ */
.rg-detail-head {
    border-radius: 8px; color: #fff; padding: 34px 28px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--rg-accent, #1ab394), #2b3a4b);
    box-shadow: 0 10px 26px rgba(24,40,72,0.16);
}
.rg-detail-head h1 { margin: 0 0 8px; font-weight: 700; }
.rg-detail-head .lead { color: rgba(255,255,255,0.95); margin-bottom: 0; }
.rg-detail-head .rg-tools { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 10px; }
.rg-detail-head .rg-head-icon { font-size: 34px; opacity: 0.9; margin-bottom: 8px; }

.rg-block { background:#fff; border-radius:8px; padding:22px 24px; margin-bottom:20px;
    box-shadow: 0 2px 10px rgba(24,40,72,0.06); }
.rg-block > h2 { margin-top: 0; font-size: 20px; font-weight: 600; }
.rg-block-title { display:flex; align-items:center; }
.rg-block-title i { color: var(--rg-accent, #1ab394); margin-right: 10px; font-size: 18px; }
.rg-example { border-left: 4px solid var(--rg-accent, #1ab394); }
.rg-takeaway {
    background: linear-gradient(135deg, rgba(26,179,148,0.10), rgba(28,132,198,0.10));
    border: 1px solid rgba(28,132,198,0.18);
}
.rg-takeaway strong:first-child { color: #16709f; }

/* Colorize the delivery heat-map legend a touch */
.rg-example pre { background:#0f1b2d; color:#e6edf5; border:none; border-radius:6px; padding:16px; }

/* ---- CTA band ------------------------------------------------------------ */
.rg-cta {
    background: linear-gradient(135deg, #2b3a4b 0%, #1c84c6 100%);
    color:#fff; border-radius: 8px; padding: 36px 24px; text-align:center;
}
.rg-cta h2 { margin-top: 0; font-weight: 700; }
.rg-cta .text-muted { color: rgba(255,255,255,0.85) !important; }
.rg-cta .btn-primary { background:#fff; color:#1c84c6; border-color:#fff; font-weight:600; }
.rg-cta .btn-primary:hover { background:#eef5fb; }
.rg-cta .btn-default { background:transparent; color:#fff; border-color:rgba(255,255,255,0.7); }

@media (max-width: 767px) {
    .rg-hero { padding: 40px 18px 46px; }
    .rg-hero h1 { font-size: 30px; }
}

/* ---- Documentation ------------------------------------------------------- */
.rg-docs-nav { padding-right: 10px; }
.rg-docs-nav h4 {
    text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px;
    font-weight: 700; color: #1c84c6; margin: 18px 0 6px;
}
.rg-docs-nav ul { list-style: none; padding-left: 0; margin-bottom: 6px; }
.rg-docs-nav li { margin: 2px 0; }
.rg-docs-nav a { color: #5b6673; font-size: 13px; }
.rg-docs-nav a:hover { color: #1ab394; }
.rg-docs-nav .rg-docs-sub a { padding-left: 12px; font-size: 12px; color: #8a94a2; }
@media (min-width: 992px) { .rg-docs-nav { position: sticky; top: 20px; } }

.rg-docs pre.code, .rg-docs pre {
    background: #0f1b2d; color: #e6edf5; border: none; border-radius: 6px;
    padding: 14px 16px; font-size: 12.5px; line-height: 1.55; overflow-x: auto;
}
.rg-docs pre.code .tok { color: #7ee0c0; }
.rg-docs h2 { font-weight: 700; margin-top: 6px; padding-top: 6px; }
.rg-docs h3 { font-weight: 600; }
.rg-docs .rg-tool {
    border: 1px solid #e6e9ef; border-left: 4px solid var(--rg-accent, #1ab394);
    border-radius: 6px; padding: 18px 20px; margin-bottom: 22px; background: #fff;
}
.rg-docs .rg-tool h3 { margin-top: 0; }
.rg-docs .rg-tool-id {
    display: inline-block;
    font-size: 12px; color: #fff; background: var(--rg-accent, #1ab394);
    padding: 2px 8px; border-radius: 3px; font-family: monospace; margin-left: 8px;
    vertical-align: middle;
}
.rg-docs .table code, .rg-docs p code, .rg-docs td code {
    background: #eef1f6; color: #c7254e; padding: 1px 5px; border-radius: 3px;
}
.rg-docs .rg-req { color: #ED5565; font-weight: 600; }
.rg-docs .rg-opt { color: #9aa4b2; }
.rg-docs .rg-key {
    background: rgba(26,179,148,0.10); border: 1px dashed rgba(26,179,148,0.5);
    border-radius: 4px; padding: 8px 12px; font-family: monospace; font-size: 12px;
    word-break: break-all;
}

/* ---- Auth pages (login / signup / reset) --------------------------------- */
.rg-auth { max-width: 430px; margin: 44px auto; }
.rg-auth-card {
    background: #fff; border: 1px solid #e6e9ef; border-radius: 10px;
    box-shadow: 0 14px 34px rgba(28,132,198,0.12); overflow: hidden;
}
.rg-auth-head {
    background: linear-gradient(135deg, #1ab394 0%, #1c84c6 100%);
    color: #fff; padding: 28px 28px 26px; text-align: center; position: relative; overflow: hidden;
}
.rg-auth-head:after { /* subtle sheen, matches .rg-hero */
    content: ""; position: absolute; top: -60%; right: -20%;
    width: 260px; height: 260px; background: rgba(255,255,255,0.08);
    transform: rotate(35deg); border-radius: 50px;
}
.rg-auth-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.16); margin-bottom: 12px; position: relative;
}
.rg-auth-head h1 { font-size: 22px; font-weight: 700; margin: 4px 0 3px; text-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.rg-auth-head p { color: rgba(255,255,255,0.92); margin: 0; font-size: 14px; position: relative; }
.rg-auth-body { padding: 26px 28px 20px; }
.rg-auth-body .form-group { margin-bottom: 16px; }
.rg-auth-body label { font-weight: 600; color: #4a5765; font-size: 13px; }
.rg-auth-body .form-control { height: 42px; }
.rg-auth-body .btn-block { font-weight: 600; margin-top: 4px; }
.rg-auth-foot { text-align: center; padding: 4px 28px 24px; color: #8a97a7; font-size: 14px; line-height: 1.9; }
.rg-auth-foot a { color: #1ab394; font-weight: 600; }
.rg-auth-foot a:hover { color: #16997f; }

/* ---- Pricing ------------------------------------------------------------- */
.rg-price-card {
    position: relative; text-align: center; background: #fff;
    border: 1px solid #e6e9ef; border-radius: 10px; padding: 26px 22px 22px;
    margin-bottom: 26px; height: calc(100% - 26px);
    transition: box-shadow .15s ease, transform .15s ease;
}
.rg-price-card:hover { box-shadow: 0 10px 26px rgba(28,132,198,0.12); transform: translateY(-2px); }
.rg-price-card.rg-price-featured { border: 2px solid var(--rg-accent, #1ab394); }
.rg-price-amount { font-size: 34px; font-weight: 800; color: #2b3a4b; letter-spacing: -0.02em; line-height: 1.1; }
.rg-price-credits { color: var(--rg-accent, #1ab394); font-weight: 700; font-size: 16px; margin-top: 4px; }
.rg-price-sub { color: #8a97a7; font-size: 13px; margin: 4px 0 18px; }
.rg-price-note { color: #8a97a7; font-size: 13px; text-align: center; margin-top: 6px; }
