/* pricetrackr.in — static site, no JS (strict CSP) */
:root {
  --brand: #27b092; --brand-deep: #1b7f69; --brand-soft: #e6f6f1; --amber: #f5b301; --amber-soft: #fff6dd;
  --bg: #f6fbf8; --surface: #ffffff; --text: #14231e; --muted: #5b6f68; --line: #dfeae5;
  --shadow: 0 1px 2px rgba(16, 40, 32, .06), 0 10px 30px rgba(16, 40, 32, .08);
  --radius: 18px; --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #34c2a2; --brand-deep: #5fd6bb; --brand-soft: #143229; --amber: #ffc93d; --amber-soft: #2e2713;
    --bg: #0d1513; --surface: #15201d; --text: #e6efec; --muted: #9db0aa; --line: #263632;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #34c2a2; --brand-deep: #5fd6bb; --brand-soft: #143229; --amber: #ffc93d; --amber-soft: #2e2713;
  --bg: #0d1513; --surface: #15201d; --text: #e6efec; --muted: #9db0aa; --line: #263632;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand { gap: 8px; font: 700 21px/1 var(--font); letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand b { color: var(--brand); font-weight: 700; }
.nav { display: none; gap: 22px; margin-left: 12px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 860px) { .nav { display: flex; } }
.top .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top .link-alerts { display: none; }
@media (min-width: 560px) { .top .link-alerts { display: inline-flex; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--font); padding: 12px 18px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn--primary:hover { background: var(--brand-deep); }
:root[data-theme="dark"] .btn--primary, .btn--primary { color: #fff; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 16px 24px; font-size: 17px; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 28px; background: radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%), radial-gradient(800px 480px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .hero { padding: 72px 0 56px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); background: var(--brand-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; font-weight: 600; padding: 0; margin: 0; list-style: none; }
.proof li { display: inline-flex; align-items: center; gap: 6px; }
.proof svg { width: 16px; height: 16px; color: var(--brand); }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- stores strip ---------- */
.stores { padding: 18px 0 8px; }
.stores p { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 46px; padding: 0 14px; display: flex; align-items: center; }
.logos img { max-height: 24px; width: auto; max-width: 110px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 76px; }
.section { padding: 64px 0; }
.section-head { max-width: 40em; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.feature { display: grid; gap: 28px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
@media (min-width: 920px) { .feature { grid-template-columns: 1fr 1.25fr; gap: 56px; } .feature--flip .feature__text { order: 2; } }
.feature__text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.feature__text p { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327b092' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.shot { background: linear-gradient(140deg, var(--brand-soft), var(--amber-soft)); border-radius: 26px; padding: clamp(14px, 3vw, 32px); }
.shot img { border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 40, 32, .18); width: 100%; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.icon--amber { background: var(--amber-soft); color: #b07d00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon--amber { color: var(--amber); } }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- final CTA ---------- */
.final { text-align: center; background: linear-gradient(135deg, #1b7f69, #27b092 60%, #3cc4a4); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px) 20px; }
.final h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.final p { opacity: .9; font-size: 18px; max-width: 32em; margin: 0 auto 26px; }
.final .btn--primary { background: #fff; color: #14231e; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.final .btn--primary:hover { background: #f1fbf8; }

/* ---------- disclosure + footer ---------- */
.disclosure { background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: 14px; padding: 14px 18px; font-size: 14px; color: var(--text); }
.foot { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 22px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.foot nav a { color: var(--muted); }
.foot .brand { font-size: 18px; }
.foot .brand img { height: 26px; }

/* ---------- simple pages (welcome / goodbye / privacy) ---------- */
.page { padding: 48px 0 24px; }
.page .wrap { max-width: 860px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 48px); }
.panel h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.badge { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.badge svg { width: 34px; height: 34px; }
.howto { counter-reset: step; list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.howto li { position: relative; padding: 16px 18px 16px 62px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.howto li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.howto b { display: block; }
.howto span { color: var(--muted); font-size: 15px; }
.pin { display: flex; gap: 14px; align-items: center; background: var(--amber-soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 22px; font-size: 15px; }
.pin svg { width: 26px; height: 26px; flex-shrink: 0; color: #b07d00; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 22px; }
.reasons li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--bg); }
.legal h2 { font-size: 30px; margin-top: 0; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
@media (max-width: 479px) {
  .top .wrap { gap: 10px; }
  .top .actions { min-width: 0; }
  .top .actions .btn svg { display: none; }
  .top .brand img { height: 28px; }
}
.legal li { margin-bottom: 10px; }
.legal li i { color: var(--text); font-weight: 600; }
.btn--telegram { background: #229ed9; color: #fff; box-shadow: 0 6px 18px rgba(34, 158, 217, .3); }
.btn--telegram:hover { background: #1a87bb; }
.pin--ok { background: var(--brand-soft); }

/* ---------- product search ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.search { display: flex; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); margin: 0; }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 16px/1.4 var(--font); padding: 10px 12px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search .btn { flex-shrink: 0; }
@media (max-width: 520px) { .search { flex-direction: column; } .search .btn { width: 100%; } }
.check { padding: 8px 0 28px; }
.check__box { max-width: 820px; margin: 0 auto; text-align: center; background: linear-gradient(135deg, var(--brand-soft), var(--amber-soft)); border-radius: 26px; padding: clamp(22px, 4vw, 40px); }
.check__box h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; }
.check__box > p { color: var(--muted); }
.check__box .search { text-align: left; margin-top: 18px; }
.check__hint { font-size: 14px; margin: 14px 0 0; }
.search-panel h1 { margin-bottom: 18px; }
.notice { margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; padding: 16px 18px; }
.notice b { display: block; font-size: 17px; margin-bottom: 4px; }
.notice p { color: var(--muted); margin: 0; }
.notice .cta { margin: 14px 0 0; }

/* ---------- product page ---------- */
.pp { padding: 22px 0 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.pp-top { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .pp-top { grid-template-columns: 340px 1fr; gap: 36px; } }
.pp-img { background: #fff; border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.pp-img img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 859px) { .pp-img { max-width: 320px; margin: 0 auto; width: 100%; } }
.storechip { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin-bottom: 10px; }
.storechip img { height: 18px; width: auto; }
.pp-info h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.25; }
.pp-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 2px; }
.pp-price b { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; font: 700 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; }
.pill--save { background: var(--brand-soft); color: var(--brand-deep); }
.verdict { display: grid; gap: 2px; border-radius: 14px; padding: 14px 16px; margin: 14px 0 4px; border: 1px solid transparent; }
.verdict b { font-size: 17px; }
.verdict span { font-size: 15px; color: var(--muted); }
.verdict--great, .verdict--good { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.verdict--great b, .verdict--good b { color: var(--brand-deep); }
.verdict--fair { background: var(--bg); border-color: var(--line); }
.verdict--wait { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.verdict--wait b { color: #9a6b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict--wait b { color: var(--amber); } }
.pp-info .cta { margin: 18px 0 12px; }
.pp-info .disclosure { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-size: 22px; font-weight: 800; }
.stat--low b { color: var(--brand-deep); }
.stat--high b { color: #d0463b; }
.pp-chart { margin-bottom: 16px; }
.pp-chart__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pp-chart__head h2, .pp-grid h2, .pp-search h2 { font-size: 20px; margin: 0; }
.segs { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg { font: 700 13px/1 var(--font); color: var(--muted); padding: 8px 11px; border-radius: 8px; }
.seg:hover { text-decoration: none; color: var(--text); }
.seg.is-on { background: var(--surface); color: var(--brand-deep); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.chart-wrap { position: relative; }
.chart-wrap--narrow { display: none; }
@media (max-width: 599px) { .chart-wrap--wide { display: none; } .chart-wrap--narrow { display: block; } }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .ylab { fill: var(--muted); font-weight: 600; font-family: var(--font); text-anchor: end; }
.chart .xlab { fill: var(--muted); font-weight: 600; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.chart .avg { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .avglab { fill: #b07d00; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .now { fill: var(--brand); stroke: var(--surface); stroke-width: 2.5; }
.chart .hx { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hd { fill: var(--surface); stroke: var(--brand); stroke-width: 3; }
.chart [hidden] { display: none; }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 10px; padding: 7px 10px; font-size: 13px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.2); display: grid; }
.tip[hidden] { display: none; }
.tip b { font-size: 15px; }
.tip span { opacity: .8; }
.pp-grid { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 860px) { .pp-grid { grid-template-columns: 1fr 1fr; } }
.changes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.changes li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.changes li:last-child { border-bottom: 0; }
.changes .old { color: var(--muted); text-decoration: line-through; }
.changes .down { color: var(--brand-deep); font-weight: 700; }
.changes .up { color: #d0463b; font-weight: 700; }
.pp-alert h2 { margin-bottom: 6px !important; }
.pp-alert .cta { margin: 16px 0 0; }
.pp-search .search { margin-top: 14px; }
.hc-box { position: relative; }
.hc-box.is-hc .chart-wrap { display: none !important; }
.hc-host { height: 380px; }
@media (max-width: 599px) { .hc-host { height: 300px; } }

/* ---------- price chart (pt-chart.js on Chart.js) ---------- */
.ptc { display: flex; flex-direction: column; gap: 8px; }
.ptc-ranges { display: flex; flex-wrap: wrap; gap: 4px; }
.ptc-btn { font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--muted); background: var(--brand-soft); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; min-width: 38px; cursor: pointer; }
.ptc-btn:hover:not(:disabled) { color: var(--text); border-color: var(--brand); }
.ptc-btn.is-on { background: #27b092; border-color: #27b092; color: #fff; }
.ptc-btn:disabled { background: transparent; opacity: .45; cursor: default; }
.ptc-canvas { position: relative; flex: 1; min-height: 0; }
