/* backend/trupe-modules.css - "One app, five worlds" module cards with real app screens */

.tp-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.tp-module-card {
    --mod: #f7841e;
    --mod-soft: rgba(247, 132, 30, 0.10);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 100%, var(--mod-soft) 0%, transparent 60%),
        var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tp-module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--mod);
}
.tp-module-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--mod);
}
.tp-mod-pay       { --mod: #f7841e; --mod-soft: rgba(247, 132, 30, 0.14); }
.tp-mod-edtech    { --mod: #1d4ed8; --mod-soft: rgba(29, 78, 216, 0.13); }
.tp-mod-care      { --mod: #15913b; --mod-soft: rgba(21, 145, 59, 0.13); }
.tp-mod-affiliate { --mod: #7c3aed; --mod-soft: rgba(124, 58, 237, 0.13); }
.tp-mod-chat      { --mod: #0ea5e9; --mod-soft: rgba(14, 165, 233, 0.14); grid-column: 1 / -1; min-height: 220px; }

.tp-module-text {
    position: relative;
    z-index: 2;
    padding: 30px 28px 30px 34px;
    max-width: 56%;
}
.tp-module-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--mod);
    box-shadow: 0 8px 18px -8px var(--mod);
}
.tp-soon-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 800;
    color: #b45309;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.5);
}
.tp-module-text h3 {
    margin: 14px 0 8px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 2.1vw, 26px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}
.tp-module-text p { color: var(--text-secondary); font-size: 14.5px; }

/* Real app screen, shown as the top of a tilted phone peeking from the right */
.tp-module-shot {
    position: absolute;
    right: 26px;
    top: 26px;
    width: 40%;
    max-width: 210px;
    aspect-ratio: 390 / 600;
    padding: 7px 7px 0;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(145deg, #2a3350, #0b1022 50%, #1c2440);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 50px -20px rgba(4, 13, 46, 0.6);
    transform: rotate(4deg) translateY(10px);
    transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
    overflow: hidden;
}
.tp-module-shot img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 22px 22px 0 0;
}
.tp-module-card:hover .tp-module-shot { transform: rotate(0deg) translateY(-4px); }

/* Tru Chat illustration */
.tp-chat-art {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 260px;
}
.tp-bubble {
    max-width: 240px;
    padding: 11px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 22px -12px rgba(4, 13, 46, 0.45);
    animation: tpBubbleIn 0.6s ease both;
}
.tp-bubble-in {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 6px;
}
.tp-bubble-out {
    align-self: flex-end;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9 50%, #1d4ed8);
    color: #fff;
    border-bottom-right-radius: 6px;
    animation-delay: 0.25s;
}
.tp-typing { display: flex; gap: 5px; padding: 14px 16px; animation-delay: 0.5s; }
.tp-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: tpTyping 1.2s ease-in-out infinite;
}
.tp-typing span:nth-child(2) { animation-delay: 0.15s; }
.tp-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tpTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}
@keyframes tpBubbleIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
    .tp-module-grid { grid-template-columns: 1fr; }
    .tp-mod-chat { grid-column: auto; }
}
@media (max-width: 560px) {
    .tp-module-card { min-height: 230px; }
    .tp-module-text { max-width: 60%; padding: 24px 14px 24px 26px; }
    .tp-module-text h3 { font-size: 19px; }
    .tp-module-text p { font-size: 13px; }
    .tp-module-shot { right: 14px; width: 38%; }
    .tp-mod-chat { flex-direction: column; align-items: stretch; }
    .tp-mod-chat .tp-module-text { max-width: 100%; }
    .tp-chat-art { margin: 0 22px 24px 26px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-bubble, .tp-typing span { animation: none; }
}

/* ---------- Our Partners (TruPe's own text badges, not partner logos) ---------- */
.tp-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.tp-partner-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--tp-radius, 20px);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    min-width: 0;
}
.tp-partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247, 132, 30, 0.35);
    box-shadow: var(--shadow-lg);
}
.tp-partner-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 13px; box-shadow: 0 10px 20px -10px rgba(10, 31, 92, 0.55); }
.tp-partner-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--tp-orange-dark, #e2620b);
    margin-bottom: 4px;
}
.tp-partner-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.2;
}
.tp-partner-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.tp-partner-note { margin-top: 18px; text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 1100px) {
    .tp-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .tp-partner-grid { grid-template-columns: 1fr; gap: 12px; }
    .tp-partner-card { flex-direction: row; align-items: flex-start; padding: 16px; gap: 14px; }
    .tp-partner-icon { width: 42px; height: 42px; }
    .tp-partner-card h3 { font-size: 17px; }
}

/* ---------- Legal registrations: grid in the Company section ---------- */
.tp-reg-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 1100px) {
    .tp-reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tp-reg-grid .legal-badge-item { padding: 14px 8px; font-size: 11.5px; line-height: 1.3; }
.tp-reg-icon { width: 36px; height: 36px; border-radius: 10px; transition: transform 0.3s ease; }
.tp-reg-grid .legal-badge-item:hover .tp-reg-icon { transform: scale(1.12); }
@media (max-width: 480px) {
    .tp-reg-grid { gap: 8px; }
    .tp-reg-grid .legal-badge-item { padding: 10px 4px; font-size: 10.5px; }
    .tp-reg-icon { width: 30px; height: 30px; }
}

/* ---------- Legal registrations: compact pills next to the company name in the footer ---------- */
.tp-reg-badges {
    list-style: none;
    margin: 2px 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}
.tp-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    white-space: nowrap;
    max-width: 100%;
}
.tp-reg-badge img { width: 18px; height: 18px; border-radius: 6px; flex: 0 0 auto; }
body footer .tp-reg-badge span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: rgba(241, 245, 255, 0.92) !important;
}

/* ---------- Policy pages (Terms, Privacy, Refund) ---------- */
.app-policies-legal { padding-bottom: 80px; }
.app-policies-legal .legal-content-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--tp-radius, 20px);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.app-policies-legal .legal-content-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 26px 0 8px;
}
.app-policies-legal .legal-content-card p { margin: 0 0 10px; }
.app-policies-legal .legal-content-card ul { margin: 0 0 10px; padding-left: 22px; }
.app-policies-legal .legal-content-card li { margin-bottom: 6px; }
.app-policies-legal .legal-content-card strong { color: var(--text-primary); }
@media (max-width: 560px) {
    .app-policies-legal .legal-content-card { padding: 22px 18px; font-size: 14px; border-radius: 16px; }
    .app-policies-legal .legal-content-card h3 { font-size: 17px; margin-top: 22px; }
    .app-policies-legal .legal-content-card ul { padding-left: 18px; }
}