/* Listrank for Etsy — shared stylesheet for the marketing site and tools */

:root {
  --ink: #1C2321;
  --pine: #1E5B4B;
  --pine-dark: #164538;
  --mint: #E6F0EC;
  --amber: #F6E7B0;
  --line: #D9DED9;
  --white: #FFFFFF;
  --muted: #5B6660;
  --danger: #B3261E;
  --shadow: 0 12px 28px rgba(28, 35, 33, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF0ED;
    --pine: #5FBE9C;
    --pine-dark: #7FD0B2;
    --mint: #172420;
    --amber: #6B5B29;
    --line: #2B3733;
    --white: #121715;
    --muted: #9BA9A2;
    --danger: #E5847C;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

small, .small { font-size: 15px; }

.tabular { font-variant-numeric: tabular-nums; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 20px;
}
.brand {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover { color: var(--pine); }

/* buttons */
.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--pine-dark); color: var(--white); }
.btn.quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.quiet:hover { background: var(--mint); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 14px; margin: 0; flex: none; }

.text-link {
  color: var(--pine);
  text-decoration: underline;
  font-weight: 600;
}

/* hero */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 46ch; margin: 0 0 26px; }
.cta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

.shot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-card img { width: 100%; height: auto; }

/* sections */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
section.ground { background: var(--mint); }
h2 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; font-weight: 800; }
h3 { font-size: 28px; margin: 0 0 10px; letter-spacing: -0.01em; font-weight: 800; }
.sub { color: var(--muted); max-width: 65ch; margin: 0 0 32px; font-size: 19px; }

/* feature rows (home) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.feature + .feature { margin-top: 64px; }
.feature.flip .shot-card { order: 2; }
.feature.wide-image { grid-template-columns: 0.8fr 1.2fr; }
.feature p { color: var(--muted); max-width: 52ch; margin: 0 0 12px; }
.feature p:last-child { margin-bottom: 0; }

/* pricing table */
.price-table { width: 100%; max-width: 820px; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th:first-child, .price-table td:first-child { padding-left: 0; width: 34%; }
.price-table th { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-table .price { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
.price-table .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-table td.yes { color: var(--pine); font-weight: 700; }
.price-table tfoot td { border-bottom: 0; padding-top: 20px; }
.price-table tfoot .btn { margin: 4px 8px 0 0; }
.price-table tfoot .cta-note { margin: 0 0 12px; }

/* faq */
.faq dt { font-weight: 800; margin-top: 20px; font-size: 19px; }
.faq dd { margin: 6px 0 0; color: var(--muted); max-width: 68ch; }

/* footer */
.site-footer { padding: 48px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}
.footer-col h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; letter-spacing: 0; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 3px 0; }
.footer-col a:hover { color: var(--pine); }
.site-footer .trademark {
  border-top: 1px solid var(--line);
  padding: 18px 0 40px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* article / guide layout */
main.doc { padding-top: 40px; padding-bottom: 64px; max-width: 780px; }
main.doc .wrap { max-width: none; padding: 0; }
.doc h1 { font-size: 40px; }
.doc .lede { font-size: 19px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p { margin: 0 0 16px; max-width: 72ch; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 16px; max-width: 72ch; }
.doc li { margin: 6px 0; }
.doc .cta, .article-body .cta {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin: 32px 0;
}
.doc .cta h2, .article-body .cta h2 { margin-top: 0; }
.doc .cta .note, .article-body .cta .note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.doc .cta .btn, .article-body .cta .btn { margin: 4px 12px 4px 0; }

/* tool pages */
main.tool-page { padding: 40px 0 64px; }
main.tool-page .lede { max-width: 62ch; margin-bottom: 28px; }
.tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin: 0 0 40px;
}
.tool label { display: block; font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
.tool label:first-child { margin-top: 0; }
.tool input[type=text], .tool input[type=number], .tool select, .tool textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}
.tool textarea { min-height: 110px; resize: vertical; font-family: inherit; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: 2px solid var(--pine); border-color: var(--pine); }
.tool .hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.tool .check-row { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; }
.tool .check-row input { width: auto; margin-top: 3px; }
.tool .check-row label { margin: 0; font-weight: 600; }
.tool .sub-field { margin: 8px 0 0 26px; }
.tool .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 400px) { .tool .grid2 { grid-template-columns: 1fr; } }

.article-body { padding-top: 8px; }
.article-body h2 { font-size: 24px; margin: 34px 0 10px; }
.article-body h2:first-child { margin-top: 0; }

.check-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin: 16px 0 18px;
  max-width: 72ch;
}
.check-groups .group-wide { grid-column: 1 / -1; }
.check-groups h3 { font-size: 16px; margin: 0 0 8px; font-weight: 800; }
.check-groups ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.check-groups li { margin: 4px 0; }
@media (max-width: 640px) {
  .check-groups { grid-template-columns: 1fr; }
}

.results { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.results .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.results .row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.results .row.total { font-size: 19px; padding-top: 14px; border-bottom: none; }
.results .fee-note { font-size: 13px; color: var(--muted); margin: -4px 0 8px; }

.checks { margin-top: 22px; }
.check { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.check .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.check .mark.pass { background: var(--pine); }
.check .mark.warn { background: #B08A1F; }
.check .mark.fail { background: var(--danger); }
.check .text b { display: block; }
.check .text span { color: var(--muted); font-size: 14px; }
.count { font-size: 13px; color: var(--muted); text-align: right; margin-top: -12px; font-variant-numeric: tabular-nums; }

.cleaned { margin-top: 20px; background: var(--mint); border-radius: 10px; padding: 16px 18px; font-size: 15px; }
.cleaned .list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cleaned .list span { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 13px; }

.sources { margin-top: 30px; padding: 16px 18px; background: var(--mint); border-radius: 10px; font-size: 14px; color: var(--muted); }
.sources h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.sources ol { margin: 0; padding-left: 18px; }
.sources li { margin: 5px 0; }

/* shop-audit tool specifics */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 32px 16px;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.dropzone.over { border-color: var(--pine); background: var(--mint); }
.dropzone p { margin: 0 0 10px; }
.file-btn { display: inline-block; background: var(--pine); color: var(--white); border-radius: 8px; padding: 9px 18px; cursor: pointer; font-weight: 600; font-size: 14px; }
.file-btn:hover { background: var(--pine-dark); }
.file-btn input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.file-name { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.err { color: var(--danger); font-weight: 600; }

.summary { display: flex; flex-wrap: wrap; gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.summary .stat { display: flex; flex-direction: column; min-width: 96px; }
.summary .stat b { font-size: 28px; font-variant-numeric: tabular-nums; }
.summary .stat span { color: var(--muted); font-size: 14px; }
.summary .estimate { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.listings { margin-top: 4px; }
.listing { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; background: var(--white); }
.listing h3 { font-size: 17px; margin: 0 0 10px; }
.listing .issues { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.listing .issues li { margin: 4px 0; }
.fixes { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.fix .fix-label { font-weight: 700; min-width: 70px; }
.fix code { background: var(--mint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 13px; word-break: break-word; flex: 1 1 auto; }

.more-cta { background: var(--mint); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; margin-top: 6px; }
.more-cta p { margin: 0 0 14px; }
.more-cta .note { margin-top: 14px; }

/* 404 */
.notfound { padding: 80px 0; text-align: left; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 8px; }
  .hero .shot-card { max-width: 560px; }
  .feature, .feature.wide-image { grid-template-columns: 1fr; }
  .feature.flip .shot-card { order: -1; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .lede { font-size: 19px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-table { display: block; overflow-x: auto; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
}
