/* ============================================================
   E2 — AI Anchor Text Suggester (authed, token-priced)
   Shared tokens, buttons, FAQ, CTA, chips from redirect-checker.css
   (loaded first) + landing styles. Angular clip-path only — NEVER
   border-radius.
   ============================================================ */

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

.ai-token-badge {
    display: inline-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 (two stacked fields + full-width button) -------------------- */

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

.as-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

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

.as-input {
    width: 100%;
    padding: 14px 16px;
    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;
}

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

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

.as-form .btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.as-auth-note {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
}

.as-auth-note a { color: var(--neon-cyan); text-decoration: none; }
.as-auth-note a:hover { text-decoration: underline; }

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

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

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

.as-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);
}

/* ---- Distribution note ------------------------------------------------ */

.as-distribution {
    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);
}

.as-dist-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;
}

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

/* ---- Anchors table ---------------------------------------------------- */

.as-table-scroll { overflow-x: auto; }

.as-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.as-table thead th {
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    background: rgba(13, 13, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    white-space: nowrap;
}

.as-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.as-table tbody tr:hover { background: rgba(0, 245, 212, 0.03); }

.as-table td {
    padding: 9px 12px;
    vertical-align: top;
    line-height: 1.4;
}

.col-anchor { min-width: 200px; }
.col-cat    { width: 130px; white-space: nowrap; }
.col-risk   { width: 110px; white-space: nowrap; }

.as-anchor-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-word;
}

.as-anchor-why {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.as-cat-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary, #b8c0c8);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    clip-path: var(--clip-badge);
}

.as-risk-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 9px;
    clip-path: var(--clip-badge);
}

.as-risk-low    { background: rgba(0, 245, 212, 0.13); color: #5af0cb; }
.as-risk-medium { background: rgba(255, 184, 0, 0.14); color: #ffd365; }
.as-risk-high   { background: rgba(255, 87, 87, 0.14); color: #ff9b9b; }

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

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

@media (max-width: 480px) {
    .as-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; }

/* ---- Copy toolbar + per-row copy --------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.as-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.btn-ghost {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 14px;
    background: rgba(0, 245, 212, 0.06);
    border: 1px solid rgba(0, 245, 212, 0.3);
    clip-path: var(--clip-badge);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.btn-ghost:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 245, 212, 0.12);
}

.as-copy-status {
    font-size: 13px;
    color: var(--neon-cyan);
}

.col-copy { width: 1%; text-align: right; white-space: nowrap; }

.as-row-copy {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #b8c0c8);
    padding: 4px 10px;
    background: transparent;
    border: 1px solid rgba(0, 245, 212, 0.25);
    clip-path: var(--clip-badge);
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.as-row-copy:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}
