/* ============================================================
   THERP PRODUCT PAGE — PAGE-SPECIFIC STYLES
   Loaded after styles.css (inherits all shared variables & base)
   ============================================================ */

/* ── Active nav link on this page ──────────────────────── */
.nav-link-active {
    color: var(--primary) !important;
    font-weight: 600;
}
.header:not(.scrolled) .nav-link-active {
    color: var(--primary-light) !important;
}

/* ── Larger button variants ─────────────────────────────── */
.btn-lg  { padding: 16px 34px; font-size: 1.05rem; }
.btn-xl  { padding: 18px 44px; font-size: 1.15rem; }

/* ============================================================
   HERO
   ============================================================ */
.therp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.therp-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #06102a 0%, #0d1b3e 60%, #101e45 100%);
}
/* reuse blob + grid keyframes from styles.css */

.therp-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ── Hero text ──────────────────────────────────────────── */
.therp-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.therp-brand-chip {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.75);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.therp-new-chip {
    background: var(--grad);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.therp-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}
.therp-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: rgba(255,255,255,.58);
    margin-bottom: 20px;
}
.therp-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.68);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 460px;
}
.therp-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.therp-hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.h-chip {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .82rem;
}

/* ── Chat card ──────────────────────────────────────────── */
.therp-hero-visual { position: relative; }

.chat-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,.4);
    overflow: hidden;
    max-width: 420px;
    margin-left: auto;
}
.chat-card-header {
    background: var(--navy);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.chat-avatar {
    width: 38px; height: 38px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
}
.chat-online {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 10px; height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid var(--navy);
}
.chat-meta strong { display: block; color: var(--white); font-size: .9rem; }
.chat-meta span   { color: rgba(255,255,255,.5); font-size: .75rem; }

.chat-body {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    overflow: hidden;
    background: #fafafa;
}

.chat-msg { display: flex; }
.msg-user { justify-content: flex-end; }
.msg-ai   { justify-content: flex-start; }

.msg-ai-inner { display: flex; flex-direction: column; gap: 8px; max-width: 88%; }

.bubble {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: .875rem;
    line-height: 1.55;
}
.bubble-user {
    background: var(--grad);
    color: var(--white);
    border-bottom-right-radius: 5px;
    max-width: 78%;
}
.bubble-ai {
    background: var(--white);
    color: var(--navy);
    border-bottom-left-radius: 5px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.bubble-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(74,222,128,.1);
    border-color: rgba(74,222,128,.3);
    color: #166534;
}
.confirm-icon {
    background: #4ade80;
    color: white;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* product chips inside chat */
.product-chips { display: flex; flex-direction: column; gap: 6px; }
.p-chip {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}
.p-emoji { font-size: 1.1rem; }
.p-info  { display: flex; flex-direction: column; gap: 1px; }
.p-name  { font-size: .82rem; font-weight: 600; color: var(--navy); }
.p-meta  { font-size: .74rem; color: var(--gray-400); }

/* typing animation */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
}
.typing-dots span {
    width: 6px; height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingPop 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingPop {
    0%,60%,100% { transform: translateY(0);   opacity: .45; }
    30%          { transform: translateY(-5px); opacity: 1; }
}

/* chat input bar */
.chat-input-bar {
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
}
.chat-input-bar input {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .85rem;
    outline: none;
    color: var(--gray-400);
    background: var(--gray-50);
    font-family: inherit;
    cursor: default;
}
.chat-send {
    width: 34px; height: 34px;
    background: var(--grad);
    border: none;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--t);
}
.chat-send:hover { transform: scale(1.1); }

/* floating badges next to chat card */
.hero-float {
    position: absolute;
    background: var(--white);
    padding: 10px 16px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}
.f1 {
    top: -16px; right: 24px;
    animation: floatBadge 3s ease-in-out infinite;
}
.f2 {
    bottom: 50px; left: -28px;
    animation: floatBadge 3s ease-in-out infinite;
    animation-delay: -1.5s;
}
@keyframes floatBadge {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ============================================================
   QUICK STRIP
   ============================================================ */
.therp-strip {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}
.therp-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.strip-item {
    padding: 0 40px;
    font-size: .92rem;
    color: var(--gray-600);
    text-align: center;
}
.strip-item strong { color: var(--navy); font-weight: 700; }
.strip-sep {
    width: 1px; height: 28px;
    background: var(--gray-200);
}

/* ============================================================
   FEATURES
   ============================================================ */
.therp-features { background: var(--white); }

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}
.feat-card {
    background: var(--gray-50);
    border-radius: var(--r-lg);
    padding: 36px 30px;
    border: 1px solid var(--gray-200);
    transition: var(--t);
    position: relative;
    overflow: hidden;
}
.feat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: transparent;
}
.feat-card:hover::after { transform: scaleX(1); }

.feat-icon { width: 52px; height: 52px; margin-bottom: 18px; }
.feat-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.feat-card p  { font-size: .9rem; color: var(--gray-600); line-height: 1.68; margin-bottom: 16px; }

.feat-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feat-examples li {
    font-size: .82rem;
    color: var(--gray-600);
    padding: 5px 10px;
    background: rgba(255,85,0,.05);
    border-left: 2px solid var(--primary);
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* ── Feature 7: Advanced full-width card ────────────────── */
.feat-advanced {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    border-color: transparent;
    padding: 44px 40px;
}
.feat-advanced::after { transform: scaleX(1); }
.feat-advanced:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
}

.feat-adv-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--grad);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.feat-adv-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
}
.feat-adv-text h3 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.feat-adv-text p  { color: rgba(255,255,255,.7); line-height: 1.72; margin-bottom: 28px; font-size: .97rem; }

.feat-icon-light {
    background: rgba(255,255,255,.1);
    border-radius: var(--r-md);
    padding: 10px;
    width: 60px; height: 60px;
    margin-bottom: 18px;
}

.feat-adv-example {}
.adv-quote {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-left: 3px solid var(--primary-light);
    padding: 14px 18px;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: rgba(255,255,255,.85);
    font-style: italic;
    font-size: .92rem;
    line-height: 1.55;
    margin-bottom: 20px;
}
.adv-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.af-step {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
}
.af-step-final {
    background: rgba(74,222,128,.15);
    color: #86efac;
    border: 1px solid rgba(74,222,128,.25);
}
.af-arrow { color: rgba(255,255,255,.3); font-size: 1rem; }

/* agent status card (right side of feat-advanced) */
.agent-status-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-md);
    padding: 22px;
    backdrop-filter: blur(10px);
}
.asc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.asc-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: glow 2s infinite;
}
.asc-rule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.asc-rule:last-of-type { border-bottom: none; }
.asc-label { color: rgba(255,255,255,.5); font-size: .8rem; }
.asc-val   { color: rgba(255,255,255,.88); font-size: .85rem; font-weight: 600; }
.asc-price {
    color: #86efac;
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}
.asc-down  { opacity: .7; }
.asc-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .75rem;
    color: rgba(255,255,255,.35);
    text-align: center;
}

/* ============================================================
   AGENT JOURNEY
   ============================================================ */
.journey { background: var(--gray-50); }

.journey-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 16px 0 8px;
}

.j-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    max-width: 140px;
    padding: 0 8px;
}
.j-icon {
    width: 56px; height: 56px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 14px;
    transition: var(--t);
    box-shadow: var(--shadow-sm);
}
.j-step:hover .j-icon {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,85,0,.1);
    transform: translateY(-4px);
}
.j-icon-final {
    background: var(--grad);
    border-color: transparent;
}
.j-step-final h4 { color: var(--primary); }

.j-step h4 {
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--navy);
}
.j-step p {
    font-size: .78rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.j-arrow {
    color: var(--gray-400);
    font-size: 1.4rem;
    margin-top: 17px;
    padding: 0 4px;
    flex-shrink: 0;
    font-weight: 300;
}

/* ============================================================
   WHY THERP
   ============================================================ */
.why-therp { background: var(--white); }
.why-therp-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.why-therp-text .tag { margin-bottom: 14px; }
.why-therp-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.why-therp-lead { font-size: 1.05rem; color: var(--gray-600); line-height: 1.72; margin-bottom: 36px; }

.access-list { display: flex; flex-direction: column; gap: 22px; }
.access-item { display: flex; align-items: flex-start; gap: 16px; }
.access-icon {
    width: 40px; height: 40px;
    background: rgba(255,85,0,.07);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}
.access-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.access-item p  { font-size: .87rem; color: var(--gray-600); line-height: 1.6; }

/* vs cards */
.why-therp-vs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 100px;
}
.vs-card {
    border-radius: var(--r-md);
    padding: 28px;
    border: 1px solid var(--gray-200);
}
.vs-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.vs-card ul { display: flex; flex-direction: column; gap: 10px; }
.vs-card li { font-size: .88rem; line-height: 1.5; }

.vs-old { background: var(--gray-50); }
.vs-old h4 { color: var(--gray-600); }
.vs-bad { color: var(--gray-600); }

.vs-new {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.vs-new h4 { color: var(--white); }
.vs-good { color: rgba(255,255,255,.82); }
.vs-good::first-letter { color: #4ade80; }

.vs-divider {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .12em;
    color: var(--gray-400);
}

/* ============================================================
   DEMO CTA
   ============================================================ */
.demo-cta {
    position: relative;
    background: linear-gradient(135deg, #FF4500 0%, #FF7300 50%, #FF5500 100%);
    padding: 110px 0;
    overflow: hidden;
    text-align: center;
}
.demo-cta-bg {
    position: absolute;
    width: 700px; height: 700px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    top: -350px; right: -200px;
    filter: blur(60px);
    pointer-events: none;
}
.demo-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.demo-cta-inner h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.demo-cta-inner p {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}
.demo-note {
    margin-top: 16px;
    font-size: .82rem;
    color: rgba(255,255,255,.6);
}
.demo-or {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}
.demo-contact-link {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--t);
}
.demo-contact-link:hover { opacity: .8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .therp-hero-inner  { grid-template-columns: 1fr; gap: 48px; }
    .therp-hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
    .therp-hero-text   { text-align: center; }
    .therp-hero-actions { justify-content: center; }
    .therp-hero-chips   { justify-content: center; }
    .therp-desc { max-width: 100%; }

    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-adv-inner { grid-template-columns: 1fr; }
    .agent-status-card { max-width: 400px; }

    .why-therp-inner { grid-template-columns: 1fr; gap: 48px; }
    .why-therp-vs { position: static; }
}

@media (max-width: 768px) {
    .therp-features .section { padding: 72px 0; }

    .feat-grid { grid-template-columns: 1fr; }
    .feat-advanced { padding: 32px 24px; }

    .journey-flow {
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
    }
    .j-step { flex-direction: row; text-align: left; min-width: unset; max-width: 100%; width: 100%; gap: 16px; }
    .j-icon { margin-bottom: 0; flex-shrink: 0; }
    .j-arrow { transform: rotate(90deg); margin: 4px auto; }

    .strip-item { padding: 0 20px; }

    .therp-strip-inner { gap: 16px; }

    .f1 { top: -10px; right: 0; }
    .f2 { bottom: 10px; left: -10px; font-size: .74rem; padding: 8px 12px; }
}

@media (max-width: 480px) {
    .therp-hero { padding: 100px 0 60px; }
    .chat-card { max-width: 100%; }
    .feat-card { padding: 26px 22px; }
    .adv-flow { gap: 6px; }
    .af-arrow { font-size: .8rem; }
}
