/* FretPrice: warm paper, ink, one rosewood accent, green for deals. */
:root {
  --bg: #f8f6f1; --surface: #ffffff; --sunk: #f1eee6; --ink: #17150f; --muted: #6e685c; --line: #e6e1d6;
  --accent: #a8401a; --accent-hover: #8c3412; --accent-ink: #ffffff; --accent-soft: #f6e7df;
  --deal: #1f7a46; --deal-soft: #e3f3e8; --new: #2a5f8f; --used: #a8401a;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23,21,15,.04), 0 4px 16px rgba(23,21,15,.05);
  --shadow-hover: 0 2px 4px rgba(23,21,15,.06), 0 10px 28px rgba(23,21,15,.09);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num, .price, .value { font-variant-numeric: tabular-nums; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(248,246,241,.88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display);
  font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo b { color: var(--accent); font-weight: 800; }
nav.top { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
nav.top a { text-decoration: none; color: var(--muted); }
nav.top a:hover { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 22px; font-weight: 700; margin: 44px 0 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

/* hero */
.hero { padding: 48px 0 8px; max-width: 760px; }
.hero p.lede { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 600px; }
.search { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 20px; box-shadow: var(--shadow); max-width: 640px; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--deal); font-weight: 700; margin-right: 6px; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; font: inherit;
  font-weight: 600; font-size: 15px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
button:hover, .btn:hover { background: var(--accent-hover); }
button:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.sm { padding: 7px 14px; font-size: 14px; }

/* instrument tabs + brand chips */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 28px 0 0; }
.filters .chips { margin: 0; }
.seg { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 4px; }
.seg button { background: transparent; color: var(--muted); padding: 7px 16px; font-size: 14px; }
.seg button:hover { background: transparent; color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
/* brand chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 0; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px;
  font-weight: 500; cursor: pointer; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--ink); background: var(--surface); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* section header */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 14px; }
.section-head h2 { margin: 0; }

/* model grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.model { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.model:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--sunk); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); }
.thumb .badge { position: absolute; top: 10px; left: 10px; }
.model .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.model .brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.model .name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.model .prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price-label { font-size: 12px; color: var(--muted); display: block; }
.price { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.price.empty { color: var(--line); }
.model .meta { font-size: 13px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--deal-soft); color: var(--deal); white-space: nowrap; }
.badge.solid { background: var(--deal); color: #fff; }
.save { color: var(--deal); font-weight: 600; }

/* deals strip */
.deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.deal { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; text-decoration: none; box-shadow: var(--shadow); }
.deal:hover { box-shadow: var(--shadow-hover); }
.deal img, .deal .ph { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--sunk); flex-shrink: 0; }
.deal .name { font-weight: 600; font-size: 15px; line-height: 1.25; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 56px 0 0; }
.how div { padding: 20px; border-radius: var(--radius); background: var(--sunk); }
.how b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.product-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.product-hero .photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.product-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .value { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 2px 0 4px; }
.stat .detail { font-size: 13px; color: var(--muted); }
.stat.wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat.wide .value { font-size: 22px; }
.stat .cta { margin-top: 12px; width: 100%; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.pic { width: 64px; padding-right: 0; }
td.pic img, td.pic span { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--sunk); display: block; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); text-transform: capitalize; }
.tag.new { background: #e4eef7; color: var(--new); }
.tag.used, .tag.b-stock, .tag.refurbished { background: var(--accent-soft); color: var(--used); }
.chart { width: 100%; height: auto; display: block; }
.show-sm, .show-sm-inline { display: none; }
.price-link { text-decoration: none; }
.price-link:hover strong { text-decoration: underline; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 6px; }
.watch { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; }
.watch input, .watch select { padding: 10px 14px; font: inherit; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); color: var(--ink); min-width: 0; }
.msg { font-size: 14px; margin-top: 8px; min-height: 1.4em; }
.msg.error { color: var(--accent); } .msg.ok { color: var(--deal); }
.alert-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: center; background: var(--ink); color: var(--bg);
  border: 0; }
.alert-box h2 { margin: 0 0 4px; color: var(--bg); }
.alert-box p { margin: 0; color: #bdb6a7; font-size: 15px; }
.alert-box .watch input, .alert-box .watch select { background: #2a2720; border-color: #3a362d; color: var(--bg); }

/* footer */
footer.site { margin: 72px 0 0; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site p { margin: 0; max-width: 560px; }
footer.site nav { display: flex; gap: 18px; }
footer.site a { color: var(--muted); text-decoration: none; } footer.site a:hover { color: var(--ink); }

.prose { max-width: 720px; padding-top: 40px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }

.skeleton { background: linear-gradient(90deg, var(--sunk), #ebe7dd, var(--sunk)); background-size: 200% 100%;
  animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  nav.top { display: none; }
  .hero { padding-top: 32px; }
  .how, .product-hero, .alert-box { grid-template-columns: 1fr; }
  .product-hero { gap: 20px; }
  .watch { grid-template-columns: 1fr 1fr; }
  .watch input[type=email] { grid-column: 1 / -1; }
  .hide-sm { display: none; }
  .show-sm { display: block; }
  .show-sm-inline { display: inline; }
  th, td { padding: 10px 6px; }
  .search { padding-left: 16px; }
  .search button { padding: 10px 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .model .body { padding: 10px 12px 12px; gap: 6px; }
  .model .name { font-size: 15px; }
  .model .meta { display: none; }
  .price { font-size: 16px; }
  .thumb .badge { top: 6px; left: 6px; font-size: 11px; padding: 3px 8px; }
}
