/* meihq.com — landing page styles
 * Single file. Custom properties only, no preprocessor.
 * Mobile-first, breakpoints at 768px and 1024px.
 * See DESIGN.md for tokens and rationale.
 */

:root {
  /* color */
  --bg: #FBF6EE;
  --bg-card: #FFFFFF;
  --ink: #2A2823;
  --ink-soft: #6B655A;
  --rule: #E5DDD0;
  --jade: #4A8870;
  --jade-deep: #2F5A4A;
  --peach: #E8B8A0;
  --peach-tint: #FDF1E8;

  /* type — mobile defaults; desktop overrides below */
  --fs-display: 44px;
  --fs-h2: 28px;
  --fs-h3: 18px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-stat: 40px;

  /* spacing */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;
  --s-7: 128px;

  /* container */
  --max: 1080px;
  --pad: clamp(20px, 5vw, 56px);

  /* radius */
  --r-1: 10px;
  --r-2: 16px;

  /* type stacks */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-cjk: "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
    var(--font-sans);
}

@media (min-width: 768px) {
  :root {
    --fs-display: 64px;
    --fs-h2: 36px;
    --fs-h3: 20px;
    --fs-lead: 21px;
    --fs-body: 18px;
    --fs-stat: 56px;
  }
}

/* reset (minimal) */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--jade); text-decoration: none; }
a:hover { text-decoration: underline; }

/* focus ring — universal */
:focus-visible {
  outline: 2px solid var(--jade-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* layout primitives */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}
@media (min-width: 1024px) {
  section { padding-top: var(--s-7); padding-bottom: var(--s-7); }
}

/* ---------- HEADER ---------- */
.site-header {
  padding: var(--s-3) 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--peach-tint);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-dot {
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0 2px;
}
.brand-cjk {
  font-family: var(--font-cjk);
  color: var(--jade);
  font-size: 0.85em;
  letter-spacing: 0.04em;
}
.nav-cta {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--jade);
  letter-spacing: 0.01em;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: var(--s-5);
  padding-bottom: var(--s-7);
}
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-6); padding-bottom: 160px; }
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-5);
  }
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 var(--s-3) 0;
}
.hero .lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  margin: 0 0 var(--s-3) 0;
  max-width: 38ch;
}
.hero p.body {
  margin: 0 0 var(--s-4) 0;
  max-width: 50ch;
}
.hero .cta-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-start;
}
.hero .fine {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 0;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, var(--peach-tint), transparent 70%);
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  max-width: 320px;
  width: 100%;
}
.hero-art .placeholder {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--peach-tint);
  border: 1.5px dashed var(--peach);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: var(--s-3);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .hero-art { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-1);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease,
              transform 0.06s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--jade);
  color: var(--bg);
}
.btn-primary:hover { background: var(--jade-deep); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--jade);
  border-color: var(--jade);
}
.btn-ghost:hover { background: var(--jade); color: var(--bg); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- SECTION HEADING PATTERN ---------- */
.section-label {
  display: inline-block;
  font-size: var(--fs-small);
  color: var(--jade);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-2) 0;
}
section h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 var(--s-3) 0;
  max-width: 22ch;
}
section .lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 var(--s-5) 0;
}

/* ---------- HOW IT WORKS ---------- */
.how {
  background: var(--peach-tint);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}
.how-item h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0 0 var(--s-2) 0;
  color: var(--ink);
}
.how-item p {
  margin: 0;
  color: var(--ink-soft);
}
.how-step {
  font-size: var(--fs-small);
  color: var(--jade);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s-1) 0;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-3);
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}
.stat .num {
  font-size: var(--fs-stat);
  font-weight: 600;
  color: var(--jade);
  line-height: 1;
  margin: 0 0 var(--s-1) 0;
  letter-spacing: -0.02em;
}
.stat p { margin: 0; color: var(--ink); font-weight: 500; }
.stat span.sub { color: var(--ink-soft); font-weight: 400; }

/* ---------- FEATURES ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .features { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
}
.features li {
  list-style: none;
  padding: 10px 0 10px var(--s-3);
  border-left: 3px solid var(--peach);
  color: var(--ink);
}
.features ul { padding: 0; margin: 0; }

/* ---------- PRICING ---------- */
.pricing { text-align: center; }
.price-card {
  max-width: 480px;
  margin: var(--s-4) auto 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-5);
  text-align: left;
}
.price-card .price {
  font-size: var(--fs-stat);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-3) 0;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-card .price .per {
  font-size: 0.4em;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 6px;
}
.price-card .includes {
  margin: 0 0 var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.price-card .includes li {
  padding: 4px 0;
  color: var(--ink);
}
.price-card .founding {
  background: var(--peach-tint);
  border-left: 3px solid var(--peach);
  padding: var(--s-3);
  border-radius: 0 var(--r-1) var(--r-1) 0;
  margin: 0 0 var(--s-4) 0;
  font-size: var(--fs-small);
  color: var(--ink);
}
.price-card .founding strong { color: var(--ink); font-weight: 600; }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact-card {
  max-width: 640px;
  margin: var(--s-4) auto 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-5);
  text-align: left;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .label {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  min-width: 80px;
}
.contact-row .value {
  font-size: var(--fs-body);
  color: var(--ink);
  font-weight: 500;
}
.contact-row a.value { color: var(--jade); }

.wechat-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
}
.wechat-qr {
  width: 96px;
  height: 96px;
  border-radius: var(--r-1);
  background: var(--peach-tint);
  border: 1.5px dashed var(--peach);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  padding: 8px;
  line-height: 1.3;
  flex: 0 0 auto;
}
.wechat-qr-img {
  width: 128px;
  height: 128px;
  border-radius: var(--r-1);
  background: #FFFFFF;
  padding: 8px;
  border: 1px solid var(--rule);
  flex: 0 0 auto;
  display: block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--s-5) 0 var(--s-4);
  margin-top: var(--s-5);
  text-align: center;
}
.site-footer p {
  margin: 0 0 var(--s-1) 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.site-footer .credit { font-weight: 500; color: var(--ink); }
.site-footer .credit .brand-cjk { font-size: 1em; }

/* ---------- utility ---------- */
.arrow { display: inline-block; transition: transform 0.12s ease; }
a:hover .arrow,
.btn:hover .arrow { transform: translateX(2px); }
