/* Zi Studio — ProCharts site. Plain CSS, no build step. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-card: #ffffff;
  --text: #14171f;
  --text-soft: #4a5263;
  --text-faint: #6b7385;
  --line: #e3e7ef;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefe;
  --ok: #1f8a4c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217;
    --bg-soft: #151a22;
    --bg-card: #171c25;
    --text: #e9edf4;
    --text-soft: #b4bccb;
    --text-faint: #8b94a6;
    --line: #262d3a;
    --accent: #6d8cff;
    --accent-ink: #0b0e14;
    --accent-soft: #1c2540;
    --ok: #4cc283;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand small { font-weight: 500; color: var(--text-faint); }
.nav { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.nav a { color: var(--text-soft); }
.nav a.btn { color: var(--accent-ink); }
@media (max-width: 640px) { .nav a:not(.btn):not(.lang-switch) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.lg { padding: 13px 22px; font-size: 1.05rem; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 36px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero .fine { font-size: .9rem; color: var(--text-faint); }
.shot {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-card);
  box-shadow: var(--shadow); overflow: hidden;
}
.shot figcaption { font-size: .85rem; color: var(--text-faint); padding: 10px 14px; border-top: 1px solid var(--line); }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: .9rem; }

/* Gallery */
.gallery { display: grid; gap: 24px; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); font-weight: 600; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--text-faint); }
.ticks { list-style: none; padding: 0; margin: 16px 0 22px; }
.ticks li { padding-left: 26px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.note { font-size: .9rem; color: var(--text-faint); margin-top: 18px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--text-faint); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--text-soft); }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem;
}

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 2.1rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: .3em 0; }
.legal .updated { color: var(--text-faint); margin-bottom: 2em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .92rem; color: var(--text-soft); background: var(--bg-soft); }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 8px; font-size: .9rem; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .legal-line { grid-column: 1 / -1; color: var(--text-faint); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 16px; }

/* Chinese pages: prefer CJK system fonts */
html:lang(zh-CN) body { font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
.lang-switch { font-size: .9rem; }
