/* ============================================================
   E3 — AI Outreach Email Generator (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 (symmetric two-column rows + full-width button) ------------- */

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

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

.oe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.oe-field {
    display: flex;
    flex-direction: column;
    min-width: 0;  /* let grid children shrink instead of overflowing */
}

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

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

.oe-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;
}

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

.oe-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    /* angular chevron drawn with a background gradient — no border-radius */
    background-image:
        linear-gradient(45deg, transparent 50%, var(--neon-cyan) 50%),
        linear-gradient(135deg, var(--neon-cyan) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.oe-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .oe-input { font-size: 16px; }  /* iOS no-zoom */
    .oe-row { grid-template-columns: 1fr; }
}

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

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

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

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

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

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

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

/* ---- Email card ------------------------------------------------------- */

.oe-email-card {
    padding: 18px 18px 20px;
    background: rgba(13, 13, 20, 0.6);
    border: 1px solid rgba(0, 245, 212, 0.22);
    border-left-width: 3px;
    clip-path: var(--clip-card);
    margin-bottom: 18px;
}

.oe-subject-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.oe-subject-label,
.oe-body-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;
}

.oe-body-label { margin-top: 16px; }

.oe-subject-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.oe-subject-alt {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.oe-body-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary, #b8c0c8);
    white-space: pre-wrap;       /* preserve the email's paragraph breaks */
    word-break: break-word;
}

/* ---- Follow-up (collapsible) ------------------------------------------ */

.oe-followup {
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(0, 245, 212, 0.4);
    clip-path: var(--clip-card);
    background: rgba(13, 13, 20, 0.4);
}

.oe-followup > summary {
    padding: 12px 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
}

.oe-followup > summary::-webkit-details-marker { display: none; }
.oe-followup > summary::before { content: "▸ "; color: var(--neon-cyan); }
.oe-followup[open] > summary::before { content: "▾ "; }

.oe-followup .oe-subject-row { padding: 0 16px; }
.oe-followup .oe-body-text { padding: 0 16px 14px; }

/* ---- Tips block ------------------------------------------------------- */

.oe-tips {
    padding: 14px 16px;
    margin-bottom: 18px;
    background: rgba(255, 184, 0, 0.07);
    border: 1px solid rgba(255, 184, 0, 0.25);
    border-left-width: 3px;
    clip-path: var(--clip-card);
}

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

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

/* ---- Copy buttons ----------------------------------------------------- */

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

.oe-copy-mini:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

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

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

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