/* Ejoshi Software Inc. — public site (ejoshi.ai). Colours come from the logo: deep green + leaf green. */
:root {
  --ink: #12231d;
  --muted: #5a6b64;
  --green: #0f5c45;
  --green-deep: #0a4032;
  --leaf: #7ab648;
  --leaf-soft: #eef6e6;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --line: #dfe7e3;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 64, 50, 0.08);
  --max: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); background: var(--leaf-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* header */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand img { height: 40px; width: auto; }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96rem; }
nav.main a:hover { color: var(--green); }
.lang { display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 40px; }
.lang:hover { border-color: var(--green); }
.menu-btn { display: none; border: 0; background: none; font-size: 1.6rem; cursor: pointer; padding: 6px; min-height: 44px; min-width: 44px; color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; min-height: 48px; font-family: inherit; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-deep); }
.btn.ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn.ghost:hover { background: var(--leaf-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, var(--leaf-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero-art { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; }
.hero-art img { border-radius: 12px; }
.hero-art figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 6px 2px; }

section { padding: 76px 0; scroll-margin-top: 68px; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 36px; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .logo { height: 44px; width: auto; margin-bottom: 16px; object-fit: contain; object-position: left; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--leaf-soft); color: var(--green); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card ul { padding-left: 1.1em; color: var(--muted); margin: 0 0 1em; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--green); margin-bottom: 10px; align-self: flex-start; }
.wordmark { font-weight: 800; font-size: 1.5rem; color: var(--green); margin-bottom: 14px; }
.wordmark small { font-weight: 600; font-size: 0.95rem; color: var(--muted); margin-left: 6px; }

/* chats showcase */
.chats { display: grid; gap: 26px; }
.chat { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.chat img { border-radius: 12px; border: 1px solid var(--line); }
.chat h3 { margin-bottom: 8px; }
.chat .note { font-size: 0.85rem; color: var(--muted); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps li p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* contact */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.qr { text-align: center; }
.qr img { width: 220px; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line); }
.ways { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; }
.ways li { padding: 10px 0; border-top: 1px solid var(--line); }
.ways strong { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ways a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
form.inquiry { display: grid; gap: 14px; }
form.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c9d6d0; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .lang:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: var(--leaf-soft); color: var(--green-deep); }
.form-msg.bad { display: block; background: #fdecea; color: #8a1c12; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts { margin: 0; }
.fact dt { color: var(--muted); font-size: 0.95rem; }
.fact dd { margin: 0 0 2px; font-size: 1.35rem; font-weight: 700; color: var(--green); order: -1; }
.fact { display: flex; flex-direction: column; }

/* cta band */
.band { background: var(--green); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; opacity: 0.88; }
.band .btn.primary { background: #fff; color: var(--green); }
.band .btn.primary:hover { background: var(--leaf-soft); }

footer { background: #0b2c23; color: #cfe0d8; padding: 48px 0 32px; font-size: 0.95rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer .foot-h { color: #fff; margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; font-size: 0.85rem; color: #b9cfc6; }
.foot-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 12px; }
.foot-logo img { height: 34px; width: auto; }

/* page furniture added with the English pages (build.py) */
.nw { white-space: nowrap; }
.h1-sub { display: block; font-size: 0.58em; font-weight: 600; color: var(--green-deep); margin-top: 0.35em; line-height: 1.35; }
.hero-logo { height: 52px; width: auto; margin-bottom: 18px; }
.crumbs { font-size: 0.9rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.section-cta { margin: 28px 0 0; }
.form-note { font-size: 0.85rem; margin: 0; color: var(--muted); }
form.inquiry h3 { margin: 0; }
.faq { display: grid; gap: 14px; max-width: 860px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.qa h3 { font-size: 1.1rem; margin-bottom: 6px; }
.qa p { margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); max-width: 860px; }
.facts-table { border-collapse: collapse; width: 100%; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { width: 30%; color: var(--green-deep); font-weight: 700; white-space: nowrap; }
.narrow { max-width: 760px; }
.prose { padding: 40px 0 76px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.notfound { padding: 96px 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* hero chat: a real WeChat exchange as text (readable at any size, visible to search engines) */
.wx { list-style: none; margin: 0; padding: 18px; background: #ededed; border-radius: 12px; display: grid; gap: 12px; font-size: 0.95rem; line-height: 1.45; }
.wx li { display: flex; }
.wx-out { justify-content: flex-end; }
.wx p { margin: 0; padding: 10px 14px; border-radius: 8px; max-width: 86%; color: #111; }
.wx-in p { background: #fff; }
.wx-out p { background: #95ec69; }
.hero-art figcaption a { font-weight: 600; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phone */
@media (max-width: 900px) {
  .hero .wrap, .chat, .contact, .about { grid-template-columns: 1fr; }
  .facts-table th { white-space: normal; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .lang { margin-left: auto; }
  header.top .wrap { gap: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .hero { padding: 44px 0 40px; }
  section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  form.inquiry .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .band { padding: 28px 22px; }
  .brand img { height: 32px; }
  .hero h1 br { display: none; }
  .btn-row .btn { width: 100%; }
  .chat { padding: 16px; }
  .hero-art { padding: 10px; }
  .wx { padding: 12px; font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a[href^="tel:"] { white-space: nowrap; }
