/* funnel.css — PR-3c scoped styles for the trial funnel (/signup/*).
   RTL, mobile-first, professional. Complements marketing.css (mk-* classes).
   No external resources. */

.fn-wide   { max-width: 760px; }
.fn-narrow { max-width: 520px; }

.fn-head { text-align: center; margin-bottom: 1.5rem; }
.fn-head .mk-h2 { margin: .25rem 0 .5rem; }

/* ── forms ─────────────────────────────────────────────────────────── */
.fn-form { display: flex; flex-direction: column; gap: 1.1rem; }

.fn-fieldset { border: 0; padding: 0; margin: 0; }
.fn-fieldset legend { font-weight: 700; margin-bottom: .6rem; font-size: 1.05rem; }

.fn-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) { .fn-grid { grid-template-columns: 1fr; } }

.fn-field { display: flex; flex-direction: column; gap: .35rem; }
.fn-field > span { font-weight: 600; font-size: .92rem; }
.fn-field input {
    width: 100%; box-sizing: border-box;
    padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: 12px;
    font: inherit; background: #fff; color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fn-field input:focus-visible {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

.fn-optional summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.fn-optional[open] { padding-bottom: .4rem; }

.fn-submit { align-self: stretch; text-align: center; padding-block: .85rem; font-size: 1.05rem; }

.fn-trust { color: #64748b; font-size: .88rem; text-align: center; margin: 0; }
.fn-note  { color: #475569; font-size: .9rem;  text-align: center; margin: .25rem 0 0; }
/* inline field hint (start-aligned, e.g. the WhatsApp phone note) */
.fn-hint  { display: block; color: #64748b; font-size: .82rem; text-align: start; margin: .35rem 0 0; }

/* ── plan picker ───────────────────────────────────────────────────── */
.fn-plans { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .fn-plans { grid-template-columns: 1fr; } }

.fn-plan { position: relative; display: block; cursor: pointer; }
.fn-plan input { position: absolute; inset-inline-start: .8rem; top: .8rem; }
.fn-plan-body {
    display: block; padding: 1rem 1rem 1rem 2.4rem;
    border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; height: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fn-plan input:checked + .fn-plan-body { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.fn-plan input:focus-visible + .fn-plan-body { box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }
.fn-plan--pro .fn-plan-body { border-color: #c7d2fe; }

.fn-plan-name  { display: block; font-weight: 800; font-size: 1.05rem; }
.fn-plan-price { display: block; margin: .25rem 0; }
.fn-plan-price strong { font-size: 1.5rem; }
.fn-plan-price span   { color: #64748b; font-size: .82rem; }
.fn-plan-meta { display: block; color: #475569; font-size: .85rem; }
.fn-plan-pos  { display: inline-block; margin-top: .5rem; font-size: .82rem; font-weight: 700;
                color: #166534; background: #dcfce7; border-radius: 999px; padding: .15rem .6rem; }

/* ── OTP ───────────────────────────────────────────────────────────── */
.fn-otp { align-items: stretch; }
.fn-otp-field { align-items: center; }
.fn-otp-input {
    text-align: center; letter-spacing: .5em; font-size: 1.6rem; font-weight: 700;
    max-width: 12rem; padding-inline: .5rem;
}
.fn-resend { margin-top: .25rem; text-align: center; }
.fn-link-btn {
    background: none; border: 0; color: #2563eb; font: inherit; font-weight: 600;
    cursor: pointer; padding: .4rem; text-decoration: underline;
}
.fn-link-btn:disabled { color: #94a3b8; cursor: default; text-decoration: none; }

/* ── alerts ────────────────────────────────────────────────────────── */
.fn-alert { border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.fn-alert--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.fn-alert--info  { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── status ────────────────────────────────────────────────────────── */
.fn-status { text-align: center; }
.fn-status-actions { display: flex; flex-direction: column; gap: .6rem; align-items: center; margin: 1.25rem 0 .5rem; }
.fn-status-actions .mk-btn-primary { min-width: 14rem; text-align: center; }
.fn-wa { font-weight: 700; color: #166534; text-decoration: none; }
.fn-wa:hover { text-decoration: underline; }
.fn-back { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    .fn-field input, .fn-plan-body { transition: none; }
}

/* ── trial-40 automation (GO-IMPLEMENT-TRIAL40-B) ──────────────────── */
.fn-includes { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; }
.fn-includes li { padding-inline-start: 1.4rem; position: relative; color: #0f172a; font-size: .95rem; }
.fn-includes li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: #0E7C66; font-weight: 800; }
.fn-company-code { display: grid; gap: .2rem; justify-items: center; margin: 1rem auto; padding: .9rem 1rem;
                   border: 1px dashed #0E7C66; border-radius: 12px; max-width: 22rem; }
.fn-company-code strong { font-size: 1.5rem; letter-spacing: .08em; }
.fn-company-code small { color: #64748b; font-size: .82rem; }
.fn-inline-form { margin: 0; }
/* ── account-created receipt (#1174 trial finding 4) ───────────────────────
   The page that can carry the one-time password renders without the shared
   layout; these rules give it the funnel's look: a brand bar, one card, each
   value beside its label (stacked on a narrow phone), a full-width login. */
.fn-receipt-page { margin: 0; padding-top: 0; background: var(--surface, #F5F7FA); color: var(--text, #111827);
                   font-family: var(--font-body), Tahoma, sans-serif; }
.fn-receipt-brand { display: flex; align-items: center; justify-content: center; gap: .6rem;
                    padding: .9rem 1rem; background: #fff; border-bottom: 1px solid var(--border, #E5E7EB);
                    font-weight: 800; font-size: 1.15rem; color: var(--brand-primary, #0E7C66); }
.fn-receipt-brand img { width: 44px; height: 44px; object-fit: contain; }
.fn-receipt-section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.fn-receipt { background: #fff; border: 1px solid var(--border, #E5E7EB); border-radius: 16px;
              padding: 1.1rem 1.1rem 1.25rem; box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
              display: flex; flex-direction: column; gap: 1rem; }
.fn-kv { margin: 0; display: flex; flex-direction: column; }
.fn-kv__row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1rem;
              padding: .7rem 0; border-bottom: 1px solid #EEF2F6; flex-wrap: wrap; }
.fn-kv__row:last-child { border-bottom: 0; }
.fn-kv dt { color: var(--text-muted, #6B7280); font-weight: 600; font-size: .92rem; margin: 0; }
.fn-kv dd { margin: 0; font-weight: 700; font-size: 1.02rem; text-align: end; overflow-wrap: anywhere; min-width: 0; }
.fn-kv__mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .02em; }
.fn-kv__row--secret { margin-top: .35rem; padding: .75rem .85rem; border: 1px dashed var(--brand-primary, #0E7C66);
                      border-radius: 12px; background: #F0FBF8; }
.fn-kv__row--secret code { font-family: Consolas, "Courier New", monospace; font-size: 1.15rem; font-weight: 700;
                           letter-spacing: .06em; user-select: all; }
.fn-receipt__warn { margin: 0; color: #92400E; background: #FEF3C7; border: 1px solid #FDE68A;
                    border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; line-height: 1.8; }
.fn-receipt__reveal { margin: 0; display: flex; }
.fn-receipt__reveal .fn-submit, .fn-receipt__login { width: 100%; justify-content: center; box-sizing: border-box; }
.fn-receipt__trial { color: var(--text-muted, #6B7280); line-height: 1.9; text-align: center; margin: 1.25rem 0 .75rem; }
@media (max-width: 420px) {
    .fn-kv__row { flex-direction: column; align-items: stretch; gap: .2rem; }
    .fn-kv dd { text-align: start; }
}
