/* Services page - builds on landing.css (header, hero, buttons, final CTA). */

.svc-hero { padding: 3.5rem 0 4rem; }
.svc-hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.svc-h1 { max-width: 880px; font-size: clamp(1.9rem, 6.2cqi, 3.2rem); }
.svc-hero .lp-hero-sub { max-width: 680px; }
.svc-hero .lp-hero-actions { justify-content: center; }
.svc-stats { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.5rem; }
.svc-stats div { display: flex; align-items: baseline; gap: .5rem; color: #c5cae6; font-weight: 600; }
.svc-stats b { font-size: 2rem; font-weight: 800; color: var(--lp-gold-2); line-height: 1; }

/* sticky area chips */
.svc-bar { position: sticky; top: 68px; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--lp-line); }
body.has-app-sidebar .svc-bar { top: var(--navbar-h, 72px); }
.svc-bar-inner { display: flex; gap: .5rem; overflow-x: auto; padding-block: .7rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.svc-bar-inner::-webkit-scrollbar { display: none; }
.svc-chip { flex: 0 0 auto; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--lp-line); background: #fff; color: var(--lp-muted); font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.svc-chip:hover { border-color: #c5cdea; color: var(--lp-text); }
.svc-chip.is-active { background: var(--lp-ink); border-color: var(--lp-ink); color: #fff; }

/* categories */
.svc-body { padding-block: 1rem 3rem; }
.svc-cat { padding-top: 3.2rem; scroll-margin-top: 130px; }
.svc-cat-head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.svc-cat-n { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-2)); box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .6); font-variant-numeric: tabular-nums; }
.svc-cat-head h2 { font-size: clamp(1.35rem, 4cqi, 1.8rem); font-weight: 800; line-height: 1.35; }
.svc-cat-head p { margin-top: .25rem; color: var(--lp-muted); max-width: 640px; }

.svc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.svc-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: var(--lp-radius); background: #fff; border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ic) 45%, #fff); box-shadow: 0 2px 4px rgba(15, 22, 40, .05), 0 24px 46px -18px rgba(15, 22, 40, .22); }
.svc-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: var(--ic); background: color-mix(in srgb, var(--ic) 12%, #fff); margin-bottom: .2rem; }
.svc-card h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
.svc-card > p { color: var(--lp-muted); font-size: .92rem; line-height: 1.75; }
.svc-feats { margin-top: .4rem; gap: .5rem; }
.svc-feats li { font-size: .84rem; line-height: 1.6; color: var(--lp-text); }
.svc-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.svc-go { margin-top: auto; padding-top: .9rem; font-weight: 800; font-size: .9rem; color: var(--lp-brand); text-decoration: none; }
.svc-go::after { content: " →"; }
[dir="rtl"] .svc-go::after { content: " ←"; }
.svc-go:hover { text-decoration: underline; text-underline-offset: 4px; }

/* preview */
.svc-preview { text-align: center; }
.svc-shot { max-width: 980px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #0f1830; border: 1px solid rgba(15, 22, 40, .12); box-shadow: 0 40px 80px -30px rgba(15, 22, 40, .45); direction: ltr; }
.svc-shot-bar { display: flex; align-items: center; gap: 6px; padding: .65rem .9rem; background: #141e3c; }
.svc-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.svc-shot-bar i:nth-child(2) { background: #fbbf24; } .svc-shot-bar i:nth-child(3) { background: #34d399; }
.svc-shot-bar span { margin-inline-start: .8rem; font-size: .72rem; color: #9aa3cc; }
.svc-shot img { width: 100%; height: auto; display: block; }
.svc-shot-note { margin-top: 1rem; color: var(--lp-muted); font-size: .88rem; }
.svc-trial-note { margin: 1.4rem auto 0; max-width: 560px; padding: .8rem 1.2rem; border-radius: 14px; background: rgba(212, 167, 58, .14); color: #7a5a06; font-weight: 700; font-size: .92rem; }

.svc-h1, .svc-cat-head h2, .lp-h1 { text-wrap: balance; }

/* Link under the "lawyer tools" heading to the plans */
.svc-plan-note { display: inline-block; margin-top: .45rem; font-size: .86rem; font-weight: 700; color: var(--gold, #b8860b); text-decoration: none; border-bottom: 1px dashed currentColor; }
.svc-plan-note:hover { opacity: .8; }

/* ---------- AI assistant: featured first area ---------- */
.svc-ai { padding-top: 2.4rem; }
.svc-ai-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: clamp(1.4rem, 4vw, 3rem); background: linear-gradient(150deg, #0f1733 0%, #19124a 55%, #0f1733 100%); color: #fff; box-shadow: 0 40px 90px -40px rgba(15, 22, 40, .7); }
.svc-ai-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 55% at 85% 20%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(35% 45% at 5% 95%, rgba(212, 167, 58, .22), transparent 70%); }
.svc-ai-grid { display: grid; gap: 2.4rem; align-items: center; }
@container lp (min-width: 980px) { .svc-ai-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.svc-ai-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #f1d27a; font-weight: 800; font-size: .82rem; }
.svc-ai-badge i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: svcAiPulse 1.8s ease-in-out infinite; }
.svc-ai-copy h2 { margin-top: 1rem; font-size: clamp(1.6rem, 5cqi, 2.5rem); font-weight: 800; line-height: 1.35; text-wrap: balance; }
.svc-ai-lead { margin-top: .9rem; color: #c5cae6; font-size: 1.04rem; line-height: 1.85; max-width: 640px; }
.svc-ai-tiles { margin-top: 1.8rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.svc-ai-tile { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s, transform .2s; }
.svc-ai-tile:hover { background: rgba(255, 255, 255, .09); border-color: rgba(241, 210, 122, .35); transform: translateY(-2px); }
.svc-ai-tile-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 167, 58, .16); color: #f1d27a; }
.svc-ai-tile b { display: block; font-size: .95rem; line-height: 1.45; }
.svc-ai-tile span { display: block; margin-top: .2rem; color: #aab1d6; font-size: .84rem; line-height: 1.7; }
.svc-ai-stats { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; }
.svc-ai-stats div { display: flex; align-items: baseline; gap: .45rem; color: #c5cae6; font-weight: 600; font-size: .9rem; }
.svc-ai-stats b { font-size: 1.6rem; font-weight: 800; color: #f1d27a; line-height: 1; }
.svc-ai-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* the demo conversation */
.svc-ai-demo { display: flex; justify-content: center; }
.svc-ai-phone { width: 100%; max-width: 390px; border-radius: 26px; background: #f6f7fc; color: #0f1628; border: 7px solid #0b1226; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(124, 58, 237, .25); overflow: hidden; }
.svc-ai-phone-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: #fff; border-bottom: 1px solid #e5e9f5; }
.svc-ai-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.svc-ai-phone-head b { display: block; font-size: .92rem; }
.svc-ai-phone-head small { color: #059669; font-size: .74rem; font-weight: 600; }
.svc-ai-msgs { display: flex; flex-direction: column; gap: .6rem; padding: 1rem .85rem 1.1rem; }
.svc-ai-msg { margin: 0; max-width: 88%; padding: .6rem .8rem; border-radius: 16px; font-size: .84rem; line-height: 1.7; }
.svc-ai-msg.is-me { align-self: flex-end; background: #4f46e5; color: #fff; border-end-end-radius: 5px; }
.svc-ai-msg.is-bot { align-self: flex-start; background: #fff; border: 1px solid #e5e9f5; border-end-start-radius: 5px; display: flex; flex-direction: column; gap: .45rem; }
.svc-ai-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; border: 1px solid #e5e9f5; background: #f8f9fd; font-size: .78rem; }
.svc-ai-item b { font-weight: 700; }
.svc-ai-item em { font-style: normal; font-weight: 700; color: #4f46e5; white-space: nowrap; }
.svc-ai-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.svc-ai-chips i { font-style: normal; padding: .25rem .65rem; border-radius: 999px; border: 1px solid #4f46e5; color: #4f46e5; font-size: .72rem; font-weight: 700; }
.lp-js .svc-ai-card.is-in .svc-ai-msg { animation: svcAiIn .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n) * .7s + .3s); }
@keyframes svcAiIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes svcAiPulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.svc-chip--ai { border-color: rgba(124, 58, 237, .45); color: #6d28d9; }
.svc-chip--ai.is-active { background: linear-gradient(135deg, #7c3aed, #4f46e5); border-color: transparent; color: #fff; }
@media (prefers-reduced-motion: reduce) { .lp-js .svc-ai-card.is-in .svc-ai-msg, .svc-ai-badge i { animation: none; } }
@media (max-width: 575px) { .svc-ai-card { border-radius: 20px; } .svc-ai-msg { max-width: 94%; } }
