@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap");

/* Sellscope design tokens. A retail shelf: stone paper, deep green ink, price-tag yellow for rankings and prices. */
:root {
    --paper: #f3f4f1;
    --panel: #ffffff;
    --ink: #15201b;
    --ink-2: #2e3a34;
    --muted: #5e6b64;
    --line: #d9ddd6;
    --line-soft: #e7eae5;
    --green: #1f5f4a;
    --green-dark: #164837;
    --green-tint: #e3efe9;
    --tag: #ffcf3f;
    --tag-dark: #d9a800;
    --shelf: #2a2f2b;
    --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
    --sans: "Figtree", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --control: 48px;
    --shadow: 0 1px 0 rgba(21, 32, 27, .05), 0 18px 36px -22px rgba(21, 32, 27, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--tag); color: var(--ink); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* ---------- navigation ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); letter-spacing: -.03em; color: var(--ink); text-decoration: none; flex: none; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { background: var(--panel); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--green); background: var(--green-tint); }

/* ---------- type ---------- */
.eyebrow { display: inline-block; font: 700 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: .98; letter-spacing: -.035em; margin: 14px 0 18px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 6px; font-weight: 600; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 36em; margin: 0; }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control); padding: 0 22px; border-radius: 999px;
    font: 700 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { border-color: #a9b3ac; }
.btn.is-soon { background: transparent; color: var(--muted); border: 1.5px dashed #a9b3ac; cursor: default; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.tool-input { width: 100%; min-height: var(--control); font: 500 17px var(--sans); color: var(--ink); padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); }
.tool-input::placeholder { color: #98a39c; }
.tool-input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.tool { display: flex; align-items: center; gap: 6px; margin: 28px 0 10px; padding: 6px; background: var(--panel); border: 1.5px solid var(--line);
    border-radius: 999px; box-shadow: var(--shadow); max-width: 680px; transition: border-color .15s, box-shadow .15s; }
.tool:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint), var(--shadow); }
.tool .tool-input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; font-size: 18px; min-height: 52px; padding-left: 18px; }
.tool .btn { min-height: 52px; }

/* ---------- home: the shelf ---------- */
.home-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 64px 0 88px; }
.shelf-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 0; box-shadow: var(--shadow); }
.shelf-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); }
.shelf-head b { color: var(--ink); font: 700 15px var(--mono); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; margin-top: 26px; padding: 0 6px; position: relative; }
.shelf::after { content: ""; position: absolute; left: -22px; right: -22px; bottom: -14px; height: 14px; background: var(--shelf); border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 18px -8px rgba(21, 32, 27, .5); }
.item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 10px 10px 3px 3px; padding: 14px 10px 12px; color: #fff; min-height: 150px; }
.item:nth-child(1) { min-height: 196px; background: #20352c; }
.item:nth-child(2) { min-height: 150px; background: #3b5a4c; }
.item:nth-child(3) { min-height: 174px; background: #6b4b2e; }
.item:nth-child(4) { min-height: 138px; background: #8a6a45; }
.item .name { font: 600 13px/1.25 var(--sans); }
.item .price { font: 700 13px var(--mono); opacity: .85; margin-top: 6px; }
.tag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: var(--tag); color: var(--ink); font: 700 14px/1 var(--mono);
    padding: 7px 10px 7px 16px; border-radius: 4px 8px 8px 4px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--panel); }
.shelf-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 32px -22px 0; padding: 14px 22px; border-top: 1px solid var(--line-soft);
    font-size: 13px; color: var(--muted); background: #fafbf9; border-radius: 0 0 22px 22px; }

/* ---------- product rows ---------- */
.section { padding: 80px 0; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.products { margin-top: 32px; border-bottom: 1px solid var(--line); }
.product { display: grid; grid-template-columns: 64px 1fr 240px; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.product img, .product .glyph { width: 56px; height: 56px; border-radius: 14px; }
.product .glyph { display: grid; place-items: center; background: var(--green-tint); color: var(--green); font: 800 24px var(--display); }
.product h3 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.product p { margin: 0; color: var(--muted); }
.product .buy { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: right; }
.product .amount { font: 700 18px var(--mono); }
.product .amount small { font: 400 13px var(--sans); color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 36px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.feature .k { font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 10px; }

/* Store Inspector landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 56px 0 80px; }
.shot { border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(21, 32, 27, .35), 0 0 0 1px var(--line); width: 100%; max-width: 400px; justify-self: end; background: var(--panel); }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; max-width: 820px; }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.plan.pro { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan ul { padding-left: 20px; margin: 18px 0 24px; flex: 1; }
.plan li { margin: 6px 0; }
.plan .btn + .btn { margin-top: 8px; }
.price { font: 700 42px/1 var(--mono); letter-spacing: -.04em; margin: 12px 0 4px; }
.price small { font-size: 15px; color: var(--muted); font-family: var(--sans); font-weight: 400; letter-spacing: 0; }

.compare { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; background: var(--panel); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: #f8f9f7; }
.compare td:first-child { font-weight: 700; }
.compare .us { background: var(--green-tint); }

.faq details, .doc details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 10px; }
.faq summary, .doc summary { font-weight: 700; cursor: pointer; }
.faq p, .doc details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- articles ---------- */
.doc { max-width: 760px; padding: 48px 0 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 54px); }
.doc h2 { font-size: 26px; margin-top: 44px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .compare { margin: 20px 0 6px; }
.doc .mono { background: #e6e9e3; padding: 1px 6px; border-radius: 4px; font-size: .86em; word-break: break-word; }
.cta-box { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--ink); color: #dfe7e2; border-radius: 18px; padding: 24px 26px; margin: 40px 0; }
.cta-box b { color: #fff; }
.cta-box .btn { flex: none; }
.cta-box .btn.is-soon { color: #c5d0ca; border-color: #4a5a52; }

.index-list { margin-top: 32px; border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.index-list a::after { content: "→"; color: var(--muted); transition: transform .15s; }
.index-list a:hover b { color: var(--green); }
.index-list a:hover::after { color: var(--green); transform: translateX(3px); }
.index-list .kind { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.index-list b { font-size: 19px; }

/* theme detector result */
.r-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-top: 18px; box-shadow: var(--shadow); }
.r-card h3 { font-size: 30px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.03em; }
.r-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.r-stat { text-align: right; } .r-stat b { display: inline-block; font: 700 28px/1 var(--mono); background: var(--tag); padding: 6px 10px; border-radius: 6px; } .r-stat span { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.r-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.r-label { color: var(--muted); font: 700 12px/2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; margin: 2px 3px 2px 0; font-size: 14px; background: var(--paper); }
.r-more { margin: 16px 0 0; font-size: 15px; }

footer { margin-top: auto; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 880px) {
    .home-hero, .hero { grid-template-columns: 1fr; gap: 40px; }
    .shot { justify-self: start; }
    .grid-3, .pricing { grid-template-columns: 1fr; }
    .product { grid-template-columns: 56px 1fr; }
    .product .buy { grid-column: 1 / -1; text-align: left; align-items: flex-start; }
    .cta-box { flex-direction: column; align-items: stretch; }
    .r-row { grid-template-columns: 1fr; gap: 4px; }
    .compare { font-size: 13px; }
    .compare th, .compare td { padding: 10px; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .nav { flex-wrap: wrap; gap: 4px; padding: 12px 0 8px; }
    .nav-links { width: 100%; overflow-x: auto; margin: 0 -12px; scrollbar-width: none; }
    .tool { flex-direction: column; align-items: stretch; border-radius: 18px; }
    .tool .btn { width: 100%; }
    .shelf { gap: 8px; }
    .item { padding: 12px 7px 10px; }
    .item .name { font-size: 11.5px; }
    .tag { font-size: 12px; padding: 6px 8px 6px 14px; }
    .index-list a { grid-template-columns: 1fr auto; gap: 4px 12px; }
    .index-list .kind { grid-column: 1 / -1; }
    .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
