/* PriceTrail theme – layout, typography, header/footer, blog.
   Colour tokens (--ptr-*) are defined by the tracker plugin stylesheet and
   duplicated here as fallbacks so the theme also works on its own. */
:root {
	--ptr-accent: #0f766e; --ptr-accent-ink: #fff; --ptr-bg: #f6f7f9; --ptr-surface: #fff;
	--ptr-text: #0f172a; --ptr-muted: #64748b; --ptr-border: #e2e8f0; --ptr-radius: 14px;
	--ptt-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ptr-bg); color: var(--ptr-text); font: 16px/1.55 var(--ptt-font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ptr-accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--ptr-accent); outline-offset: 2px; border-radius: 4px; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 10000; background: var(--ptr-surface); padding: 10px 14px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Header */
.ptt-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ptr-surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ptr-border); }
.ptt-header__in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.ptt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ptr-text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.ptt-logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ptr-accent); color: var(--ptr-accent-ink); }
.custom-logo { max-height: 40px; width: auto; }
.ptt-nav { margin-left: auto; }
.ptt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ptt-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ptr-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.ptt-nav a:hover, .ptt-nav .current-menu-item > a { background: var(--ptr-bg); color: var(--ptr-accent); }
.ptt-nav .sub-menu { display: none; }
.ptt-cats { position: relative; }
.ptt-cats__btn { display: block; padding: 8px 12px; border-radius: 8px; border: 0; background: none; color: var(--ptr-text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.ptt-cats__btn:hover, .ptt-cats.is-open .ptt-cats__btn { background: var(--ptr-bg); color: var(--ptr-accent); }
.ptt-nav .ptt-mega { position: absolute; top: 100%; left: 0; z-index: 50; min-width: 280px; max-height: 70vh; overflow: auto; background: var(--ptr-surface); border: 1px solid var(--ptr-border); border-radius: 12px; box-shadow: var(--ptr-shadow); padding: 6px; flex-direction: column; gap: 0; }
.ptt-cats:hover .ptt-mega, .ptt-cats:focus-within .ptt-mega, .ptt-cats.is-open .ptt-mega { display: flex; }
.ptt-mega a { font-weight: 500; font-size: 14px; padding: 8px 10px; }
.ptt-tools { display: flex; gap: 4px; }
.ptt-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ptr-text); cursor: pointer; }
.ptt-iconbtn:hover { background: var(--ptr-bg); }
.ptt-menu-btn { display: none; }
.ptt-searchbar { border-top: 1px solid var(--ptr-border); }
.ptt-searchbar .ptt-header__in { display: block; padding: 12px 16px; }
@media (max-width: 900px) {
	.ptt-menu-btn { display: grid; }
	.ptt-tools { margin-left: auto; }
	.ptt-nav { position: fixed; inset: 61px 0 auto 0; background: var(--ptr-surface); border-bottom: 1px solid var(--ptr-border); padding: 8px 16px 16px; display: none; max-height: calc(100vh - 61px); overflow: auto; }
	.ptt-nav.is-open { display: block; }
	.ptt-nav ul { flex-direction: column; }
	.ptt-nav a { padding: 12px; }
}

/* Hero */
.ptt-hero { text-align: center; padding: 56px 0 36px; background:
	radial-gradient(1200px 400px at 50% -120px, color-mix(in srgb, var(--ptr-accent) 18%, transparent), transparent 70%); }
.ptt-hero .ptr-wrap { padding-bottom: 0; }
.ptt-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ptr-accent); margin: 0 0 12px; }
.ptt-eyebrow .ptt-ico { width: 16px; height: 16px; }
.ptt-hero h1 { font-size: clamp(30px, 5.2vw, 54px); max-width: 860px; margin: 0 auto 14px; letter-spacing: -.03em; }
.ptt-hero__sub { max-width: 660px; margin: 0 auto 26px; color: var(--ptr-muted); font-size: clamp(16px, 2vw, 18px); }
.ptt-stores { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.ptt-stores a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--ptr-surface); border: 1px solid var(--ptr-border); color: var(--ptr-text); text-decoration: none; font-size: 13px; font-weight: 600; }
.ptt-stores a:hover { border-color: var(--ptr-accent); }
.ptt-stores i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 560px) { .ptt-hero { padding-top: 32px; } .ptr-search { flex-direction: column; border-radius: 18px; } .ptr-search button { width: 100%; padding: 12px; } }

/* Home sections */
.ptt-center { text-align: center; }
.ptt-steps ol { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.ptt-steps li { background: var(--ptr-surface); border: 1px solid var(--ptr-border); border-radius: var(--ptr-radius); padding: 22px; }
.ptt-steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--ptr-accent) 14%, transparent); color: var(--ptr-accent); }
.ptt-steps h3 { margin: 14px 0 6px; font-size: 17px; }
.ptt-steps p { margin: 0; color: var(--ptr-muted); font-size: 15px; }
.ptt-split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ptt-split h2 { font-size: 20px; margin-top: 0; }
.ptt-community { background: linear-gradient(135deg, color-mix(in srgb, var(--ptr-accent) 12%, var(--ptr-surface)), var(--ptr-surface)); }
.ptr-faq h2 { margin-top: 0; }

/* Blog */
.ptt-posts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ptt-post__img { display: block; margin: -14px -14px 12px; border-radius: var(--ptr-radius) var(--ptr-radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.ptt-post__img img { width: 100%; height: 100%; object-fit: cover; }
.ptt-article { max-width: 780px; margin: 0 auto; }
.ptt-article h1 { font-size: clamp(28px, 4vw, 42px); }
.ptt-article__img { margin: 0 0 24px; }
.ptt-article__img img { border-radius: var(--ptr-radius); }
.ptt-content { font-size: 18px; line-height: 1.75; }
.ptt-content img { border-radius: 10px; }
.ptt-content pre { overflow: auto; background: var(--ptr-surface); padding: 14px; border-radius: 10px; }
.nav-links { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; }
.page-numbers { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--ptr-border); text-decoration: none; }
.page-numbers.current { background: var(--ptr-accent); color: var(--ptr-accent-ink); border-color: var(--ptr-accent); }
.ptt-comments { max-width: 780px; margin: 32px auto; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--ptr-border); border-radius: 8px; background: var(--ptr-surface); color: var(--ptr-text); }

/* Footer */
.ptt-footer { margin-top: 56px; background: var(--ptr-surface); border-top: 1px solid var(--ptr-border); font-size: 14px; }
.ptt-footer__in { max-width: 1200px; margin: 0 auto; padding: 40px 16px 24px; display: grid; gap: 28px; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ptt-footer__in { grid-template-columns: 1fr 1fr; } .ptt-footer__about { grid-column: 1 / -1; } }
.ptt-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ptr-muted); margin: 0 0 10px; }
.ptt-footer ul { list-style: none; margin: 0; padding: 0; }
.ptt-footer li { margin: 6px 0; }
.ptt-footer a { color: var(--ptr-text); text-decoration: none; }
.ptt-footer a:hover { color: var(--ptr-accent); }
.ptt-footer__about p { color: var(--ptr-muted); max-width: 380px; }
.ptt-social { display: flex; flex-wrap: wrap; gap: 12px; }
.ptt-footer__legal { max-width: 1200px; margin: 0 auto; padding: 16px 16px 28px; border-top: 1px solid var(--ptr-border); color: var(--ptr-muted); font-size: 12px; }

.ptt-footer__cats { columns: 1; }
@media (max-width: 900px) {
	.ptt-nav .ptt-mega { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; max-height: none; }
	.ptt-cats.is-open .ptt-mega { display: flex; }
	.ptt-cats:hover .ptt-mega { display: none; }
	.ptt-cats.is-open:hover .ptt-mega { display: flex; }
	.ptt-cats__btn { width: 100%; text-align: left; padding: 12px; }
}
@media (max-width: 640px) {
	.ptt-hero { padding-top: 28px; padding-bottom: 20px; }
	.ptt-stores { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.ptt-stores li { flex: none; }
	.ptt-nav a, .ptt-cats__btn { min-height: 44px; }
}
@media (max-width: 640px) {
	.ptt-hero { padding-top: 18px; padding-bottom: 14px; }
	.ptt-eyebrow { display: none; }
	.ptt-hero h1 { font-size: 26px; margin: 0 0 8px; }
	.ptt-hero__sub { font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.ptt-stores { margin-top: 12px; }
}
.ptt-footer__legalnav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; }
.ptt-footer__legalnav a { color: inherit; font-size: 13px; }
.ptt-footer__company { font-size: 13px; line-height: 1.6; }
.ptt-footer__company a { color: inherit; }

/* ---------- Home: live numbers ---------- */
.ptt-stats { list-style: none; margin: -28px auto 8px; padding: 14px 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; background: var(--ptr-surface); border: 1px solid var(--ptr-border); border-radius: var(--ptr-radius); box-shadow: var(--ptr-shadow); position: relative; z-index: 1; }
.ptt-stats li { flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 12px; border-left: 1px solid var(--ptr-border); }
.ptt-stats li:first-child { border-left: 0; }
.ptt-stats strong { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; color: var(--ptr-accent); font-variant-numeric: tabular-nums; }
.ptt-stats span { font-size: 13px; color: var(--ptr-muted); }
@media (max-width: 600px) { .ptt-stats { margin-top: -18px; } .ptt-stats li { flex: 1 1 45%; border-left: 0; } }

/* ---------- Home: "Deals under ₹" / "Min % off" tiles ---------- */
.ptt-tiers-wrap > h2 { margin-bottom: 4px; }
.ptt-tiers-wrap > p { margin: 0 0 18px; }
.ptt-tiers { --t: var(--ptr-accent); list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ptt-tiers--off { --t: var(--ptr-good); }
.ptt-tiers a { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 128px; padding: 20px 22px; border-radius: 18px; text-decoration: none; color: var(--ptr-text);
	background: radial-gradient(120% 90% at 50% 45%, var(--ptr-surface) 55%, color-mix(in srgb, var(--t) 22%, var(--ptr-surface)) 100%);
	border: 1px solid color-mix(in srgb, var(--t) 18%, var(--ptr-border)); box-shadow: var(--ptr-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.ptt-tiers a:hover, .ptt-tiers a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--t) 22%, transparent); }
.ptt-tiers__k { font-size: 15px; color: var(--ptr-muted); }
.ptt-tiers__v { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ptt-tiers__v small { font-size: .45em; font-weight: 700; letter-spacing: 0; }
.ptt-tiers__n { font-size: 13px; color: var(--ptr-muted); margin-top: auto; }
.ptt-tiers__go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: #fff; }
.ptt-tiers__go .ptt-ico { width: 22px; height: 22px; }
@media (max-width: 900px) { .ptt-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { .ptt-tiers a { min-height: 104px; padding: 14px; } .ptt-tiers__go { width: 36px; height: 36px; right: 12px; top: auto; bottom: 12px; transform: none; } .ptt-tiers__go .ptt-ico { width: 18px; height: 18px; } }

/* ---------- Home: how it works ---------- */
.ptt-how > h2 { margin-bottom: 4px; }
.ptt-how__steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ptt-how__steps li { position: relative; background: var(--ptr-surface); border: 1px solid var(--ptr-border); border-radius: var(--ptr-radius); padding: 22px 20px 20px; }
.ptt-how__n { position: absolute; top: 14px; right: 16px; font-size: 32px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--ptr-accent) 22%, transparent); }
.ptt-how__i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--ptr-accent) 14%, transparent); color: var(--ptr-accent); }
.ptt-how h3 { margin: 14px 0 6px; font-size: 17px; }
.ptt-how p { margin: 0; color: var(--ptr-muted); font-size: 15px; }
.ptt-how > p.ptt-center:last-child { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) { .ptt-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ptt-how__steps { grid-template-columns: 1fr; } }

/* ---------- Home: why trust ---------- */
.ptt-why ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.ptt-why li { padding: 20px; border-radius: var(--ptr-radius); background: color-mix(in srgb, var(--ptr-accent) 6%, var(--ptr-surface)); border: 1px solid var(--ptr-border); }
.ptt-why li > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ptr-accent); color: var(--ptr-accent-ink); }
.ptt-why h3 { margin: 12px 0 6px; font-size: 16px; }
.ptt-why p { margin: 0; color: var(--ptr-muted); font-size: 14.5px; }
.ptt-stats-wrap { padding-bottom: 0; }
.ptt-stats-wrap + .ptr-wrap { padding-top: 4px; }
.ptt-stats-wrap + .ptr-wrap > .ptr-section:first-child { margin-top: 24px; }
@media (max-width: 600px) {
	.ptt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; padding: 12px 6px; }
	.ptt-stats li { padding: 2px 6px; }
	.ptt-stats li:nth-child(even) { border-left: 1px solid var(--ptr-border); }
	.ptt-stats .ptt-stats__x { display: none; }
	.ptt-stats span { font-size: 12px; line-height: 1.3; }
}
.ptt-social--icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ptt-social--icons a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--ptr-text) 7%, transparent); color: var(--ptr-text); transition: background .15s ease, color .15s ease; }
.ptt-social--icons a:hover, .ptt-social--icons a:focus-visible { background: var(--ptr-accent); color: var(--ptr-accent-ink); }
