/* =====================================================================
   My Smart GMB – /compare-plans
   Mobile first. Tokens app.css se (--night, --marigold, --porcelain ...).
   Ek khaas pal: hero mein trial ke 7 din ek-ek karke jalte hain.
   ===================================================================== */
.is-compare { background: var(--porcelain); overflow-x: hidden; }
.is-compare .btn-primary { --b: var(--night); color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.cp-top {
	position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between;
	padding: max(14px, env(safe-area-inset-top)) 16px 14px; color: #fff;
}
.cp-top .wordmark { color: #fff; font-size: 1.05rem; }
.cp-top nav { display: flex; align-items: center; gap: 6px; }
.cp-link { color: #DCD8FF; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 99px; }
.cp-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.cp-pill { color: var(--night); background: var(--marigold); text-decoration: none; font-weight: 700; font-size: .86rem; padding: 8px 14px; border-radius: 99px; }

/* ---------- Hero ---------- */
.cp-hero {
	position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
	padding: 96px 16px 150px;
	background:
		radial-gradient(110% 70% at 15% 0%, #3A3494 0%, transparent 60%),
		radial-gradient(90% 60% at 100% 90%, #5B2F7E 0%, transparent 58%),
		var(--night);
}
.cp-aura span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .45; animation: cp-drift 22s ease-in-out infinite alternate; }
.cp-aura span:nth-child(1) { width: 260px; height: 260px; background: #6D5BFF; top: -60px; right: -90px; }
.cp-aura span:nth-child(2) { width: 220px; height: 220px; background: #FFB627; bottom: -120px; left: -80px; opacity: .22; animation-delay: -8s; }
@keyframes cp-drift { to { transform: translate(-40px, 30px) scale(1.15); } }

.cp-hero h1 {
	font-size: clamp(2.1rem, 9.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800;
	max-width: 13ch; margin: 0 auto 14px; color: #fff; text-wrap: balance;
}
.cp-lead { color: #CFCBEF; max-width: 40ch; margin: 0 auto 26px; font-size: 1rem; text-wrap: pretty; }

/* Trial strip: 7 din + payment ka din */
.trial { max-width: 460px; margin: 0 auto; }
.trial-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.trial-days li {
	position: relative; aspect-ratio: 1 / 1.15; border-radius: 12px; display: grid; place-items: center;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
	font-family: var(--display); font-weight: 800; font-size: .95rem; color: rgba(255,255,255,.55);
}
.trial-days li span { position: relative; z-index: 1; }
.trial-days li::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--marigold);
	transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-spring);
	transition-delay: calc(var(--i) * 110ms);
}
.trial-days li::after {
	content: "★"; position: absolute; top: -9px; right: -5px; z-index: 2; font-size: .72rem; color: var(--marigold);
	text-shadow: 0 0 10px rgba(255,182,39,.8); opacity: 0; transform: scale(.2) rotate(-40deg);
	transition: opacity .3s, transform .5s var(--ease-spring); transition-delay: calc(var(--i) * 110ms + 220ms);
}
.trial.play .trial-days li:not(.pay)::before { transform: scaleY(1); }
.trial.play .trial-days li:not(.pay) { color: var(--night); border-color: transparent; transition: color .2s calc(var(--i) * 110ms + 120ms); }
.trial.play .trial-days li:not(.pay)::after { opacity: 1; transform: none; }
.trial-days li.pay { border-style: dashed; border-color: rgba(255,255,255,.4); color: #fff; }
.trial-days li.pay::before, .trial-days li.pay::after { display: none; }
.trial.play .trial-days li.pay { animation: cp-knock .6s calc(var(--i) * 110ms + 200ms) both; }
@keyframes cp-knock { 40% { transform: translateY(-5px); } 70% { transform: translateY(2px); } }
.trial-key { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .78rem; color: #BDB8E8; text-align: left; }
.trial-key span:last-child { text-align: right; }
.trial-key b { color: var(--marigold); font-family: var(--display); font-size: 1rem; }

/* ---------- Plan cards ---------- */
.cp-plans { position: relative; z-index: 2; margin-top: -112px; }
.cp-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 360px); gap: 12px;
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	padding: 14px max(16px, calc((100vw - min(84vw, 360px)) / 2)) 26px; scrollbar-width: none;
}
.cp-rail::-webkit-scrollbar { display: none; }
.pcard {
	scroll-snap-align: center; position: relative; border-radius: 26px; background: #fff;
	box-shadow: 0 30px 60px -30px rgba(30,27,75,.45), 0 2px 8px rgba(30,27,75,.06);
	transform: scale(.95); opacity: .82; transition: transform .45s var(--ease-out), opacity .45s;
	--mx: 50%; --my: 0%;
}
.pcard.is-active { transform: none; opacity: 1; }
.pcard-in {
	position: relative; height: 100%; padding: 24px 20px 22px; border-radius: inherit; overflow: hidden;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(220,215,245,.55), transparent 45%), #fff;
}
.pcard h2 { font-size: 1.6rem; letter-spacing: -.03em; margin: 0 0 4px; }
.pcard .tag { color: var(--ink-2); font-size: .92rem; min-height: 2.8em; margin-bottom: 14px; }

/* Pro: ghoomti marigold border */
.pcard.is-star { padding: 2px; background: conic-gradient(from var(--spin, 0deg), var(--marigold), #FFE3A3, #7A6CF0, var(--marigold)); animation: cp-spin 6s linear infinite; }
.pcard.is-star .pcard-in { border-radius: 24px; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,182,39,.18), transparent 45%), linear-gradient(170deg, #FFFBF0, #fff 40%); }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes cp-spin { to { --spin: 360deg; } }
.flag {
	position: absolute; top: 18px; right: 18px; background: var(--night); color: var(--marigold);
	font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 99px;
}

/* Basic: monthly / yearly */
.cycle { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--porcelain); border-radius: 99px; padding: 4px; margin-bottom: 14px; }
.cycle button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 6px; border-radius: 99px; font-weight: 700; font-size: .86rem; color: var(--ink-3); cursor: pointer; transition: color .25s; }
.cycle button[aria-pressed="true"] { color: var(--night); }
.cycle button em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--ok); margin-left: 3px; }
.cycle i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: #fff; box-shadow: 0 4px 12px -4px rgba(30,27,75,.3); transition: transform .4s var(--ease-spring); }
.cycle.is-yearly i { transform: translateX(100%); }

.price { display: flex; align-items: flex-start; margin: 0; font-family: var(--display); color: var(--ink); line-height: 1; }
.price .cur { font-size: 1.5rem; font-weight: 700; margin-top: .3em; margin-right: 2px; }
.price .num { font-size: 3.4rem; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.price .per { align-self: flex-end; font-family: var(--body); font-size: .9rem; color: var(--ink-3); margin: 0 0 .5em 4px; }
.pcard .sub { color: var(--ink-3); font-size: .84rem; margin: 6px 0 16px; min-height: 1.3em; }
.pcard .go { margin-bottom: 8px; min-height: 50px; font-size: 1rem; }
.pcard.is-star .go { --b: var(--night); }
.pcard .after { text-align: center; font-size: .78rem; color: var(--ink-3); margin-bottom: 16px; }
.best { font-size: .84rem; color: var(--ink-2); padding-top: 14px; border-top: 1px dashed var(--line); margin-bottom: 10px; }
.best span { font-weight: 700; color: var(--ink); margin-right: 2px; }
.hl { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.hl li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.hl li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 6px;
	background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230A7A59' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.hl li:first-child { font-weight: 600; }

.dots { display: flex; justify-content: center; gap: 8px; margin: -8px 0 10px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(30,27,75,.18); cursor: pointer; transition: width .35s var(--ease-spring), background .3s; }
.dots button[aria-selected="true"] { width: 26px; background: var(--night); }
.gst { text-align: center; color: var(--ink-3); font-size: .8rem; margin: 0 16px 8px; }

/* Card entry (ek hi baar, page load par) */
.cp-ready .pcard { animation: cp-in .8s var(--ease-out) both; }
.cp-ready .pcard:nth-child(2) { animation-delay: .08s; }
.cp-ready .pcard:nth-child(3) { animation-delay: .16s; }
@keyframes cp-in { from { opacity: 0; translate: 0 40px; } }

/* ---------- Compare table ---------- */
.cp-table, .cp-faq { max-width: 1080px; margin: 0 auto; padding: 44px 16px 8px; }
.cp-table h2, .cp-faq h2, .cp-end h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: -.035em; font-weight: 800; margin-bottom: 6px; }
.cp-sub { color: var(--ink-3); margin-bottom: 16px; }

.seg {
	position: sticky; top: 10px; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr);
	background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.9); box-shadow: 0 14px 30px -18px rgba(30,27,75,.5);
	border-radius: 99px; padding: 5px; margin-bottom: 14px; --at: 1;
}
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 4px; border-radius: 99px; font-weight: 700; font-size: .92rem; color: var(--ink-2); cursor: pointer; transition: color .3s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 99px; background: var(--night); transform: translateX(calc(var(--at) * 100%)); transition: transform .45s var(--ease-spring); box-shadow: 0 8px 18px -8px rgba(30,27,75,.7); }

.tbl { background: #fff; border-radius: 22px; box-shadow: var(--shadow-float); overflow: clip; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl thead { display: none; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); font-weight: 400; font-size: .92rem; }
.tbl tbody th { color: var(--ink); }
.tbl td { width: 76px; text-align: center; }
.tbl tr.grp th {
	border-top: 0; padding: 18px 16px 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
	color: var(--night); background: linear-gradient(var(--porcelain), #fff);
}
.tbl tbody:first-of-type tr.grp th { padding-top: 16px; }
.yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ok-bg); color: var(--ok); }
.no { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: rgba(30,27,75,.18); vertical-align: middle; }
.val { display: inline-block; min-width: 28px; padding: 4px 9px; border-radius: 9px; background: #FFF3D6; color: #7A4B00; font-weight: 700; font-size: .82rem; }

/* Phone: sirf chuna hua plan dikhe */
@media (max-width: 759px) {
	.tbl[data-show="basic"] [data-col]:not([data-col="basic"]),
	.tbl[data-show="pro"] [data-col]:not([data-col="pro"]),
	.tbl[data-show="agency"] [data-col]:not([data-col="agency"]) { display: none; }
	.tbl.swap tbody td .yes, .tbl.swap tbody td .val { animation: cp-pop .45s var(--ease-spring) both; }
	.tbl.swap tbody tr:nth-child(3n+1) td > * { animation-delay: .03s; }
	.tbl.swap tbody tr:nth-child(3n+2) td > * { animation-delay: .07s; }
	.tbl[data-show="basic"] tr:has(td[data-col="basic"] .no) th,
	.tbl[data-show="pro"] tr:has(td[data-col="pro"] .no) th,
	.tbl[data-show="agency"] tr:has(td[data-col="agency"] .no) th { color: var(--ink-3); }
}
@keyframes cp-pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { background: #fff; border-radius: 22px; box-shadow: var(--shadow-float); padding: 4px 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 17px 18px; font-weight: 700; font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--porcelain); transition: transform .35s var(--ease-spring), background .25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 2px; border-radius: 2px; background: var(--night); }
.faq summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease-spring); }
.faq details[open] summary i { background: var(--marigold); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq-a > p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }
.faq details[open] .faq-a { animation: cp-open .45s var(--ease-out); }
@keyframes cp-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- End band + footer ---------- */
.cp-end {
	position: relative; overflow: hidden; margin: 48px 16px 0; padding: 40px 22px; border-radius: 28px; text-align: center; color: #fff;
	background: radial-gradient(120% 90% at 0% 0%, #3A3494, transparent 60%), radial-gradient(80% 80% at 100% 100%, #5B2F7E, transparent 60%), var(--night);
}
.cp-end h2 { color: #fff; }
.cp-end p { color: #CFCBEF; }
.btn-marigold { background: var(--marigold); color: var(--night); box-shadow: 0 16px 30px -14px rgba(255,182,39,.8); min-height: 52px; padding: 0 28px; font-size: 1rem; margin: 8px 0 14px; }
.btn-marigold:hover { box-shadow: 0 20px 36px -12px rgba(255,182,39,.9); transform: translateY(-2px); }
.cp-end .ask { font-size: .86rem; margin: 0; }
.cp-end .ask a { color: #fff; }
.cp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 26px 16px 110px; color: var(--ink-3); font-size: .8rem; }
.cp-foot a { color: var(--ink-2); }

/* ---------- Phone: neeche chipka CTA ---------- */
.cp-sticky {
	position: fixed; z-index: 20; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 10px 10px 18px; border-radius: 22px; color: #fff;
	background: rgba(30,27,75,.92); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: 0 20px 40px -16px rgba(30,27,75,.7);
	transform: translateY(140%); transition: transform .5s var(--ease-spring);
}
.cp-sticky.show { transform: none; }
.cp-sticky div { min-width: 0; line-height: 1.25; }
.cp-sticky b { display: block; font-family: var(--display); font-size: 1rem; }
.cp-sticky span { display: block; font-size: .74rem; color: #CFCBEF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-sticky .btn { --b: var(--marigold); color: var(--night); min-height: 44px; padding: 0 16px; flex: 0 0 auto; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 760px) {
	.cp-top { padding: 22px 32px; }
	.cp-hero { padding: 128px 24px 190px; }
	.cp-aura span:nth-child(1) { width: 480px; height: 480px; }
	.cp-aura span:nth-child(2) { width: 420px; height: 420px; }
	.trial-days { gap: 8px; }
	.trial-days li { font-size: 1.1rem; border-radius: 14px; }

	.cp-plans { margin-top: -140px; }
	.cp-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 1080px; margin: 0 auto; padding: 0 24px 24px; gap: 18px; align-items: stretch; }
	.pcard, .pcard.is-active { transform: none; opacity: 1; }
	.pcard.is-star { transform: translateY(-14px); }
	.pcard:hover { transform: translateY(-6px); }
	.pcard.is-star:hover { transform: translateY(-20px); }
	.dots { display: none; }

	.seg { display: none; }
	.cp-sub { display: none; }
	.tbl { overflow: visible; }
	.tbl thead { display: table-header-group; }
	.tbl thead th {
		position: sticky; top: 0; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		border-top: 0; border-bottom: 1px solid var(--line); padding: 18px 16px 14px; text-align: center; vertical-align: bottom;
	}
	.tbl thead th:first-child { border-radius: 22px 0 0 0; }
	.tbl thead th:last-child { border-radius: 0 22px 0 0; }
	.th-name { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
	.th-price { display: block; color: var(--ink-3); font-size: .8rem; margin-bottom: 8px; }
	.tbl thead a { display: inline-block; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--night); background: var(--porcelain); padding: 6px 12px; border-radius: 99px; transition: background .2s; }
	.tbl thead a:hover { background: var(--lilac); }
	.tbl thead th[data-col="pro"] a { background: var(--night); color: #fff; }
	.tbl td { width: 150px; }
	.tbl td[data-col="pro"], .tbl thead th[data-col="pro"] { background-color: rgba(255,182,39,.07); }
	.tbl thead th[data-col="pro"] { background: rgba(255,248,230,.95); }
	.tbl tbody tr:not(.grp):hover th, .tbl tbody tr:not(.grp):hover td { background-color: rgba(220,215,245,.25); }
	.tbl th, .tbl td { padding: 14px 20px; }
	.tbl tr.grp th { padding: 22px 20px 10px; }

	.faq { max-width: 760px; }
	.cp-faq h2 { max-width: 760px; }
	.cp-end { max-width: 1032px; margin: 64px auto 0; padding: 56px 24px; }
	.cp-foot { padding-bottom: 32px; }
	.cp-sticky { display: none; }
}

@media (min-width: 760px) and (hover: hover) {
	.pcard { transition: transform .5s var(--ease-spring), box-shadow .4s; }
}

/* ---------- Kam motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.cp-aura span, .pcard.is-star, .cp-ready .pcard { animation: none !important; }
	.trial-days li::before, .trial-days li::after, .cycle i, .seg i, .dots button, .cp-sticky, .pcard { transition: none !important; }
	.faq-a { animation: none !important; }
	.tbl.swap tbody td > * { animation: none !important; }
}
