/* buyewe design system
 *
 * Shared by the Astro-rendered blog pages and the Function-rendered marketing
 * pages, so there is exactly one source of truth for the look. Kept as a plain
 * unhashed static file (public/site.css) instead of an Astro-generated bundle:
 * the Functions renderer cannot know the content-hashed filename Astro will
 * emit for the current build.
 */

:root {
  --ink: #14181f;
  --ink-2: #4a5563;
  --ink-3: #77808d;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --brand: #b4531f;
  --brand-ink: #8f3f15;
  --accent: #0f6d5a;
  --radius: 10px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(23px, 3.2vw, 30px); margin-top: 0; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.lead { font-size: 19px; color: var(--ink-2); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  font-weight: 700; color: var(--brand); margin-bottom: 12px;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92);
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.brand-tag { font-size: 11.5px; color: var(--ink-3); }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.lang-switch:hover { border-color: var(--ink-3); text-decoration: none; }

/* buttons */
.btn {
  display: inline-block; border-radius: var(--radius); padding: 13px 24px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* layout blocks */
section { padding: 68px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: #fff;
}
.card h3 { margin-bottom: 8px; }
.hero { padding: 76px 0 64px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; }
.stat b { display: block; font-size: 30px; color: var(--brand); line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--ink-3); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline li {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 0 0 26px; border-left: 2px solid var(--line); position: relative;
}
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -17px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline h3 { margin: 2px 0 4px; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cat-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; background: #fff;
}
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { flex: 1; font-size: 15px; color: var(--ink-2); }
.cat-thumb {
  height: 116px; border-radius: 8px; margin-bottom: 16px;
  background: linear-gradient(135deg, #efe3da, #dfe6e3);
  display: grid; place-items: center; font-size: 30px;
}

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 6px 26px rgba(180, 83, 31, 0.1); }
.price { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }

/* forms */
form.inquiry { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.field textarea { min-height: 118px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-status { padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.form-status.ok { background: #e8f5ef; color: var(--accent); border: 1px solid #bfe0d3; }
.form-status.err { background: #fdeeee; color: #a32020; border: 1px solid #f3c9c9; }

/* callout */
.note {
  border-left: 3px solid var(--brand); background: var(--bg-soft);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2); margin: 0 0 22px;
}
.note.warn { border-left-color: var(--warn, #8a6100); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 3px 0; }
.footer-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 13px;
}
ul.check { list-style: none; padding: 0; }
ul.check li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); }
ul.check li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

/* floating contact widget */
.cw {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 8px 26px rgba(20, 24, 31, 0.24);
}
.cw:hover { text-decoration: none; background: var(--brand-ink); color: #fff; }
.cw .cw-ico { font-size: 17px; line-height: 1; }

/* prose (blog bodies rendered from markdown) */
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 23px; margin: 38px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
}
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote {
  margin: 22px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--brand); color: var(--ink-2);
}
.prose code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; font-size: 0.88em; }

/* admin-agnostic small screens */
@media (max-width: 820px) {
  .grid-2, .grid-3, .price-grid, .row-2, .footer-grid { grid-template-columns: 1fr; }
  .site-header nav { order: 3; width: 100%; padding-bottom: 10px; gap: 14px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 46px 0; }
  .stat-row { gap: 26px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 20px; }
  .cw { right: 14px; bottom: 14px; padding: 11px 15px; }
}