:root {
  --ink: #161d2d;
  --muted: #697184;
  --line: #e7e9ef;
  --soft: #f7f8fc;
  --primary: #6842e8;
  --primary-soft: #f0edff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { min-width: 320px; margin: 0; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.price-header { position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; background: rgba(247,245,255,.94); border-bottom: 1px solid #e8e3fb; backdrop-filter: blur(16px); }
.price-brand { width: fit-content; display: flex; align-items: center; gap: 11px; }
.price-brand img { width: 40px; height: 40px; }
.price-brand strong { font-size: 22px; }
.price-header nav { display: flex; align-items: center; gap: 4px; }
.price-header nav a { padding: 10px 16px; color: #32394a; border-radius: 6px; font-size: 15px; }
.price-header nav a:hover, .price-header nav a.active { color: var(--primary); background: rgba(104,66,232,.08); }
.price-login { justify-self: end; padding: 10px 23px; color: #fff; background: var(--primary); border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(104,66,232,.2); }
.price-login:hover { background: #5733d2; }

main { overflow: hidden; }
.price-hero { position: relative; min-height: 350px; padding: 76px max(28px, calc((100vw - 1180px) / 2)) 66px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; background: #f1f1ff; }
.price-hero::before, .price-hero::after { content: ""; position: absolute; pointer-events: none; }
.price-hero::before { top: 0; right: 9%; width: 340px; height: 100%; background: rgba(87,119,224,.08); clip-path: polygon(34% 0, 100% 0, 70% 100%, 0 100%); }
.price-hero::after { left: 0; right: 0; bottom: 0; height: 1px; background: #e1def0; }
.price-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.price-eyebrow { margin: 0 0 15px; color: var(--primary); font-size: 13px; font-weight: 800; }
.price-hero h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; letter-spacing: 0; }
.price-hero-copy > p:last-child { max-width: 700px; margin: 24px 0 0; color: #4f586b; font-size: 18px; line-height: 1.8; }
.price-summary { position: relative; z-index: 1; min-width: 360px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.92); border-radius: 8px; box-shadow: 0 18px 44px rgba(45,43,93,.08); backdrop-filter: blur(12px); }
.price-summary div { min-height: 112px; padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(102,106,135,.14); }
.price-summary div:last-child { border-right: 0; }
.price-summary strong { font-size: 24px; }
.price-summary span { margin-top: 7px; color: #778094; font-size: 12px; white-space: nowrap; }

.price-center { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 74px; }
.price-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.price-search { position: relative; width: min(520px, 100%); }
.price-search > span { position: absolute; top: 15px; left: 16px; width: 15px; height: 15px; border: 1.8px solid #747c8d; border-radius: 50%; }
.price-search > span::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 1.8px; background: #747c8d; transform: rotate(45deg); }
.price-search input { width: 100%; height: 48px; padding: 0 46px 0 45px; color: var(--ink); background: #fff; border: 1px solid #dce0e8; border-radius: 7px; outline: none; }
.price-search input:focus { border-color: #9c8be9; box-shadow: 0 0 0 4px rgba(104,66,232,.08); }
.price-search input::-webkit-search-cancel-button { display: none; }
.price-search button { position: absolute; top: 7px; right: 8px; width: 34px; height: 34px; display: none; place-items: center; color: #7a8292; background: transparent; border: 0; border-radius: 50%; font-size: 21px; }
.price-search button.visible { display: grid; }
.price-search button:hover { background: #f0f1f5; }
.price-signals { display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: #7b8392; font-size: 12px; }
.price-signals span { white-space: nowrap; }
.price-signals span:first-child { color: #2e7b5a; }
.price-signals i { width: 7px; height: 7px; margin-right: 7px; display: inline-block; background: #35a875; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53,168,117,.1); }

.filter-block { margin-top: 28px; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 14px; }
.filter-label { padding-top: 9px; color: #8a91a0; font-size: 12px; font-weight: 700; }
.segmented, .vendor-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.segmented button, .vendor-filters button { min-height: 38px; padding: 0 16px; color: #555e70; background: #fff; border: 1px solid #dfe3ea; border-radius: 6px; font-size: 13px; }
.segmented button:hover, .vendor-filters button:hover { color: var(--primary); border-color: #b9aff0; }
.segmented button.active, .vendor-filters button.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.vendor-filters button { display: inline-flex; align-items: center; gap: 8px; }
.vendor-filters img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }

.result-head { margin-top: 58px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.result-head h2 { margin: 0; font-size: 30px; letter-spacing: 0; }
.result-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.result-head > span { color: #7d8595; font-size: 13px; }
.price-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid #e2e5eb; border-radius: 8px; box-shadow: 0 12px 34px rgba(28,35,51,.05); }
.price-table { width: 100%; min-width: 940px; border-collapse: collapse; background: #fff; text-align: left; }
.price-table th { height: 52px; padding: 0 18px; color: #70798a; background: #f6f7fa; border-bottom: 1px solid #e0e3e9; font-size: 12px; }
.price-table td { padding: 18px; border-bottom: 1px solid #eceef2; vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: #fbfaff; }
.vendor-cell { width: 150px; background: #fcfcfe; vertical-align: top !important; }
.vendor-name { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.vendor-name img { width: 28px; height: 28px; object-fit: contain; border-radius: 5px; }
.model-cell { min-width: 255px; }
.model-cell strong { display: block; font-size: 14px; }
.model-cell code { margin-top: 5px; display: block; color: #8a91a0; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.tiered-price-note { margin-top: 7px; color: #58647a; font-size: 11px; line-height: 1.55; white-space: nowrap; }
.context-cell { color: #596273; font-size: 13px; }
.price-cell { min-width: 124px; }
.price-cell strong { font-size: 16px; }
.price-cell span { margin-left: 3px; color: #8991a0; font-size: 11px; }
.feature-cell { min-width: 220px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-list span { padding: 4px 8px; color: #625c8a; background: #f1effc; border-radius: 4px; font-size: 10px; }
.loading-row td { height: 190px; color: #7b8391; text-align: center; font-size: 14px; }
.loading-row span { width: 18px; height: 18px; margin: 0 10px -4px 0; display: inline-block; border: 2px solid #d9d5f7; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.price-empty { padding: 80px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.price-empty strong { font-size: 18px; }
.price-empty p { color: var(--muted); font-size: 14px; }
.price-empty button { margin-top: 8px; padding: 9px 16px; color: var(--primary); background: #fff; border: 1px solid #bfb6ef; border-radius: 6px; }
.hidden { display: none !important; }
.price-notes { margin-top: 32px; padding: 24px 26px; background: #f8f9fc; border: 1px solid #e9ebf0; border-radius: 8px; }
.price-notes h3 { margin: 0; font-size: 16px; }
.price-notes > div { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.price-notes p { margin: 0; color: #6e7686; font-size: 12px; line-height: 1.7; }
.price-notes p strong { margin-right: 8px; color: #333b4b; }

.price-cta { padding: 62px max(28px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff; background: #29283a; }
.price-cta h2 { margin: 0; font-size: 32px; }
.price-cta p:not(.price-eyebrow) { margin: 12px 0 0; color: #c9c7d5; }
.price-cta .price-eyebrow { color: #a997ff; }
.price-cta > div:last-child { display: flex; gap: 10px; }
.price-cta a { min-width: 132px; padding: 13px 20px; border: 1px solid #656274; border-radius: 6px; text-align: center; font-size: 14px; font-weight: 700; }
.price-cta a.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.price-cta a:hover { border-color: #a997ff; }

.price-footer { padding: 32px max(28px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #8a91a0; background: #fff; border-top: 1px solid var(--line); font-size: 12px; }
.price-footer > div { display: flex; align-items: center; gap: 12px; }
.price-footer img { width: 30px; height: 30px; }
.price-footer strong { color: #323a49; font-size: 16px; }
.price-footer a:hover { color: var(--primary); }

@media (max-width: 920px) {
  .price-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .price-header nav { display: none; }
  .price-hero { grid-template-columns: 1fr; align-items: start; gap: 38px; padding-top: 58px; }
  .price-summary { width: 100%; min-width: 0; }
  .price-toolbar { align-items: flex-start; flex-direction: column; }
  .price-signals { justify-content: flex-start; flex-wrap: wrap; }
  .price-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .price-header { height: 66px; }
  .price-brand img { width: 34px; height: 34px; }
  .price-brand strong { font-size: 19px; }
  .price-login { padding: 9px 18px; }
  .price-hero { min-height: 0; padding: 48px 18px 46px; }
  .price-hero h1 { font-size: 39px; }
  .price-hero-copy > p:last-child { font-size: 15px; }
  .price-summary { grid-template-columns: 1fr; }
  .price-summary div { min-height: 76px; padding: 15px 18px; border-right: 0; border-bottom: 1px solid rgba(102,106,135,.14); }
  .price-summary div:last-child { border-bottom: 0; }
  .price-center { width: calc(100% - 32px); padding: 46px 0 54px; }
  .price-search { width: 100%; }
  .price-signals { gap: 9px 16px; }
  .filter-block { grid-template-columns: 1fr; gap: 8px; }
  .filter-label { padding-top: 0; }
  .segmented, .vendor-filters { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar, .vendor-filters::-webkit-scrollbar { display: none; }
  .segmented button, .vendor-filters button { flex: 0 0 auto; }
  .result-head { margin-top: 42px; align-items: flex-start; flex-direction: column; }
  .result-head h2 { font-size: 26px; }
  .price-notes > div { grid-template-columns: 1fr; }
  .price-cta { padding: 48px 18px; }
  .price-cta h2 { font-size: 27px; }
  .price-cta > div:last-child { width: 100%; flex-direction: column; }
  .price-cta a { width: 100%; }
  .price-footer { padding: 28px 18px; align-items: flex-start; flex-direction: column; }
  .price-footer > div:last-child { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
