:root {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --paper: #111113;
  --white: #1c1c1f;
  --line: #3a3a3e;
  --soft-text: #c5c5ca;
  --soft-surface: #252529;
  --subtle-line: #39393d;
  --blue: #1677ed;
  --green: #17804b;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --white: #fff;
  --line: #d2d2d7;
  --soft-text: #48484a;
  --soft-surface: #f5f5f7;
  --subtle-line: #ebebed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.announcement { min-height: 34px; display: grid; place-items: center; padding: 6px 16px; color: #f5f5f7; background: #1d1d1f; text-align: center; font-size: 12px; letter-spacing: .015em; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 15px var(--display); letter-spacing: -.045em; }
.brand-mark { display: grid; width: 27px; height: 27px; place-items: center; color: var(--paper); background: var(--ink); border-radius: 9px; font-size: 15px; letter-spacing: -.08em; }
.brand-light { color: var(--muted); font-weight: 500; }
.nav-link { color: var(--soft-text); font-size: 13px; text-decoration: none; transition: color .2s; }
.theme-toggle { gap: 7px; min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 12px; }
.theme-toggle:hover { background: var(--soft-surface); color: var(--ink); }
.nav-link:hover, a:hover { color: var(--blue); }
main { overflow: hidden; }
.hero { position: relative; width: min(1120px, calc(100% - 48px)); min-height: 665px; margin: 0 auto; padding: 74px 0 46px; text-align: center; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.eyebrow { margin: 0 0 15px; color: var(--muted); font: 700 11px/1.4 var(--font); letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.055em; }
h1 { margin-bottom: 17px; font-size: clamp(47px, 7vw, 82px); line-height: 1.02; font-weight: 700; }
h1 span { color: var(--muted); }
.hero-lead { width: min(570px, 100%); margin: 0 auto; color: var(--soft-text); font-size: 18px; line-height: 1.5; }
.device-art { position: relative; width: 280px; height: 132px; margin: 23px auto -7px; opacity: .95; }
.device-screen { position: absolute; top: 0; left: 45px; width: 190px; height: 116px; overflow: hidden; border: 5px solid #414147; border-bottom-width: 7px; border-radius: 12px 12px 4px 4px; background: linear-gradient(145deg, #d6e2f2, #b9c7dc 48%, #e9eaf0); box-shadow: 0 12px 24px rgb(29 29 31 / 12%); }
.screen-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 46%, rgb(255 255 255 / 88%), transparent 52%), linear-gradient(135deg, transparent 35%, rgb(131 158 196 / 35%)); }
.device-base { position: absolute; z-index: 1; bottom: 8px; left: 18px; width: 244px; height: 13px; border-radius: 0 0 55% 55%; background: linear-gradient(#c9c9ce, #94949b); clip-path: polygon(11% 0, 89% 0, 100% 74%, 96% 100%, 4% 100%, 0 74%); }
.device-base::after { content: ''; position: absolute; top: 0; left: 41%; width: 18%; height: 4px; border-radius: 0 0 5px 5px; background: #818188; }
.device-shadow { position: absolute; bottom: 1px; left: 38px; width: 205px; height: 7px; border-radius: 50%; background: rgb(29 29 31 / 12%); filter: blur(5px); }
.search-panel { position: relative; z-index: 2; width: min(780px, 100%); margin: 0 auto; padding: 22px 26px 17px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--white) 92%, transparent); box-shadow: 0 18px 50px rgb(0 0 0 / 20%); backdrop-filter: blur(16px); text-align: left; }
.search-panel label { display: block; margin: 0 0 9px 4px; font-size: 13px; font-weight: 700; }
.input-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 5px 6px 5px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.input-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(22 119 237 / 12%); }
.link-icon { color: #85858b; font-size: 20px; transform: rotate(45deg); }
.input-row input { min-width: 0; flex: 1; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 15px var(--font); }
.input-row input::placeholder { color: #96969b; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 46px; border: 0; border-radius: 11px; padding: 0 18px; background: var(--blue); color: white; cursor: pointer; font: 600 14px var(--font); white-space: nowrap; transition: background .2s, transform .2s, opacity .2s; }
button:hover { background: #0867d8; transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .75; }
.form-note { display: flex; align-items: center; gap: 8px; margin: 11px 4px 0; color: var(--muted); font-size: 12px; }
.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #41a36e; }
.platform-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.loading-state { display: flex; align-items: center; gap: 15px; margin-top: 17px; padding: 15px; overflow: hidden; border-radius: 13px; background: var(--soft-surface); animation: reveal .45s ease both; }
.loading-state[hidden] { display: none; }
.loader-orbit { position: relative; flex: 0 0 38px; width: 38px; height: 38px; border: 2px solid #d8e8fc; border-radius: 50%; animation: orbit-spin 2.6s linear infinite; }
.loader-orbit i { position: absolute; top: -3px; left: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 9px rgb(22 119 237 / 50%); }
.loader-orbit i:nth-child(2) { top: 25px; left: 3px; width: 5px; height: 5px; background: #71a9ee; }
.loader-orbit i:nth-child(3) { top: 18px; left: 29px; width: 4px; height: 4px; background: #9cc8fa; }
.loading-copy { display: grid; gap: 2px; min-width: 0; }
.loading-copy strong { font-size: 13px; }
.loading-copy span { color: var(--muted); font-size: 12px; }
.loading-track { position: relative; align-self: end; height: 3px; flex: 1; margin: 0 0 3px 10px; overflow: hidden; border-radius: 4px; background: #d9d9df; }
.loading-track i { position: absolute; inset: 0 auto 0 -35%; width: 35%; border-radius: inherit; background: var(--blue); animation: progress 1.5s ease-in-out infinite; }
.error-panel { display: flex; align-items: flex-start; gap: 14px; width: min(780px, calc(100% - 48px)); margin: -5px auto 32px; padding: 20px; border: 1px solid #f1c7c4; border-radius: 16px; background: #fff8f7; }
.error-symbol { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 50%; background: #c7352b; color: white; font-weight: 700; }
.error-panel strong { font-size: 14px; }
.error-panel p { margin: 3px 0 0; color: #7b4b47; font-size: 13px; }
.results-section { width: min(980px, calc(100% - 48px)); margin: 42px auto 100px; scroll-margin-top: 25px; animation: reveal .6s ease both; }
.section-heading { margin: 0 auto 28px; text-align: center; }
.section-heading h2 { margin: 0 0 9px; font-size: clamp(34px, 5vw, 50px); line-height: 1.1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.detected-issues { margin: 0 0 18px; padding: 18px 21px; border: 1px solid #f0b7b5; border-left: 5px solid #d93025; border-radius: 15px; background: #fff0ef; color: #76231f; box-shadow: 0 7px 22px rgb(143 29 25 / 7%); }
.issues-title { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.issues-icon { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #cf2e25; color: white; font-weight: 800; }
.detected-issues ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; margin: 9px 0 0; padding: 0 0 0 34px; }
.detected-issues li { padding-left: 2px; font-size: 13px; font-weight: 600; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-card, .wide-card { border: 1px solid rgb(210 210 215 / 75%); border-radius: 19px; padding: 25px; background: var(--white); box-shadow: 0 8px 28px rgb(29 29 31 / 3%); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.status-pill, .count-badge { padding: 5px 9px; border-radius: 999px; background: var(--soft-surface); color: var(--soft-text); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.result-card h3, .wide-card h3 { margin: 20px 0 6px; font-size: 23px; line-height: 1.25; }
.model-name { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.price-big { margin: 0 0 18px; font: 700 39px/1.1 var(--display); letter-spacing: -.06em; }
.price-big small, .market-range small { font: 500 .45em var(--font); letter-spacing: -.02em; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; padding: 16px 0; border-top: 1px solid var(--subtle-line); border-bottom: 1px solid var(--subtle-line); }
.spec-grid div { display: grid; gap: 3px; }
.spec-grid span { color: var(--muted); font-size: 11px; }
.spec-grid strong { font-size: 13px; font-weight: 600; }
.source-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.market-card { background: #1d1d1f; color: white; }
.market-card .card-topline { color: #a1a1a6; }
.market-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #4a4a4d; border-radius: 50%; color: white; font-size: 14px; }
.market-range { margin-top: 24px; font: 700 clamp(38px, 5vw, 54px)/1.1 var(--display); letter-spacing: -.065em; }
.market-range small { color: #a1a1a6; }
.market-empty { font-size: 26px; letter-spacing: -.04em; }
.deal-recommendation { margin: 15px 0 20px; padding: 13px 14px; border: 1px solid; border-radius: 12px; }
.deal-recommendation strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .045em; }
.deal-recommendation p { margin: 0; font-size: 12px; line-height: 1.5; }
.deal-negative { border-color: rgb(255 112 105 / 42%); background: rgb(208 47 39 / 17%); color: #ffd0cd; }
.deal-negative strong { color: #ff9a93; }
.deal-caution { border-color: rgb(255 190 92 / 42%); background: rgb(220 137 31 / 13%); color: #ffe5bd; }
.deal-caution strong { color: #ffd083; }
.deal-positive { border-color: rgb(95 201 139 / 38%); background: rgb(34 139 84 / 15%); color: #d2f3df; }
.deal-positive strong { color: #83dda8; }
.deal-neutral { border-color: rgb(179 179 185 / 35%); background: rgb(150 150 160 / 12%); color: #e1e1e5; }
.deal-neutral strong { color: #c6c6cc; }
.range-label { margin: 6px 0 0; color: #a1a1a6; font-size: 12px; }
.market-summary { min-height: 78px; margin: 20px 0; color: #d2d2d7; font-size: 13px; }
.condition-impact { margin: -7px 0 18px; padding: 11px 12px; border: 1px solid rgb(244 115 109 / 30%); border-radius: 10px; background: rgb(208 47 39 / 13%); color: #ffd4d1; font-size: 12px; }
.condition-impact strong { color: #ffaaa4; }
.margin-warning { margin: 12px 0 0; padding: 10px 11px; border-radius: 9px; background: rgb(208 47 39 / 13%); color: #ffc6c2; font-size: 11px; }
.margin-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid #414145; }
.margin-box div { display: grid; gap: 4px; }
.margin-box span { color: #a1a1a6; font-size: 11px; }
.margin-box strong { font: 600 16px var(--display); }
.disclaimer { margin: 12px 0 0; color: #a1a1a6; font-size: 10px; }
.wide-card { margin-top: 18px; padding: 26px 29px; }
.wide-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wide-heading .eyebrow { margin-bottom: 8px; }
.wide-heading h3 { margin: 0; }
.count-badge { flex: 0 0 auto; }
.section-caption { margin: 9px 0 15px; color: var(--muted); font-size: 12px; }
.comps, .risk-list, .sources-panel ul { margin: 0; padding: 0; list-style: none; }
.comps li { border-top: 1px solid var(--subtle-line); }
.comps a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 2px; color: var(--ink); text-decoration: none; font-size: 13px; transition: color .2s; }
.comps a:hover { color: var(--blue); }
.comp-price { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.risk-card { background: var(--white); }
.risk-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #e7f5ec; color: var(--green); font-weight: 700; }
.risk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; margin-top: 17px; }
.risk-list li { position: relative; padding: 11px 0 11px 21px; border-top: 1px solid var(--subtle-line); color: var(--soft-text); font-size: 13px; }
.risk-list li::before { content: '•'; position: absolute; left: 4px; color: #d58c32; font-weight: 900; }
.cost-note { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.sources-panel { margin-top: 16px; border-bottom: 1px solid var(--line); color: var(--soft-text); font-size: 13px; }
.sources-panel summary { padding: 14px 4px; cursor: pointer; font-weight: 600; }
.sources-panel ul { display: grid; gap: 9px; padding: 0 4px 16px; }
.sources-panel a { color: var(--blue); text-decoration: none; }
.how-section { padding: 78px 24px 87px; background: var(--white); }
.how-section .section-heading { margin-bottom: 36px; }
.how-section .section-heading h2 { font-size: clamp(35px, 5vw, 52px); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: min(980px, 100%); margin: 0 auto; }
.steps-grid article { min-height: 155px; padding: 22px 23px; border-radius: 16px; background: var(--paper); }
.step-number { color: var(--blue); font: 700 11px var(--font); letter-spacing: .1em; }
.steps-grid h3 { margin: 17px 0 6px; font-size: 18px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; color: var(--muted); font-size: 11px; }
footer .brand { color: var(--ink); font-size: 13px; }
footer .brand-mark { width: 24px; height: 24px; font-size: 13px; }
.seller-messages { background: var(--white); }
.beta-badge { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgb(240 171 69 / 35%); border-radius: 999px; background: rgb(240 171 69 / 12%); color: #f0b34e; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.message-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.message-option { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--subtle-line); border-radius: 13px; background: var(--paper); }
.message-option-heading h4 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.seller-message-text { width: 100%; min-height: 150px; resize: vertical; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--soft-text); font: 12px/1.55 var(--font); }
.copy-button { align-self: flex-start; min-height: 36px; padding: 0 12px; font-size: 12px; }
.copy-status { min-height: 18px; margin: 9px 0 0; color: var(--green); font-size: 12px; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes progress { 0% { left: -35%; } 100% { left: 110%; } }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 56px; padding-bottom: 55px; }
  .device-art { margin-top: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .market-summary { min-height: auto; }
  .risk-list { grid-template-columns: 1fr; }
  .detected-issues ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .announcement { font-size: 10px; }
  .topbar, footer { width: calc(100% - 32px); }
  .topbar { height: 56px; }
  .brand { font-size: 13px; }
  .nav-link { font-size: 12px; }
  .theme-toggle { min-height: 32px; padding: 0 9px; font-size: 11px; }
  .hero, .results-section { width: calc(100% - 32px); }
  .hero { padding-top: 46px; }
  h1 { font-size: clamp(43px, 12vw, 62px); }
  .hero-lead { font-size: 15px; }
  .device-art { transform: scale(.88); transform-origin: top center; height: 117px; margin-bottom: -12px; }
  .search-panel { padding: 17px 15px 14px; border-radius: 16px; }
  .input-row { flex-wrap: wrap; padding: 8px; gap: 6px; }
  .input-row input { flex-basis: calc(100% - 40px); font-size: 13px; }
  .input-row button { flex: 1 1 100%; }
  .form-note { align-items: flex-start; font-size: 11px; }
  .loading-track { display: none; }
  .loading-copy span { font-size: 11px; }
  .platform-note { font-size: 10px; }
  .error-panel { width: calc(100% - 32px); }
  .results-section { margin-top: 27px; margin-bottom: 65px; }
  .result-card, .wide-card { padding: 20px; border-radius: 16px; }
  .spec-grid { gap: 13px 10px; }
  .spec-grid strong { font-size: 12px; }
  .market-range { font-size: 43px; }
  .wide-heading h3 { font-size: 19px; }
  .message-grid { grid-template-columns: 1fr; }
  .seller-message-text { min-height: 110px; }
  .comps a { align-items: flex-start; font-size: 12px; }
  .comp-price { font-size: 12px; }
  .how-section { padding: 60px 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 11px; }
  .steps-grid article { min-height: auto; padding: 17px 19px; }
  .steps-grid h3 { margin-top: 9px; }
  footer { min-height: 74px; flex-wrap: wrap; padding: 15px 0; }
  footer > span { max-width: 190px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
