/* mojifix.app — single stylesheet, no framework. Light, fast, CJK-friendly. */
:root {
  --ink: #16181d;
  --ink-soft: #4a4f5a;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --ok: #16a34a;
  --bad: #b91c1c;
  --border: #e4e6ea;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic",
    "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); z-index: 10;
}
.site-header nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-header .brand { font-weight: 700; font-size: 17px; color: var(--ink); }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--ink-soft); }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 800; max-width: 21em; margin: 0 auto; }
.hero .lead {
  max-width: 44em; margin: 20px auto 0; font-size: 17px; color: var(--ink-soft);
}
.cta {
  display: inline-block; margin-top: 28px; padding: 13px 28px;
  border-radius: 999px; font-weight: 600; font-size: 16px;
}
a.cta { background: var(--accent); color: #fff; }
a.cta:hover { background: var(--accent-ink); text-decoration: none; }
.cta.soon { background: var(--bg-soft); color: var(--ink-soft); border: 1px dashed var(--border); }
.cta-note { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* before/after demo */
.demo {
  margin: 44px auto 0; max-width: 640px; text-align: left;
  background: #0f1117; color: #d7dae0; border-radius: var(--radius);
  padding: 18px 22px; font-family: var(--mono); font-size: 13.5px;
  box-shadow: 0 12px 40px rgba(15, 17, 23, 0.18);
  overflow-x: auto;
}
.demo-title { color: #8b93a3; font-size: 12px; margin-bottom: 10px; font-family: var(--font); }
.demo-row { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; white-space: nowrap; }
.demo-row .before { color: #f2857d; text-decoration: line-through; text-decoration-color: rgba(242, 133, 125, 0.5); }
.demo-row .arrow { color: #8b93a3; }
.demo-row .after { color: #7ee2a8; }

/* sections */
section.problem, section.how { padding: 56px 0; }
section.problem { background: var(--bg-soft); }
section.problem h2, section.how h2, section.faq h2, section.guides h2 {
  font-size: 26px; margin-bottom: 18px;
}
section.problem p { max-width: 46em; margin-bottom: 12px; color: var(--ink-soft); }

.features { padding: 56px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--bg);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; max-width: 620px; }
.steps li {
  counter-increment: step; position: relative; padding-left: 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 16.5px; }
.steps p { font-size: 14.5px; color: var(--ink-soft); }

/* faq */
.faq { padding: 56px 0; background: var(--bg-soft); }
.faq details {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px; max-width: 720px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq details p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* guides */
.guides { padding: 56px 0; }
.guides > .container > p { color: var(--ink-soft); margin-bottom: 18px; }
.guide-list { list-style: none; display: grid; gap: 12px; max-width: 720px; }
.guide-list a {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; color: var(--ink);
}
.guide-list a:hover { border-color: var(--accent); text-decoration: none; }
.guide-list strong { display: block; font-size: 15.5px; margin-bottom: 4px; color: var(--accent-ink); }
.guide-list span { font-size: 13.5px; color: var(--ink-soft); }

.bottom-cta { padding: 48px 0 72px; text-align: center; }

/* mobile demand-measurement CTA (landing) */
.mobile-cta { padding: 56px 0 8px; }
.mobile-cta .panel {
  background: #eef3fe; border: 1px solid #d6e3fd; border-radius: var(--radius);
  padding: 40px 28px; text-align: center;
}
.mobile-cta h2 { font-size: 26px; margin-bottom: 10px; }
.mobile-cta .lead-sm { color: var(--ink-soft); max-width: 40em; margin: 0 auto 22px; }
.platform-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platform-btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; background: var(--accent); color: #fff;
}
.platform-btn:hover { background: var(--accent-ink); text-decoration: none; }
.mobile-cta .cta-note { margin-top: 14px; }

/* waitlist pages */
.waitlist-hero { padding: 72px 0 64px; text-align: center; }
.waitlist-hero h1 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; }
.waitlist-hero .lead { max-width: 40em; margin: 16px auto 0; font-size: 16.5px; color: var(--ink-soft); }
.waitlist-hero h2 { font-size: 19px; margin-top: 36px; }
.waitlist-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.waitlist-form input[type='email'] {
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 15px; font-family: var(--font); min-width: 260px;
}
.waitlist-form input[type='email']:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.waitlist-form .cta { margin-top: 0; border: 0; cursor: pointer; background: var(--accent); color: #fff; font-family: var(--font); }
.waitlist-form .cta:hover { background: var(--accent-ink); }
.waitlist-form .cta:disabled { opacity: 0.6; cursor: default; }
.form-success { margin-top: 20px; font-weight: 600; color: var(--ok); }
.waitlist-note { margin-top: 24px; color: var(--ink-soft); }
.back-link { margin-top: 36px; font-size: 14.5px; }

/* article pages */
.article { padding: 48px 0 64px; }
.article h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; }
.article .lead { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 26px; }
.article section { margin-bottom: 26px; }
.article h2 { font-size: 21px; margin-bottom: 10px; }
.article p { margin-bottom: 10px; color: var(--ink-soft); }
.article p strong, .article p em { color: var(--ink); }
.article ul { margin: 10px 0 10px 22px; color: var(--ink-soft); }
.article code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px;
}
.article .updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.article-cta { margin-top: 40px; text-align: center; border-top: 1px solid var(--border); padding-top: 32px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; background: var(--bg-soft); }
.site-footer p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.site-footer .brand { font-weight: 700; color: var(--ink); font-size: 15px; }
.site-footer .langs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .lang.current { font-weight: 700; color: var(--ink); }
.site-footer .copyright { margin-top: 14px; font-size: 12.5px; }

@media (max-width: 640px) {
  .nav-links { gap: 12px; font-size: 13px; }
  .hero { padding: 48px 0 40px; }
  .demo { font-size: 12px; }
  .platform-buttons { flex-direction: column; align-items: stretch; }
  .waitlist-form input[type='email'] { min-width: 0; width: 100%; }
  .waitlist-form { flex-direction: column; align-items: stretch; }
}
