/* ============================================================
   sem.chat shared design system
   Reusable kit extracted from the homepage. Link with:
   <link rel="stylesheet" href="/components/site.css">
   Pages keep the global header (#site-header) + footer (#site-footer)
   via /components/loader.js, plus any page-specific inline <style>.
   ============================================================ */
:root {
    --ink: #0c0b14;
    --paper: #ffffff;
    --paper-2: #f6f5fb;
    --paper-3: #efeefb;
    --muted: #2c2c40;
    --line: #e8e6f2;
    --brand: #5345ea;
    --brand-2: #7c3aed;
    --brand-ink: #4338ca;
    --good: #10b981;
    --bad: #ef4444;
    --grad: linear-gradient(120deg, #5345ea, #7c3aed);
    --grad-soft: linear-gradient(135deg, rgba(83,69,234,0.10), rgba(124,58,237,0.10));
    --shadow-sm: 0 4px 18px rgba(20,19,43,0.06);
    --shadow: 0 18px 50px rgba(20,19,43,0.10);
    --shadow-lg: 0 40px 90px rgba(83,69,234,0.18);
    --r: 18px;
    --r-lg: 26px;
    --wrap: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 0.55rem; }
.logo-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 19px; height: 19px; color: #fff; }

/* Animations */
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes meshFloat { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-3%,0) scale(1.07); } }
@keyframes orbA { 0%,100% { transform: translate(0,0) scale(1); opacity:.7; } 50% { transform: translate(2%,-6%) scale(1.12); opacity:1; } }
@keyframes orbB { 0%,100% { transform: translate(0,0) scale(1); opacity:.55; } 50% { transform: translate(-3%,5%) scale(1.14); opacity:.85; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glowPulse { 0%,100% { opacity:.5; } 50% { opacity:.95; } }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.sec { padding: 6rem 0; position: relative; }
.sec-tight { padding: 4.5rem 0; }
.center { text-align: center; max-width: 720px; margin: 0 auto 3.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; }
.h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 700; }
.lead { color: var(--muted); font-size: 1.2rem; margin-top: 1rem; line-height: 1.6; }
.grad-text { background: linear-gradient(110deg,#5345ea,#7c3aed,#a855f7,#5345ea); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 7s linear infinite; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit; font-weight: 600; font-size: 1rem; padding: 0.95rem 1.7rem; border-radius: 999px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { color: #fff; background: linear-gradient(110deg,#5345ea,#7c3aed,#6d28d9,#5345ea); background-size: 220% auto; box-shadow: 0 14px 32px rgba(83,69,234,0.32); animation: gradientMove 8s ease infinite; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(83,69,234,0.42); }
.btn-ghost { color: var(--ink); background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand-ink); box-shadow: 0 14px 38px rgba(0,0,0,0.16); }
.btn-white:hover { transform: translateY(-2px); }
.btn-line-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.32); }

/* Reveal + wave */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.wave { display: block; width: 100%; height: 60px; }
.wave svg { width: 100%; height: 100%; display: block; }

/* Page hero */
.hero { position: relative; padding: 9rem 0 4rem; overflow: hidden; isolation: isolate; text-align: center; }
.hero.left { text-align: left; }
.hero-mesh { position: absolute; inset: -25% -10% auto -10%; height: 150%; z-index: -2; background:
    radial-gradient(40% 45% at 16% 18%, rgba(124,58,237,0.24), transparent 60%),
    radial-gradient(38% 42% at 84% 10%, rgba(83,69,234,0.24), transparent 60%),
    radial-gradient(42% 48% at 72% 78%, rgba(168,85,247,0.16), transparent 60%);
    animation: meshFloat 18s ease-in-out infinite; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(83,69,234,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(83,69,234,0.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 26%, #000 38%, transparent 78%); mask-image: radial-gradient(ellipse 75% 60% at 50% 26%, #000 38%, transparent 78%); }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); z-index: -1; }
.orb-1 { width: 340px; height: 340px; top: -50px; left: -70px; background: radial-gradient(circle, rgba(83,69,234,0.4), transparent 70%); animation: orbA 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; top: 20px; right: -120px; background: radial-gradient(circle, rgba(168,85,247,0.36), transparent 70%); animation: orbB 17s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); font-weight: 700; }
.hero-sub { font-size: 1.2rem; color: var(--muted); margin: 1.3rem auto 2rem; max-width: 44ch; }
.hero.left .hero-sub { margin-left: 0; margin-right: 0; }
.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
.hero.left .hero-ctas { justify-content: flex-start; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 600; color: var(--brand); padding: 0.5rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.72); border: 1px solid rgba(83,69,234,0.2); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

/* Cards (generic) */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 1.6rem; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); margin-bottom: 1rem; box-shadow: 0 8px 22px rgba(83,69,234,0.25); }
.card-ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.billing { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.billing button { border: 0; background: none; font-family: inherit; font-weight: 700; font-size: 0.9rem; color: var(--muted); padding: 0.55rem 1.3rem; border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.billing button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.save-pill { font-size: 0.74rem; font-weight: 800; color: var(--good); background: rgba(16,185,129,0.12); padding: 0.3rem 0.7rem; border-radius: 999px; margin-left: 0.3rem; }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; margin-top: 2.5rem; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: 1.7rem 1.35rem; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.feat { border-color: transparent; box-shadow: 0 22px 54px rgba(83,69,234,0.2); }
.plan.feat::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 999px; white-space: nowrap; }
.plan-nm { font-size: 1.1rem; font-weight: 800; }
.plan-tag { display: inline-block; margin-left: 0.45rem; font-size: 0.66rem; font-weight: 700; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.plan-ds { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 1rem; min-height: 2.4em; }
.plan-pr { display: flex; align-items: baseline; gap: 0.1rem; }
.plan-pr .cur { font-size: 1.1rem; font-weight: 700; }
.plan-pr .amt { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan-pr .amt.cst { font-size: 1.8rem; }
.plan-pr .per { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.plan-bill { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 1.1rem; min-height: 1.4em; }
.plan-bill .original-price { text-decoration: line-through; opacity: 0.6; margin-right: 0.25rem; }
.plan-fe { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; flex: 1; }
.plan-seats { margin: 0 0 1rem; padding-top: 0.95rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.plan-seats svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.plan-seats strong { font-size: 1.28rem; font-weight: 800; color: var(--brand-ink); }
.plan.feat .plan-seats strong { color: var(--brand); }
.plan.gold .plan-seats svg { color: #d97706; }
.plan.gold .plan-seats strong { color: #b45309; }
.plan-fe li { display: flex; gap: 0.5rem; font-size: 0.85rem; }
.plan-fe li svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.plan-cta { display: block; text-align: center; font-weight: 700; font-size: 0.92rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line); transition: all 0.2s; }
.plan-cta:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.plan.feat .plan-cta { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(83,69,234,0.32); }
.plan.gold { border-color: transparent; background: linear-gradient(180deg, #fffbf0, #ffffff 42%); box-shadow: 0 22px 54px rgba(217,119,6,0.16); }
.plan.gold::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); padding: 1.5px; background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan.gold .plan-badge { background: linear-gradient(135deg, #fbbf24, #d97706); }
.plan.gold .plan-nm { background: linear-gradient(135deg, #d97706, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan.gold .plan-fe li svg { color: #d97706; }
.plan.gold .plan-cta { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(217,119,6,0.3); }
.plan.gold .plan-cta:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.plan-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.6rem; }

/* FAQ accordion */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; font-family: inherit; font-size: 1.08rem; font-weight: 600; color: var(--ink); padding: 1.3rem 2.5rem 1.3rem 0; cursor: pointer; position: relative; }
.faq-q svg { position: absolute; right: 0; top: 1.4rem; width: 20px; height: 20px; color: var(--brand); transition: transform 0.3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-a p { color: var(--muted); font-size: 0.98rem; padding-bottom: 1.3rem; line-height: 1.6; }

/* Final CTA */
.cta-box { max-width: 1000px; margin: 0 auto; border-radius: 32px; padding: 4.2rem 2rem; text-align: center; position: relative; overflow: hidden; background: linear-gradient(120deg,#5345ea,#7c3aed,#6d28d9,#5345ea); background-size: 220% auto; animation: gradientMove 10s ease infinite; box-shadow: var(--shadow-lg); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.2), transparent 50%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.cta-box p { color: rgba(255,255,255,0.88); font-size: 1.12rem; margin: 1rem auto 2rem; max-width: 520px; }
.cta-box .hero-ctas { justify-content: center; }

/* Footer + language popup (global, injected) */
footer { background: #0a0a0f; color: #fff; padding: 4rem 1.5rem 2rem; }
.footer-container { max-width: var(--wrap); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 1rem 0; max-width: 30ch; }
.footer-column h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.footer-column a { display: block; color: rgba(255,255,255,0.72); font-size: 0.92rem; padding: 0.32rem 0; transition: color 0.2s; }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-left p, .footer-bottom p { color: rgba(255,255,255,0.55); font-size: 0.86rem; }
.footer-family a { color: var(--brand); text-decoration: none; }
.footer-family a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.footer-social a:hover { background: var(--grad); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-lang-section { margin-top: 1rem; }
.lang-trigger { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-family: inherit; font-size: 0.88rem; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.lang-trigger:hover { background: rgba(255,255,255,0.14); }
.lang-popup-overlay { display: none; position: fixed; inset: 0; z-index: 4000; background: rgba(10,10,15,0.6); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 1.5rem; }
.lang-popup-overlay.active { display: flex; }
.lang-popup { background: #fff; color: var(--ink); border-radius: 24px; padding: 1.6rem; max-width: 1180px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(15,23,42,0.3); }
.lang-popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.lang-popup-title { font-weight: 800; font-size: 1.1rem; }
.lang-popup-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.lang-popup-close:hover { background: var(--paper-2); color: var(--ink); }
.lang-popup .lang-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0.7rem; }
.lang-popup .lang-grid a { display: flex; align-items: center; gap: 0.6rem; min-height: 56px; padding: 0.75rem 0.85rem; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.lang-popup .lang-grid a:hover { border-color: var(--brand); background: #fff; transform: translateY(-2px); }
.lang-popup .lang-grid a.active { background: #eef2ff; border-color: var(--brand); color: var(--brand); }
.lang-code img { border-radius: 3px; display: block; }
.lang-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Responsive */
@media (max-width: 1024px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .lang-popup .lang-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .sec { padding: 4.2rem 0; }
    .hero { padding: 8rem 0 3.2rem; }
    .plans { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .lang-popup .lang-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ===== Feature rows (alternating, flowy) ===== */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.frow + .frow { margin-top: 5.5rem; }
.frow.flip .frow-text { order: 2; } .frow.flip .frow-viz { order: 1; }
.frow-num { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 2.2rem; color: var(--brand); opacity: .5; line-height: 1; }
.frow-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: .4rem 0 .8rem; }
.frow-text p { color: var(--muted); font-size: 1.05rem; }
.frow-points { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.frow-points li { display: flex; gap: .6rem; font-size: .95rem; }
.frow-points li svg { width: 18px; height: 18px; color: var(--good); flex-shrink: 0; margin-top: 3px; }
.viz { position: relative; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1.5rem; overflow: hidden; min-height: 240px; }
.viz::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; top: -90px; right: -70px; background: var(--grad-soft); filter: blur(10px); }
.viz > * { position: relative; }
.viz-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.viz-title .led { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(16,185,129,.16); }
.vchat { display: flex; flex-direction: column; gap: .6rem; }
.vbub { max-width: 84%; padding: .65rem .9rem; border-radius: 15px; font-size: .88rem; line-height: 1.4; }
.vbub.bot { background: var(--paper-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.vbub.usr { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.vmeta { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--good); background: rgba(16,185,129,.1); padding: .3rem .65rem; border-radius: 999px; }
.vmeta svg { width: 14px; height: 14px; }
@keyframes waveb { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.vwave { display: flex; align-items: center; gap: 5px; height: 80px; justify-content: center; }
.vwave i { width: 6px; border-radius: 999px; background: var(--grad); transform-origin: center; animation: waveb 1.1s ease-in-out infinite; }
.vpills { display: flex; flex-wrap: wrap; gap: .55rem; }
.vpill { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 600; }
.vpill img { width: 18px; border-radius: 3px; }
.vlist { display: flex; flex-direction: column; gap: .55rem; }
.vitem { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 13px; font-size: .86rem; background: var(--paper); }
.vitem .ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); flex-shrink: 0; }
.vitem .ic svg { width: 16px; height: 16px; }
.vitem b { font-weight: 700; }
.vtag { margin-left: auto; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: rgba(16,185,129,.12); color: var(--good); }

/* ===== Stat band ===== */
.statband { background: #0b0a16; color: #fff; padding: 3.5rem 0; }
.statband .row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; text-align: center; }
.statband .n { font-size: 2.6rem; font-weight: 800; background: linear-gradient(120deg,#a5b4fc,#a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statband .l { font-size: .9rem; color: rgba(255,255,255,.65); margin-top: .2rem; }

/* ===== Feature index (de-carded) ===== */
.idx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.4rem; }
.idx-group h4 { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.idx-group h4 .gi { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); flex-shrink: 0; }
.idx-group h4 .gi svg { width: 15px; height: 15px; }
.idx-group ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.idx-group li { font-size: .88rem; color: var(--muted); line-height: 1.4; padding-left: 1.1rem; position: relative; }
.idx-group li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .5; }

/* ===== Chips (integrations) ===== */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 820px; margin: 0 auto; }
.chip { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

@media (max-width: 1024px) { .idx { grid-template-columns: repeat(2, 1fr); } .feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 860px) { .frow { grid-template-columns: 1fr; gap: 2rem; } .frow.flip .frow-text { order: 1; } .frow.flip .frow-viz { order: 2; } .frow + .frow { margin-top: 3.5rem; } }
@media (max-width: 640px) { .idx, .feat-grid { grid-template-columns: 1fr; } .statband .row { gap: 1.6rem; } }

/* ===== Feature catalog (cards) ===== */
.fcatalog { display: flex; flex-direction: column; gap: 3.4rem; }
.fcat-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; }
.fcat-head .gi { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); flex-shrink: 0; box-shadow: 0 8px 20px rgba(83,69,234,.28); }
.fcat-head .gi svg { width: 22px; height: 22px; }
.fcat-head .fcat-tt { display: flex; flex-direction: column; gap: .12rem; }
.fcat-head h3 { font-size: 1.24rem; font-weight: 700; line-height: 1.2; }
.fcat-head .fcat-sub { font-size: .9rem; color: var(--muted); }
.fcat-head .ct { margin-left: auto; align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--brand-ink); background: var(--paper-3); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.fcat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fcard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem 1.25rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(12,11,20,.10); border-color: #d7d3ee; }
.ficon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; background: linear-gradient(135deg,#5345ea,#6366f1); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(83,69,234,.24); }
.ficon svg { width: 21px; height: 21px; }
.ficon.brand { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--brand); }
.ficon.brand svg { width: 23px; height: 23px; }
.fcard h4 { font-size: .97rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; line-height: 1.3; }
.fcard p { color: var(--muted); font-size: .875rem; line-height: 1.55; }

/* ===== Integration logo wall ===== */
.lw-group + .lw-group { margin-top: 2.2rem; }
.lw-label { text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.lwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem; max-width: 980px; margin: 0 auto; }
.ltile { display: flex; align-items: center; gap: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ltile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12,11,20,.10); border-color: #d7d3ee; }
.ltile .lg { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ltile .lg svg { width: 100%; height: 100%; }
.ltile .lmono { width: 26px; height: 26px; border-radius: 7px; background: var(--grad); color: #fff; font-size: .66rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ltile span { font-weight: 600; font-size: .92rem; color: var(--ink); }
@media (max-width: 980px) { .fcat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fcat-grid { grid-template-columns: 1fr; } .fcat-head .gi { width: 40px; height: 40px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Colorful feature icons (vivid distinct palette, white glyphs) ===== */
:root {
    --ic1: linear-gradient(135deg,#5345ea,#6366f1); --is1: 0 8px 22px rgba(83,69,234,.28);
    --ic2: linear-gradient(135deg,#2563eb,#3b82f6); --is2: 0 8px 22px rgba(37,99,235,.28);
    --ic3: linear-gradient(135deg,#0891b2,#06b6d4); --is3: 0 8px 22px rgba(8,145,178,.28);
    --ic4: linear-gradient(135deg,#059669,#10b981); --is4: 0 8px 22px rgba(5,150,105,.28);
    --ic5: linear-gradient(135deg,#d97706,#f59e0b); --is5: 0 8px 22px rgba(217,119,6,.28);
    --ic6: linear-gradient(135deg,#e11d48,#f43f5e); --is6: 0 8px 22px rgba(225,29,72,.28);
    --ic7: linear-gradient(135deg,#db2777,#ec4899); --is7: 0 8px 22px rgba(219,39,119,.28);
    --ic8: linear-gradient(135deg,#7c3aed,#a855f7); --is8: 0 8px 22px rgba(124,58,237,.28);
    --ic9: linear-gradient(135deg,#0284c7,#0ea5e9); --is9: 0 8px 22px rgba(2,132,199,.28);
}
/* Pricing "What you get" grid — 9 thematic colors */
.feat-grid .card:nth-child(1) .card-ico { background: var(--ic1); box-shadow: var(--is1); }
.feat-grid .card:nth-child(2) .card-ico { background: var(--ic8); box-shadow: var(--is8); }
.feat-grid .card:nth-child(3) .card-ico { background: var(--ic2); box-shadow: var(--is2); }
.feat-grid .card:nth-child(4) .card-ico { background: var(--ic3); box-shadow: var(--is3); }
.feat-grid .card:nth-child(5) .card-ico { background: var(--ic4); box-shadow: var(--is4); }
.feat-grid .card:nth-child(6) .card-ico { background: var(--ic5); box-shadow: var(--is5); }
.feat-grid .card:nth-child(7) .card-ico { background: var(--ic6); box-shadow: var(--is6); }
.feat-grid .card:nth-child(8) .card-ico { background: var(--ic7); box-shadow: var(--is7); }
.feat-grid .card:nth-child(9) .card-ico { background: var(--ic9); box-shadow: var(--is9); }
.feat-grid .card:nth-child(10) .card-ico { background: var(--ic1); box-shadow: var(--is1); }
.feat-grid .card:nth-child(11) .card-ico { background: var(--ic2); box-shadow: var(--is2); }
.feat-grid .card:nth-child(12) .card-ico { background: var(--ic3); box-shadow: var(--is3); }
/* Features catalog cards — 8-color cycle per category grid (skip white-bg brand tiles) */
.fcat-grid .fcard:nth-child(8n+1) .ficon:not(.brand) { background: var(--ic1); box-shadow: var(--is1); }
.fcat-grid .fcard:nth-child(8n+2) .ficon:not(.brand) { background: var(--ic2); box-shadow: var(--is2); }
.fcat-grid .fcard:nth-child(8n+3) .ficon:not(.brand) { background: var(--ic3); box-shadow: var(--is3); }
.fcat-grid .fcard:nth-child(8n+4) .ficon:not(.brand) { background: var(--ic4); box-shadow: var(--is4); }
.fcat-grid .fcard:nth-child(8n+5) .ficon:not(.brand) { background: var(--ic5); box-shadow: var(--is5); }
.fcat-grid .fcard:nth-child(8n+6) .ficon:not(.brand) { background: var(--ic6); box-shadow: var(--is6); }
.fcat-grid .fcard:nth-child(8n+7) .ficon:not(.brand) { background: var(--ic7); box-shadow: var(--is7); }
.fcat-grid .fcard:nth-child(8n) .ficon:not(.brand)   { background: var(--ic8); box-shadow: var(--is8); }
/* Features category headers — 8-color cycle (16 categories) */
.fcatalog .fcat:nth-child(8n+1) .fcat-head .gi { background: var(--ic1); box-shadow: var(--is1); }
.fcatalog .fcat:nth-child(8n+2) .fcat-head .gi { background: var(--ic2); box-shadow: var(--is2); }
.fcatalog .fcat:nth-child(8n+3) .fcat-head .gi { background: var(--ic3); box-shadow: var(--is3); }
.fcatalog .fcat:nth-child(8n+4) .fcat-head .gi { background: var(--ic4); box-shadow: var(--is4); }
.fcatalog .fcat:nth-child(8n+5) .fcat-head .gi { background: var(--ic5); box-shadow: var(--is5); }
.fcatalog .fcat:nth-child(8n+6) .fcat-head .gi { background: var(--ic6); box-shadow: var(--is6); }
.fcatalog .fcat:nth-child(8n+7) .fcat-head .gi { background: var(--ic7); box-shadow: var(--is7); }
.fcatalog .fcat:nth-child(8n) .fcat-head .gi   { background: var(--ic8); box-shadow: var(--is8); }
/* Small list-item icons (viz mockups) — 8-color cycle */
.vlist .vitem:nth-child(8n+1) .ic { background: var(--ic1); }
.vlist .vitem:nth-child(8n+2) .ic { background: var(--ic2); }
.vlist .vitem:nth-child(8n+3) .ic { background: var(--ic3); }
.vlist .vitem:nth-child(8n+4) .ic { background: var(--ic4); }
.vlist .vitem:nth-child(8n+5) .ic { background: var(--ic5); }
.vlist .vitem:nth-child(8n+6) .ic { background: var(--ic6); }
.vlist .vitem:nth-child(8n+7) .ic { background: var(--ic7); }
.vlist .vitem:nth-child(8n) .ic   { background: var(--ic8); }
