/* Merchentia — static site styles. No build step, no JS. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1a1d21;
  --text-soft: #5b6470;
  --accent: #4f46e5;
  --accent-soft: #eef0fe;
  --border: #e5e8ec;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #171a20;
    --text: #e8eaed;
    --text-soft: #9aa3af;
    --accent: #818cf8;
    --accent-soft: #1d2040;
    --border: #2a2f38;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-mark { width: 28px; height: 28px; margin-right: 9px; flex-shrink: 0; }
.brand span { color: var(--accent); }
nav.site a {
  color: var(--text-soft);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
}
nav.site a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Keyboard focus — visible outline for all interactive elements (WCAG 2.4.7) */
a:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.hero {
  padding: 72px 0 56px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.hero p {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0;
}

section { padding: 36px 0; }
h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.card {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: 2px;
}
.card + .card { margin-top: 18px; }
.card p { color: var(--text-soft); margin: 10px 0 14px; }
.more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.more:hover { text-decoration-thickness: 2px; }
.card .more { display: inline-block; margin-top: 4px; }
.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
}
.card li { margin: 4px 0; }
.card .applinks { margin-top: 18px; }
.cardnote { font-size: 13.5px; color: var(--text-soft); margin: 8px 0 0; }
.guidecallout {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--text-soft);
}
.guidecallout strong { color: var(--text); }

/* Hero support line + homepage "default support" band */
.herosupport {
  margin-top: 14px !important;
  font-size: 15.5px !important;
  color: var(--text-soft);
  max-width: 560px;
}
.support-band {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 32px 34px;
}
.support-band h2 { margin: 0 0 10px; }
.support-band p { color: var(--text-soft); max-width: 640px; margin: 0 0 20px; }

.contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.contact a:hover { text-decoration: underline; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 28px;
  color: var(--text-soft);
  font-size: 14px;
}
footer.site a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
footer.site a:hover { text-decoration-color: var(--accent); }

/* Visible breadcrumb trail (mirrors BreadcrumbList JSON-LD) */
.breadcrumb { font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; }
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb .sep { margin: 0 8px; color: var(--text-soft); }
.breadcrumb .here { color: var(--text-soft); }

/* Article pages (privacy) */
article.page { padding: 48px 0 24px; }
article.page h1 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
article.page .updated {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 28px;
}
article.page h2 {
  font-size: 19px;
  margin: 30px 0 8px;
}
article.page p, article.page li { color: var(--text); }
article.page ul { padding-left: 22px; }
article.page code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* Pricing pages */
.lede {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 6px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 6px 0 12px;
}
.plan {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.plan.free { border-color: var(--accent); }
.plan .name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.plan .price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}
.plan .price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.plan .cap {
  color: var(--text-soft);
  font-size: 14.5px;
}
ul.includes {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px 22px;
}
ul.includes li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  margin: 0;
}
ul.includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
a.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  margin-top: 2px;
}
a.cta:hover { filter: brightness(1.07); }
ul.terms {
  color: var(--text-soft);
  font-size: 14.5px;
  padding-left: 20px;
}
ul.terms li { margin: 7px 0; }
ul.terms strong { color: var(--text); }

/* App pages — row of links under the intro (reuses .cta and .more) */
.applinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 12px;
}
.applinks .more { margin-top: 0; }
article.page h1 .badge { font-size: 13px; vertical-align: middle; margin-left: 12px; }

/* FAQ */
.faq h3 { font-size: 16px; letter-spacing: -0.01em; margin: 20px 0 4px; }
.faq p { margin: 0 0 6px; color: var(--text-soft); }

/* Footer link group */
footer.site .foot-links a { margin-left: 18px; }
footer.site .foot-links a:first-child { margin-left: 0; }

/* "More from Merchentia" cross-promo */
.crosspromo { border-top: 1px solid var(--border); margin-top: 8px; }
.xp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 6px 0 14px;
}
.xp {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}
.xp:hover { border-color: var(--accent); }
.xp .xp-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.xp .xp-desc { color: var(--text-soft); font-size: 13.5px; margin-top: 3px; }

/* Guides / changelog article content */
article.page h2 a, article.page p a, article.page li a { color: var(--accent); }
.guidemeta { color: var(--text-soft); font-size: 14px; margin: 0 0 22px; }
.changelog-entry { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 22px; }
.changelog-entry .when { color: var(--text-soft); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.glossary-term { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 18px; }
.glossary-term h2 { margin: 0 0 6px; }
