/* ============================================================
   E4 — AI SEO Content Gap Finder (authed, token-priced)
   Shared tokens, buttons, FAQ, CTA from redirect-checker.css
   (loaded first) + landing styles. Angular clip-path only —
   NEVER border-radius.
   ============================================================ */

/* ---- Token badge under the hero --------------------------------------- */

.ai-token-badge {
    display: block;
    margin: 0;
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.5;
    color: #7fe8d4;
    background: rgba(0, 245, 212, 0.07);
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-left-width: 3px;
    clip-path: var(--clip-badge);
}

/* ---- Form (your URL + competitor textarea + full-width button) -------- */

.cg-form-wrap { margin: 36px 0 16px; }

.cg-form { display: flex; flex-direction: column; gap: 16px; }

.cg-field { display: flex; flex-direction: column; }

.cg-form .field-label { display: block; margin-bottom: 6px; }

.cg-hint-inline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
}

.cg-input {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--font-mono);
    font-size: 15px;
    background: rgba(13, 13, 20, 0.85);
    border: 1px solid rgba(0, 245, 212, 0.3);
    clip-path: var(--clip-badge);
    color: var(--text-primary);
    transition: border-color .2s, box-shadow .2s;
}

.cg-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

.cg-textarea { resize: vertical; min-height: 76px; line-height: 1.5; }

@media (max-width: 720px) {
    .cg-input { font-size: 16px; }  /* iOS no-zoom */
}

.cg-form .btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cg-auth-note {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
}
.cg-auth-note a { color: var(--neon-cyan); text-decoration: none; }
.cg-auth-note a:hover { text-decoration: underline; }

/* ---- Results header --------------------------------------------------- */

.cg-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 32px 0 16px;
}

.cg-target {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cg-spend {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #ffd365;
    background: rgba(255, 184, 0, 0.10);
    padding: 3px 10px;
    clip-path: var(--clip-badge);
}

/* ---- Summary ---------------------------------------------------------- */

.cg-summary {
    padding: 14px 16px;
    margin-bottom: 20px;
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-left-width: 3px;
    clip-path: var(--clip-card);
}

.cg-summary-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.cg-summary-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #b8c0c8);
}

/* ---- Gap list (shared by sample + live output) ------------------------ */

.cg-gap-list { list-style: none; margin: 0; padding: 0; }

.cg-gap {
    padding: 16px 18px;
    margin-bottom: 12px;
    background: rgba(13, 13, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
    clip-path: var(--clip-card);
}

.cg-gap-topic {
    margin: 0 0 5px;
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.cg-gap-detail {
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #b8c0c8);
}

.cg-gap-suggestion {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-primary);
}

.cg-gap-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #041014;
    background: var(--neon-cyan);
    padding: 2px 8px;
    margin-right: 6px;
    clip-path: var(--clip-badge);
}

.cg-gap-found {
    margin: 8px 0 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    word-break: break-word;
}

/* ---- Actions + nudge -------------------------------------------------- */

.cg-actions { margin-top: 20px; }

@media (max-width: 480px) {
    .cg-actions .btn-secondary { width: 100%; text-align: center; }
    .product-cta a.btn-primary,
    .product-cta a.btn-secondary {
        display: block; width: 100%; text-align: center; margin: 0 0 10px;
    }
}

.results-nudge {
    margin: 28px 0 0;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #b8c0c8);
    background: rgba(0, 245, 212, 0.05);
    border-left: 3px solid var(--neon-cyan);
    clip-path: var(--clip-badge);
}
.results-nudge a { color: var(--neon-cyan); font-weight: 600; text-decoration: none; }
.results-nudge a:hover { text-decoration: underline; }
