:root {
  color-scheme: light;
  --page: #f6f3ed;
  --page-deep: #efeae0;
  --surface: #fffdf9;
  --surface-soft: #fbf8f2;
  --ink: #20211e;
  --ink-soft: #4c4b46;
  --muted: #79756c;
  --line: #e7e0d4;
  --line-strong: #d8d0c2;
  --accent: #ff5a36;
  --accent-strong: #e64722;
  --accent-soft: #fff0e9;
  --green: #1b7651;
  --green-soft: #e8f7ee;
  --amber: #91620b;
  --amber-soft: #fff4d5;
  --dark: #202620;
  --dark-soft: #303730;
  --cream: #fff8e9;
  --shadow: 0 16px 50px rgba(73, 55, 29, 0.08);
  --shadow-soft: 0 8px 24px rgba(73, 55, 29, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 196, 148, 0.2), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(153, 199, 147, 0.17), transparent 26rem),
    var(--page);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.ambient-one {
  top: 130px;
  left: max(2vw, calc(50% - 620px));
  width: 76px;
  height: 76px;
  border: 1px solid rgba(228, 131, 69, 0.18);
  transform: rotate(18deg);
}

.ambient-two {
  top: 280px;
  right: max(3vw, calc(50% - 620px));
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 24px -18px 0 rgba(255, 90, 54, 0.15);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--accent);
  border-radius: 12px;
  place-items: center;
  box-shadow: 0 7px 16px rgba(255, 90, 54, 0.22);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-mark.small {
  width: 27px;
  height: 27px;
  border-radius: 9px;
}

.brand-mark.small svg {
  width: 17px;
  height: 17px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-label {
  padding-left: 10px;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.data-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.data-status i {
  width: 7px;
  height: 7px;
  background: #58a277;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(88, 162, 119, 0.12);
}

.data-status[data-connected="false"] i,
.data-status[data-connected="pending"] i,
.data-status[data-connected="stale"] i {
  background: #c98b4b;
  box-shadow: 0 0 0 4px rgba(201, 139, 75, 0.12);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.025em;
  backdrop-filter: blur(8px);
}

.eyebrow-icon {
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  place-items: center;
}

.eyebrow-icon svg {
  width: 15px;
  height: 15px;
}

.hero h1 {
  max-width: 780px;
  margin: 26px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero h1 em {
  position: relative;
  color: var(--accent);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  right: 1%;
  bottom: -7px;
  left: 1%;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg width='420' height='10' viewBox='0 0 420 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c92-6 240-7 416-2' fill='none' stroke='%23ff5a36' stroke-width='3' stroke-linecap='round' opacity='.34'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.hero-description {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.check-form {
  display: flex;
  width: min(820px, 100%);
  padding: 7px;
  background: var(--surface);
  border: 1px solid rgba(215, 204, 188, 0.82);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(64, 46, 22, 0.1);
}

.check-input-shell {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: 0 6px 0 12px;
}

.input-link-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-right: 11px;
  color: #a19a8f;
}

.check-input-shell textarea {
  width: 100%;
  min-height: 46px;
  max-height: 116px;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 22px;
}

.check-input-shell textarea::placeholder {
  color: #a09a90;
}

.clear-input {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: var(--page);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.clear-input svg {
  width: 14px;
  height: 14px;
}

.primary-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(255, 90, 54, 0.22);
  cursor: pointer;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(255, 90, 54, 0.28);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.primary-button svg {
  width: 18px;
  height: 18px;
}

.input-hint {
  margin: 10px 0 0;
  color: #999287;
  font-size: 12px;
}

.quick-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.quick-examples button {
  padding: 6px 11px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.quick-examples button:hover {
  color: var(--accent-strong);
  border-color: #f0b7a8;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(820px, 100%);
  margin: -30px auto 34px;
  padding: 12px 15px;
  color: #9a311e;
  background: #fff0eb;
  border: 1px solid #f3c7bb;
  border-radius: 14px;
  font-size: 13px;
}

.error-banner svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.loading-state {
  max-width: 860px;
  margin: -16px auto 52px;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.loading-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.loading-copy strong {
  display: block;
  font-size: 15px;
}

.loading-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.loading-pulse {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  animation: loading-pulse 1.4s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.25);
    transform: scale(0.9);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(255, 90, 54, 0);
    transform: scale(1);
  }
}

.loading-lines {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.loading-lines i {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, #eee8de 20%, #f8f4ed 48%, #eee8de 78%);
  background-size: 240% 100%;
  border-radius: 999px;
  animation: shimmer 1.5s linear infinite;
}

.loading-lines i:nth-child(2) {
  width: 74%;
}

.loading-lines i:nth-child(3) {
  width: 46%;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.results {
  padding-top: 6px;
  animation: results-in 360ms ease both;
}

@keyframes results-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-heading,
.recent-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.results-heading h2,
.recent-heading h2,
.dialog-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-badge {
  padding: 5px 10px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #f0dca5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.demo-badge[hidden] {
  display: none;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}

.text-button:hover {
  color: var(--accent-strong);
}

.text-button.muted {
  color: var(--muted);
  font-size: 12px;
}

.text-button svg {
  width: 17px;
  height: 17px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.product-art {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.74), transparent 42%),
    #f1d6be;
  border-radius: 20px;
  place-items: center;
}

.product-art[data-category="家电"],
.product-art[data-category="小家电"] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), transparent 42%),
    #dfe8d8;
}

.product-art[data-category="箱包"] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), transparent 42%),
    #d9e3ea;
}

.product-art[data-category="家居"] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), transparent 42%),
    #eadfd1;
}

.product-art span {
  position: relative;
  z-index: 1;
  font-size: 39px;
  line-height: 1;
  filter: drop-shadow(0 6px 7px rgba(67, 48, 26, 0.12));
}

.product-orbit {
  position: absolute;
  right: -16px;
  bottom: -19px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(67, 48, 26, 0.14);
  border-radius: 50%;
}

.product-art::after {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: 11px 8px 0 -2px rgba(255, 255, 255, 0.38);
  content: "";
}

.product-copy {
  min-width: 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.platform-badge {
  padding: 2px 7px;
  color: #a33221;
  background: #fff0eb;
  border-radius: 6px;
  font-weight: 600;
}

.platform-badge[data-platform="jd"] {
  color: #a52a22;
  background: #feeceb;
}

.platform-badge[data-platform="tmall"] {
  color: #9c261f;
  background: #fce8e6;
}

.platform-badge[data-platform="pinduoduo"] {
  color: #a51f27;
  background: #ffeaec;
}

.product-copy h3 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-copy > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.external-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 9px 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
}

.external-button:hover {
  color: var(--accent-strong);
  border-color: #efc3b8;
}

.external-button svg {
  width: 15px;
  height: 15px;
}

.variant-panel {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.variant-panel.is-loading {
  pointer-events: none;
}

.variant-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.variant-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.variant-icon {
  display: grid;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 11px;
  place-items: center;
}

.variant-icon svg {
  width: 19px;
  height: 19px;
}

.variant-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.variant-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.variant-current {
  max-width: 36%;
  overflow: hidden;
  padding: 5px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-option {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.variant-option:hover {
  color: var(--ink);
  border-color: #e4aa99;
}

.variant-option[aria-checked="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #ef9f89;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 54, 0.08);
  font-weight: 600;
}

.variant-option::before {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--line-strong);
  border-radius: 50%;
  content: "";
}

.variant-option[aria-checked="true"]::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
}

.variant-loading {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
  font-size: 10px;
}

.variant-loading i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: variant-spin 700ms linear infinite;
}

@keyframes variant-spin {
  to {
    transform: rotate(360deg);
  }
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.55fr);
  gap: 14px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 27px 26px 23px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 178, 109, 0.22), transparent 45%),
    linear-gradient(150deg, #252b24, #1c211d 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 45px rgba(32, 38, 32, 0.2);
}

.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 248, 233, 0.66);
  font-size: 12px;
}

.verdict-badge {
  padding: 5px 9px;
  color: #c8f3d4;
  background: rgba(74, 155, 103, 0.19);
  border: 1px solid rgba(112, 194, 139, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.verdict-badge[data-tone="steady"] {
  color: #ffe3a2;
  background: rgba(220, 168, 67, 0.16);
  border-color: rgba(236, 191, 102, 0.2);
}

.verdict-badge[data-tone="wait"] {
  color: #ffd2c6;
  background: rgba(255, 90, 54, 0.17);
  border-color: rgba(255, 139, 111, 0.22);
}

.current-price {
  display: flex;
  align-items: baseline;
  margin-top: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.current-price .currency {
  margin-right: 4px;
  color: #ffb180;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
}

#current-price {
  font-size: clamp(58px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.08;
}

.price-cents {
  color: rgba(255, 248, 233, 0.8);
  font-size: 24px;
}

.price-gap {
  margin: 3px 0 auto;
  color: rgba(255, 248, 233, 0.59);
  font-size: 12px;
}

.price-basis {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.offer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.offer-copy,
.offer-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.offer-copy strong,
.offer-action strong {
  color: var(--ink);
}

.offer-copy span,
.offer-action span {
  color: var(--muted);
  font-size: 0.78rem;
}

.offer-action a {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 520px) {
  .offer-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .offer-action {
    justify-content: space-between;
  }
}

.extreme-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.extreme-item {
  min-width: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
}

.extreme-item > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 248, 233, 0.5);
  font-size: 9px;
}

.extreme-item > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.extreme-item strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.extreme-item small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: rgba(255, 248, 233, 0.36);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extreme-low > span i {
  background: #ffb06f;
  box-shadow: 0 0 0 3px rgba(255, 176, 111, 0.12);
}

.extreme-high > span i {
  background: #e9a798;
  box-shadow: 0 0 0 3px rgba(233, 167, 152, 0.1);
}

.extreme-low strong {
  color: #ffc389;
}

.extreme-high strong {
  color: #f0c3b7;
}

.price-range {
  position: relative;
  height: 5px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #f6b365, #ff7556);
  border-radius: inherit;
}

.range-marker {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--cream);
  border: 2px solid #f6b365;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.marker-low {
  left: 0;
}

.marker-current {
  box-shadow: 0 0 0 4px rgba(255, 131, 83, 0.16);
}

.marker-high {
  right: 0;
  left: auto;
  transform: translate(50%, -50%);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  color: rgba(255, 248, 233, 0.48);
  font-size: 10px;
}

.range-labels b {
  display: block;
  margin-top: 1px;
  color: rgba(255, 248, 233, 0.81);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.range-labels span:first-child b {
  color: #ffc389;
}

.range-labels span:last-child b {
  color: #efc0b4;
}

.range-labels span:nth-child(2) {
  text-align: center;
}

.range-labels span:last-child {
  text-align: right;
}

.summary-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-footer > div span {
  display: block;
  color: rgba(255, 248, 233, 0.46);
  font-size: 10px;
}

.summary-footer > div strong {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.alert-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 0 13px;
  color: #332d21;
  background: #ffd193;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.alert-button:hover {
  background: #ffc173;
}

.alert-button svg {
  width: 15px;
  height: 15px;
}

.chart-card {
  min-width: 0;
  padding: 24px 24px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-header h3,
.card-heading h3,
.advice-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.chart-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.range-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.range-tabs button {
  min-width: 46px;
  height: 28px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
}

.range-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(53, 40, 20, 0.08);
  font-weight: 600;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line,
.legend-average {
  display: inline-block;
  width: 17px;
  height: 2px;
  background: var(--accent);
}

.legend-average {
  height: 1px;
  background: repeating-linear-gradient(90deg, #aaa397 0 4px, transparent 4px 7px);
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 258px;
  margin-top: 4px;
}

.price-chart {
  width: 100%;
  height: 258px;
  overflow: visible;
}

.price-chart text {
  fill: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
}

.price-chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.price-chart .average-line {
  stroke: #9b958a;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.price-chart .price-area {
  fill: url("#chart-area-gradient");
}

.price-chart .price-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-chart .low-dot-halo {
  fill: rgba(255, 90, 54, 0.13);
}

.price-chart .low-dot {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2.5;
}

.price-chart .high-dot-halo {
  fill: rgba(130, 89, 76, 0.12);
}

.price-chart .high-dot {
  fill: var(--surface);
  stroke: #c06f59;
  stroke-width: 2;
}

.price-chart .low-label-bg {
  fill: var(--accent);
}

.price-chart .high-label-bg {
  fill: #8a5548;
}

.price-chart .low-label,
.price-chart .high-label {
  font-size: 10px;
  font-weight: 600;
}

.price-chart .low-label {
  fill: #fff8e9;
}

.price-chart .high-label {
  fill: #fff8e9;
}

.price-chart .crosshair {
  stroke: #b9b1a5;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.price-chart .hover-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

.price-chart .chart-overlay {
  fill: transparent;
  cursor: crosshair;
  touch-action: pan-y;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-width: 112px;
  padding: 8px 10px;
  color: var(--cream);
  background: var(--dark);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(32, 33, 30, 0.18);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.chart-tooltip span {
  color: rgba(255, 248, 233, 0.56);
  font-size: 9px;
}

.chart-tooltip strong {
  margin-top: 1px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  color: #9a948a;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.chart-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-key i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.chart-key i + i {
  margin-left: 5px;
}

.chart-key .low-key {
  background: var(--accent);
}

.chart-key .high-key {
  background: #c06f59;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.insight-card,
.advice-card {
  padding: 25px 26px;
  border-radius: var(--radius-lg);
}

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

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.trend-icon {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  place-items: center;
}

.trend-icon svg {
  width: 20px;
  height: 20px;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.insight-item {
  min-height: 116px;
  padding: 15px;
  background: var(--surface-soft);
  border: 1px solid #eee8dd;
  border-radius: 15px;
}

.insight-item .insight-number {
  display: block;
  margin-bottom: 8px;
  color: #a49d91;
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
}

.insight-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.insight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.advice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 171, 122, 0.3), transparent 14rem),
    #fff1e7;
  border: 1px solid #f2d9c9;
}

.advice-card::after {
  position: absolute;
  right: -30px;
  bottom: -57px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(158, 83, 47, 0.13);
  border-radius: 50%;
  content: "";
}

.advice-icon {
  display: grid;
  width: 41px;
  height: 41px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  place-items: center;
}

.advice-icon svg {
  width: 22px;
  height: 22px;
}

.advice-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
}

.advice-card p {
  margin: 8px 0 18px;
  color: #775b4d;
  font-size: 11px;
  line-height: 1.75;
}

.advice-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: auto;
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.advice-link svg {
  width: 15px;
  height: 15px;
}

.recent-section {
  margin-top: 60px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.recent-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 15px;
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.recent-item:hover {
  background: var(--surface);
  border-color: #d9cfbf;
}

.recent-emoji {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--page);
  border-radius: 13px;
  font-size: 22px;
  place-items: center;
}

.recent-copy {
  min-width: 0;
}

.recent-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.recent-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #aaa398;
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 72px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.trust-item > span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  place-items: center;
}

.trust-item > span svg {
  width: 19px;
  height: 19px;
}

.trust-item strong {
  font-size: 12px;
  font-weight: 600;
}

.trust-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  padding: 24px 0 38px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer p a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(44, 32, 18, 0.28);
}

.app-dialog::backdrop {
  background: rgba(31, 31, 27, 0.48);
  backdrop-filter: blur(4px);
}

.dialog-content {
  position: relative;
  padding: 32px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: var(--page);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

.dialog-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 15px;
  place-items: center;
}

.dialog-icon.alert {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.dialog-icon.help {
  color: var(--green);
  background: var(--green-soft);
}

.dialog-icon svg {
  width: 23px;
  height: 23px;
}

.dialog-content > p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.dialog-content > p strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.dialog-content label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
}

.price-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.09);
}

.price-input-wrap span {
  color: var(--muted);
  font-size: 16px;
}

.price-input-wrap input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.dialog-note {
  padding: 10px 12px;
  margin: 12px 0 20px !important;
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 10px !important;
}

.dialog-submit {
  width: 100%;
  min-height: 48px;
}

.help-list {
  display: grid;
  gap: 17px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
  counter-reset: steps;
}

.help-list li {
  position: relative;
  display: grid;
  padding-left: 43px;
  counter-increment: steps;
}

.help-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 29px;
  height: 29px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 9px;
  content: counter(steps);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}

.help-list b {
  display: block;
  font-size: 12px;
}

.help-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.demo-explainer {
  padding: 14px;
  background: var(--amber-soft);
  border: 1px solid #f0dca8;
  border-radius: 13px;
}

.demo-explainer strong {
  color: var(--amber);
  font-size: 11px;
}

.demo-explainer p {
  margin: 4px 0 0;
  color: #7d6638;
  font-size: 10px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--cream);
  background: var(--dark);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(31, 31, 27, 0.24);
  font-size: 12px;
  transform: translateX(-50%);
  animation: toast-in 200ms ease both;
}

.toast svg {
  width: 17px;
  height: 17px;
  color: #97d2ad;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .price-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 360px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 68px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-label,
  .data-status {
    display: none;
  }

  .hero {
    align-items: stretch;
    padding: 52px 0 50px;
    text-align: left;
  }

  .hero .eyebrow {
    align-self: flex-start;
  }

  .hero h1 {
    margin: 21px 0 16px;
    font-size: clamp(38px, 11.4vw, 58px);
    letter-spacing: -0.055em;
  }

  .hero-description {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .check-form {
    flex-direction: column;
    padding: 7px;
    border-radius: 20px;
  }

  .check-input-shell {
    padding: 0 8px;
  }

  .check-input-shell textarea {
    min-height: 50px;
    font-size: 16px;
  }

  .primary-button {
    width: 100%;
    min-height: 48px;
    margin-top: 3px;
  }

  .input-hint {
    margin-top: 9px;
    font-size: 10px;
  }

  .quick-examples {
    justify-content: flex-start;
  }

  .error-banner,
  .loading-state {
    margin-top: -20px;
  }

  .results-heading {
    align-items: center;
  }

  .results-heading h2,
  .recent-heading h2 {
    font-size: 23px;
  }

  .demo-badge {
    padding: 4px 8px;
    font-size: 9px;
  }

  .product-card {
    align-items: center;
    padding: 13px;
    border-radius: 20px;
  }

  .product-art {
    width: 63px;
    height: 63px;
    border-radius: 17px;
  }

  .product-art span {
    font-size: 31px;
  }

  .product-copy h3 {
    font-size: 15px;
  }

  .product-copy > p {
    font-size: 10px;
  }

  .product-meta span:nth-child(4),
  .product-meta span:nth-child(5) {
    display: none;
  }

  .external-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    justify-content: center;
  }

  .external-button svg {
    width: 16px;
    height: 16px;
  }

  .variant-panel {
    padding: 17px 15px;
    border-radius: 20px;
  }

  .variant-heading {
    gap: 10px;
    margin-bottom: 13px;
  }

  .variant-title-wrap {
    gap: 9px;
  }

  .variant-icon {
    width: 33px;
    height: 33px;
  }

  .variant-heading p {
    max-width: 210px;
  }

  .variant-current {
    max-width: 32%;
  }

  .variant-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variant-option {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    line-height: 1.35;
  }

  .variant-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .summary-card {
    min-height: 415px;
    padding: 23px 21px 20px;
    border-radius: 25px;
  }

  #current-price {
    font-size: 65px;
  }

  .current-price .currency {
    font-size: 23px;
  }

  .price-cents {
    font-size: 21px;
  }

  .price-range {
    margin-top: 23px;
  }

  .extreme-highlights {
    margin-top: 18px;
  }

  .extreme-item {
    padding: 9px 10px;
  }

  .extreme-item strong {
    font-size: 16px;
  }

  .chart-card {
    padding: 20px 14px 14px;
    border-radius: 25px;
  }

  .chart-header {
    flex-direction: column;
    gap: 12px;
  }

  .range-tabs {
    width: 100%;
  }

  .range-tabs button {
    flex: 1;
  }

  .chart-wrap,
  .price-chart {
    min-height: 235px;
    height: 235px;
  }

  .chart-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .insight-card,
  .advice-card {
    padding: 21px;
    border-radius: 22px;
  }

  .insight-list {
    grid-template-columns: 1fr;
  }

  .insight-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    min-height: 0;
    padding: 13px;
  }

  .insight-number {
    grid-row: 1 / span 2;
    margin: 0 !important;
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }

  .recent-section {
    margin-top: 42px;
  }

  .trust-section {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 50px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .dialog-content {
    padding: 26px 22px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero h1 br {
    display: none;
  }

  .results-actions .text-button {
    font-size: 0;
  }

  .results-actions .text-button svg {
    width: 20px;
    height: 20px;
  }

  .product-copy h3 {
    max-width: 160px;
  }

  .summary-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #171916;
    --page-deep: #1e211d;
    --surface: #222520;
    --surface-soft: #282c26;
    --ink: #f4efe4;
    --ink-soft: #d1cbc0;
    --muted: #99978e;
    --line: #353a32;
    --line-strong: #474c43;
    --accent-soft: #3b271e;
    --green-soft: #1d3428;
    --amber-soft: #332b17;
    --cream: #fff8e9;
    --shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.14);
  }

  body {
    background:
      radial-gradient(circle at 8% 12%, rgba(177, 88, 51, 0.1), transparent 24rem),
      radial-gradient(circle at 90% 8%, rgba(75, 119, 80, 0.1), transparent 26rem),
      var(--page);
  }

  .eyebrow,
  .quick-examples button {
    background: rgba(34, 37, 32, 0.76);
  }

  .product-card,
  .recent-item {
    background: rgba(34, 37, 32, 0.76);
  }

  .advice-card {
    background:
      radial-gradient(circle at 100% 0%, rgba(164, 86, 52, 0.18), transparent 14rem),
      #2d2520;
    border-color: #46362d;
  }

  .advice-card p {
    color: #c0aa9c;
  }

  .insight-item {
    border-color: #343830;
  }

  .price-chart .average-line {
    stroke: #77766e;
  }
}
