/* smart-features.html — Smart Insights highlights with CSS-only animated mock screens. */
.sm-hero { padding: 120px 0 20px; }
.sm-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.sm-hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; margin: 18px 0 16px; }
.sm-hero h1 .grad { background: linear-gradient(90deg, #7c3aed, #ec4899 45%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm-hero .lead { font-size: 18px; color: var(--text-muted); max-width: 560px; }
.sm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sm-pills span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-main, #0f172a); }

/* section blocks */
.sm-sec { padding: 56px 0 10px; }
.sm-sec .head { max-width: 720px; margin-bottom: 28px; }
.sm-sec .head h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin: 10px 0 8px; }
.sm-sec .head p { font-size: 16.5px; }
.sm-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sm-card { background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 22px; box-shadow: var(--card-shadow); display: grid; gap: 16px; align-content: start; }
.sm-card h3 { font-size: 19px; margin: 0; display: flex; gap: 10px; align-items: center; }
.sm-card h3 .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.sm-card p { font-size: 14.5px; }
.sm-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--text-muted); }
.sm-card ul li::before { content: "✓ "; color: #16a34a; font-weight: 900; }
.ic-red { background: #fee2e2; } .ic-amber { background: #fef3c7; } .ic-green { background: #dcfce7; } .ic-blue { background: #dbeafe; } .ic-violet { background: #ede9fe; } .ic-pink { background: #fce7f3; }

/* the animated "screen" every card carries */
.mock { position: relative; border-radius: 18px; background: #0f172a; color: #e2e8f0; padding: 16px; min-height: 196px; overflow: hidden; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.mock.light { background: linear-gradient(180deg, #f8fafc, #eef2ff); color: #0f172a; box-shadow: inset 0 0 0 1px var(--border); }
.mock .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; display: block; }
.mock.light .bar i { background: #cbd5e1; }
.mock .t { font-weight: 800; font-size: 13.5px; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); margin-bottom: 7px; }
.mock.light .row { background: #fff; border: 1px solid var(--border); }
.row .grow { flex: 1; }
.tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }
.tag.red { background: rgba(239,68,68,.18); color: #f87171; } .mock.light .tag.red { background: #fee2e2; color: #b91c1c; }
.tag.amber { background: rgba(245,158,11,.2); color: #fbbf24; } .mock.light .tag.amber { background: #fef3c7; color: #b45309; }
.tag.green { background: rgba(16,185,129,.2); color: #34d399; } .mock.light .tag.green { background: #dcfce7; color: #15803d; }
.money { font-weight: 800; font-variant-numeric: tabular-nums; }

/* 1. rows slide in one after another, then the loop restarts */
.seq > * { opacity: 0; animation: smIn 8s ease-in-out infinite; }
.seq > *:nth-child(2) { animation-delay: .5s; } .seq > *:nth-child(3) { animation-delay: 1s; } .seq > *:nth-child(4) { animation-delay: 1.5s; } .seq > *:nth-child(5) { animation-delay: 2s; } .seq > *:nth-child(6) { animation-delay: 2.5s; }
@keyframes smIn { 0% { opacity: 0; transform: translateX(-14px); } 8%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pulse { animation: smPulse 1.8s ease-in-out infinite; }
@keyframes smPulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.15); } }

/* 2. Tanglish search: "arisi" types itself, then அரிசி appears */
.search { display: flex; align-items: center; gap: 8px; background: #fff; color: #0f172a; border-radius: 12px; padding: 10px 12px; font-weight: 700; border: 2px solid #6366f1; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; animation: smType 6s steps(5) infinite; }
@keyframes smType { 0%, 8% { width: 0; } 38%, 90% { width: 5.2ch; } 100% { width: 0; } }
.caret { width: 2px; height: 18px; background: #6366f1; animation: smBlink .8s step-end infinite; }
@keyframes smBlink { 50% { opacity: 0; } }
.found { margin-top: 12px; display: grid; gap: 8px; }
.found .row { opacity: 0; animation: smFound 6s ease infinite; }
.found .row:nth-child(2) { animation-delay: .25s; }
@keyframes smFound { 0%, 40% { opacity: 0; transform: translateY(8px); } 48%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3. price swap ₹50 → ₹58 */
.swap { position: relative; display: inline-block; width: 3.4ch; height: 1.2em; vertical-align: bottom; }
.swap b { position: absolute; left: 0; top: 0; }
.swap b:first-child { animation: smOld 6s ease infinite; } .swap b:last-child { color: #34d399; opacity: 0; animation: smNew 6s ease infinite; }
@keyframes smOld { 0%, 45% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes smNew { 0%, 50% { opacity: 0; transform: translateY(10px); } 60%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.done { opacity: 0; animation: smNew 6s ease infinite; animation-delay: .3s; color: #34d399; font-weight: 800; }

/* 4. heatmap */
.heat { display: grid; grid-template-columns: 34px repeat(10, 1fr); gap: 4px; font-size: 10.5px; align-items: center; }
.heat .c { height: 20px; border-radius: 5px; background: #6366f1; animation: smHeat 4s ease-in-out infinite; }
@keyframes smHeat { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
.heat .lbl { opacity: .7; font-weight: 700; }

/* 5. WhatsApp phone */
.phone { margin: 0 auto; width: 240px; border-radius: 26px; background: #0b141a; padding: 12px 10px 16px; border: 3px solid #1f2c34; }
.phone .top { color: #e9edef; font-weight: 800; font-size: 12.5px; padding: 2px 6px 10px; display: flex; gap: 8px; align-items: center; }
.phone .top i { width: 22px; height: 22px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.bub { background: #005c4b; color: #e9edef; border-radius: 10px 10px 10px 2px; padding: 8px 10px; font-size: 12px; line-height: 1.35; margin: 6px 22px 0 0; opacity: 0; animation: smBub 10s ease infinite; }
.bub small { display: block; opacity: .6; font-size: 10px; margin-top: 3px; text-align: right; }
.bub:nth-child(3) { animation-delay: 1.6s; } .bub:nth-child(4) { animation-delay: 3.2s; }
@keyframes smBub { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.qr { display: inline-block; width: 30px; height: 30px; margin-top: 4px; border-radius: 4px; background: repeating-conic-gradient(#e9edef 0 25%, #005c4b 0 50%) 0 0 / 8px 8px; }

/* 6. cart chip pops in, then the item lands in the cart */
.chip { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; animation: smChip 7s ease infinite; }
@keyframes smChip { 0%, 15% { opacity: 0; transform: scale(.7); } 22%, 55% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; transform: translateY(-6px); } }
.landed { opacity: 0; animation: smLand 7s ease infinite; }
@keyframes smLand { 0%, 58% { opacity: 0; transform: translateY(-10px); } 66%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 7. bars grow */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 6px; }
.bars span { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #34d399, #059669); transform-origin: bottom; animation: smGrow 5s ease infinite; position: relative; }
.bars span.neg { background: linear-gradient(180deg, #fca5a5, #dc2626); }
.bars span:nth-child(2) { animation-delay: .2s; } .bars span:nth-child(3) { animation-delay: .4s; } .bars span:nth-child(4) { animation-delay: .6s; } .bars span:nth-child(5) { animation-delay: .8s; } .bars span:nth-child(6) { animation-delay: 1s; } .bars span:nth-child(7) { animation-delay: 1.2s; }
@keyframes smGrow { 0% { transform: scaleY(0); } 25%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.bars-x { display: flex; gap: 10px; font-size: 10.5px; opacity: .7; margin-top: 6px; } .bars-x span { flex: 1; text-align: center; }

/* 8. salon chairs fill */
.chairs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chairs span { height: 30px; border-radius: 8px; border: 2px dashed #64748b; display: grid; place-items: center; font-size: 13px; }
.chairs span.fill { border-style: solid; border-color: #ec4899; background: rgba(236,72,153,.18); animation: smFill 6s ease infinite; }
.chairs span.fill:nth-child(3) { animation-delay: .6s; } .chairs span.fill:nth-child(5) { animation-delay: 1.2s; }
@keyframes smFill { 0%, 30% { background: transparent; border-style: dashed; border-color: #64748b; } 40%, 92% { background: rgba(236,72,153,.18); border-style: solid; border-color: #ec4899; } }

/* band of "how it works" facts */
.sm-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.sm-facts div { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--card-shadow); }
.sm-facts b { display: block; font-size: 22px; font-family: Sora, Inter, sans-serif; margin-bottom: 4px; }
.sm-facts p { font-size: 13.5px; }
.sm-final { margin: 60px 0 30px; padding: 34px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 20% 0%, #7c3aed, #312e81 60%, #0f172a); }
.sm-final h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 10px; }
.sm-final p { color: #c7d2fe; margin-bottom: 20px; }

/* index.html banner */
/* home page showcase (index.html #smart) */
.sm-pill-link { text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.sm-pill-link b { margin-left: 4px; transition: transform .2s; }
.sm-pill-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.24) !important; }
.sm-pill-link:hover b { transform: translateX(4px); }
.sm-show { position: relative; margin: 34px 0 10px; padding: 70px 0; color: #e2e8f0; background: radial-gradient(900px 420px at 85% 10%, rgba(219,39,119,.35), transparent 60%), radial-gradient(700px 400px at 5% 90%, rgba(99,102,241,.45), transparent 60%), #0b1023; overflow: hidden; }
.sm-show::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.sm-show-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.sm-new { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(90deg, #7c3aed, #db2777); box-shadow: 0 0 0 0 rgba(219,39,119,.6); animation: smGlow 2.2s infinite; }
.sm-new i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
@keyframes smGlow { 70% { box-shadow: 0 0 0 14px rgba(219,39,119,0); } 100% { box-shadow: 0 0 0 0 rgba(219,39,119,0); } }
.sm-show h2 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; }
.sm-show h2 .grad { background: linear-gradient(90deg, #a78bfa, #f472b6 50%, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm-show p { color: #cbd5e1; font-size: 17px; max-width: 540px; }
.sm-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 26px; }
.sm-feats a { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.sm-feats a:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: #a78bfa; }
.sm-show-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sm-show-cta > span { color: #94a3b8; font-size: 14px; font-weight: 600; }
.sm-btn-main { background: linear-gradient(90deg, #7c3aed, #db2777); color: #fff !important; font-weight: 800; padding: 15px 26px; border-radius: 999px; font-size: 16.5px; box-shadow: 0 18px 40px -14px rgba(219,39,119,.8); text-decoration: none; transition: transform .2s; }
.sm-btn-main:hover { transform: translateY(-2px) scale(1.02); }
.sm-stage { position: relative; display: block; padding: 30px 40px 96px 0; text-decoration: none; color: inherit; }
.sm-stage .sm-main { min-height: 0; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.1); transform: rotate(-1.5deg); transition: transform .3s; }
.sm-stage:hover .sm-main { transform: none; }
.sm-float { position: absolute; min-height: 0; border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.75); animation: smFloat 6s ease-in-out infinite; }
.sm-f1 { width: 250px; right: -6px; top: -14px; padding: 12px; }
.sm-f2 { width: 230px; left: -26px; bottom: -6px; padding: 12px; animation-delay: -2s; }
.sm-f3 { width: 230px; right: 0; bottom: -4px; animation-delay: -4s; }
.sm-f3 .bub { margin: 0; box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); }
.sm-float .row { margin: 0; }
.sm-float .found { margin-top: 8px; }
@keyframes smFloat { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .sm-grid, .sm-cards, .sm-show-grid { grid-template-columns: 1fr; }
  .sm-show { padding: 54px 0; } .sm-show-grid { gap: 30px; }
  .sm-stage { padding: 112px 0 100px; max-width: 520px; margin: 0 auto; width: 100%; }
  .sm-f1 { right: 0; top: 0; } .sm-f2 { left: 0; bottom: 8px; } .sm-f3 { right: 0; bottom: 0; }
  .sm-facts { grid-template-columns: repeat(2, 1fr); }
  .sm-hero { padding-top: 100px; }
}
@media (max-width: 480px) {
  .sm-facts { grid-template-columns: 1fr; }
  .sm-feats { grid-template-columns: repeat(2, 1fr); }
  .sm-f1 { width: 200px; } .sm-f2 { width: 175px; } .sm-f3 { width: 175px; }
  .sm-stage .sm-main { transform: none; }
  .heat { grid-template-columns: 28px repeat(10, 1fr); gap: 3px; }
  .phone { width: 100%; max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .seq > *, .found .row, .bub, .chip, .landed, .done, .swap b, .typed, .bars span, .chairs span.fill, .heat .c, .pulse, .sm-float, .sm-new { animation: none !important; opacity: 1 !important; transform: none !important; }
  .typed { width: 5.2ch; } .swap b:first-child { display: none; } .chip { display: none; }
}
@media (max-width: 380px) {
  .sm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-feats a { font-size: 13px; padding: 10px; }
}
