:root {
  --ink: #16202e;
  --ink-2: #4a5566;
  --muted: #7a8494;
  --bg: #fbf8f3;
  --panel: #ffffff;
  --line: #e7e0d4;
  --wood: #e9d9bd;
  --wood-2: #d9c29b;
  --navy: #1b2d4f;
  --accent: #e2552b;
  --accent-ink: #b8401c;
  --slow: #2f7d6d;
  --fast: #e2552b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 46, .06), 0 4px 16px rgba(22, 32, 46, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 Barlow, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Barlow Condensed", Barlow, sans-serif; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 64px; min-height: 60vh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.count { font-family: Barlow, sans-serif; font-size: .5em; font-weight: 600; color: var(--muted); vertical-align: middle; background: var(--wood); padding: .15em .6em; border-radius: 99px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.note { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.empty { padding: 32px; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Header */
.site-top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-top .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font: 700 1.6rem "Barlow Condensed", sans-serif; display: flex; align-items: center; gap: 8px; }
.logo b { color: #ffb38f; font-weight: 800; }
.logo-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--accent); box-shadow: inset -6px -6px 0 rgba(0,0,0,.18); }
.site-top nav { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.site-top nav a { color: #d8e0ee; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.site-top nav a:hover, .site-top nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.top-search { margin-left: auto; }
.top-search input { width: 260px; max-width: 100%; padding: 8px 12px; border-radius: 8px; border: 0; font: inherit; }
@media (max-width: 760px) {
  .site-top .wrap { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .top-search { margin-left: 0; width: 100%; }
  .top-search input { width: 100%; }
  .site-top nav a { padding: 6px 8px; font-size: .95rem; }
  .filters { padding: 12px; }
}
body { overflow-x: hidden; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: 700 1rem Barlow, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-ink); }
.btn-big { padding: 14px 24px; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-board { position: relative; aspect-ratio: 1 / 1.6; max-height: 360px; margin: 0 auto; background: linear-gradient(160deg, var(--wood), var(--wood-2)); border-radius: 10px; box-shadow: var(--shadow), inset 0 0 0 10px #c9ab7c; transform: perspective(700px) rotateX(28deg); }
.hero-board .hole { position: absolute; left: 50%; top: 18%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); background: #2a2016; border-radius: 50%; }
.hero-board .bag { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 4px; box-shadow: inset -5px -5px 0 rgba(0,0,0,.15); }
.hero-board .b1 { background: var(--accent); left: 20%; top: 46%; transform: rotate(-12deg); }
.hero-board .b2 { background: var(--navy); left: 52%; top: 58%; transform: rotate(18deg); }
.hero-board .b3 { background: var(--accent); left: 36%; top: 30%; transform: rotate(4deg); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-board { display: none; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 2em; }
.section-head h2 { margin: 0; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; text-decoration: none; font-weight: 600; color: var(--ink); }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--navy); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .12s; }
.card:hover { transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #f1ebe1; overflow: hidden; }
.card-flag { position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(22, 32, 46, .85); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.card-tagline { margin: 0; font-size: .92rem; color: var(--ink-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; min-height: 160px; background: repeating-linear-gradient(45deg, #f1ebe1, #f1ebe1 10px, #ece4d6 10px, #ece4d6 20px); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.card-brand a { color: inherit; text-decoration: none; }
.card-meta { display: flex; justify-content: space-between; font-size: .95rem; margin-top: auto; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge.badge-carpet { background: #f6e7d4; color: #7a4a12; }
.badge.badge-noncarpet { background: #eeeaf6; color: #4b3d7a; }
.badge.badge-aco { background: #e8edf7; color: #22427a; }
.badge { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #e6efe9; color: #1d5a4c; padding: 3px 8px; border-radius: 6px; }
.why { margin: 4px 0 0; padding-left: 18px; font-size: .92rem; color: var(--ink-2); }
.pick { position: relative; }
.pick-n { position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--navy); color: #fff; font: 800 1.2rem "Barlow Condensed", sans-serif; padding: 2px 10px; border-radius: 8px; }

/* Speed bar */
.speed { font-size: .85rem; }
.speed-none { color: var(--muted); }
.speed-track { position: relative; height: 8px; background: #eee7db; border-radius: 99px; margin: 6px 6px 4px; }
.speed-span { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--slow), var(--fast)); opacity: .35; border-radius: 99px; }
.speed-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.speed-dot.slow { background: var(--slow); }
.speed-dot.fast { background: var(--fast); }
.speed-labels { display: flex; justify-content: space-between; color: var(--ink-2); }
.speed-labels .k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.k.slow { background: var(--slow); } .k.fast { background: var(--fast); }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.filters input, .filters select { font: inherit; font-size: 1rem; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; min-width: 0; }
.filters .pair { display: flex; gap: 6px; }
.filter-actions { display: flex; align-items: end; gap: 12px; }

/* Bag page */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.bag-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.bag-img { border-radius: var(--radius); overflow: hidden; background: #f1ebe1; aspect-ratio: 1; }
.bag-img img { width: 100%; height: 100%; object-fit: cover; }
.bag-summary { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bag-summary h1 { margin: 0; }
.bag-summary .speed { width: 100%; max-width: 420px; font-size: 1rem; }
.price { font-size: 1.2rem; margin: 0; }
.discount { background: #fff3d6; border: 1px dashed #e0b44a; padding: 8px 12px; border-radius: 8px; margin: 0; }
.bag-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .bag-hero, .bag-cols { grid-template-columns: 1fr; gap: 16px; } }
.specs { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--ink-2); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.prose { margin-top: 16px; color: var(--ink-2); }
.similar { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.similar li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.similar small { color: var(--muted); grid-column: 1; }
.similar .match { font-weight: 700; color: var(--slow); }
.similar .vs { grid-column: 2; grid-row: 2; font-size: .9rem; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 12px; }
.design { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.design img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.design-title { font-size: .85rem; padding: 8px 10px 0; line-height: 1.3; }
.design-meta { font-size: .85rem; color: var(--muted); padding: 4px 10px 10px; margin-top: auto; }
.oos { color: #b3261e; }

/* Quiz */
.quiz { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.q { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px; margin: 0; }
.q legend { max-width: 100%; font: 700 1.35rem "Barlow Condensed", sans-serif; padding: 0 6px; display: flex; align-items: center; gap: 10px; }
.qn { background: var(--navy); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1rem; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 12px; height: 100%; }
.opt small { color: var(--muted); }
.opt input:checked + span { border-color: var(--accent); background: #fff4ef; }
.opt input:focus-visible + span { outline: 3px solid #9cc0ff; outline-offset: 2px; }

/* Compare */
.vs-word { color: var(--accent); font-size: .7em; }
.compare { overflow-x: auto; }
.compare-table th:first-child { width: 22%; }
.compare-table td { width: 39%; }

/* Brands */
.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.brand-row { display: flex; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; }
.brand-row span { color: var(--muted); }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 24px 0 40px; }

/* ACL vs ACO */
.org-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.org-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.org-card h2 { margin-top: 0; }
.org-card h2 .muted { font: 500 1rem Barlow, sans-serif; }
.org-card .big { font-size: 1.15rem; }
.org-card .big b { font: 800 1.6rem "Barlow Condensed", sans-serif; color: var(--navy); }
.table-wrap { overflow-x: auto; }

/* Homepage: org search links + "bags like" form */
.org-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; max-width: 520px; }
.org-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; text-decoration: none; border: 2px solid; background: var(--panel); }
.org-link b { font: 700 1.25rem "Barlow Condensed", sans-serif; }
.org-link span { font-size: .85rem; color: var(--ink-2); }
.org-acl { border-color: #b9d6c9; color: #1d5a4c; } .org-acl:hover { background: #e6efe9; }
.org-aco { border-color: #c3d0e8; color: #22427a; } .org-aco:hover { background: #e8edf7; }
.hero-like { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.hero-like h2 { margin: 0 0 4px; }
.like-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.like-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.like-form select { font: inherit; font-size: 1rem; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.like-form .btn { align-self: flex-start; }
.panel-like { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 24px; max-width: 520px; }
.panel-like h2 { margin-top: 0; }
.like-source { max-width: 420px; margin-bottom: 8px; }
.vs-link { display: block; font-size: .9rem; margin: 6px 4px 0; }
@media (max-width: 760px) { .org-links { grid-template-columns: 1fr; } }
.site-foot a { color: var(--ink-2); }
