/* CrossCi ("中文填字") marketing site — 书卷墨色 design system.
   Static, no build step, no external fonts/scripts. */

:root {
  --bg: #F3EEE3;
  --surface: #FBF8F1;
  --text: #2B2622;
  --muted: #6E655B;
  --line: #D8CFBE;
  --accent: #B5432E;
  --accent-text: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Noto Serif SC", "Songti SC", "Songti TC", serif;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--text);
  text-decoration: underline;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.brand-name {
  font-family: "Noto Serif SC", "Songti SC", "Songti TC", serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switch {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  min-width: 168px;
  box-shadow: 0 1px 0 var(--line);
}

.store-btn:hover,
.store-btn:focus {
  color: var(--accent-text);
  text-decoration: none;
  filter: brightness(0.92);
}

.store-btn .store-btn-eyebrow {
  font-size: 11px;
  opacity: 0.85;
}

.store-btn .store-btn-label {
  font-family: "Noto Serif SC", "Songti SC", "Songti TC", serif;
  font-size: 17px;
  font-weight: 700;
}

.store-btn.is-disabled {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: default;
}

.store-btn.is-disabled:hover,
.store-btn.is-disabled:focus {
  color: var(--muted);
  filter: none;
  text-decoration: none;
}

/* ---------- screenshots (pure CSS phone frames, no bitmaps) ---------- */

.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 24px 0 8px;
}

.phone-frame {
  width: 148px;
  height: 300px;
  border-radius: 22px;
  background: var(--surface);
  border: 3px solid var(--text);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-frame .phone-notch {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--text);
  margin: 0 auto 4px;
}

.phone-frame .phone-title {
  font-family: "Noto Serif SC", "Songti SC", "Songti TC", serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  text-align: center;
}

.phone-frame .phone-row {
  display: flex;
  gap: 4px;
}

.phone-frame .phone-cell {
  flex: 1;
  height: 20px;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.phone-frame .phone-cell.is-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.phone-frame .phone-cell.is-dark {
  background: var(--text);
  border-color: var(--text);
}

.phone-frame .phone-caption {
  margin-top: auto;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* ---------- features ---------- */

.features {
  padding: 32px 0 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 0 var(--line);
}

.feature-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- generic content pages (privacy / terms) ---------- */

.page-content {
  padding: 36px 0 56px;
}

.page-content h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.page-content h2 {
  font-size: 19px;
  margin-top: 32px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.page-content h2:first-of-type {
  border-top: none;
  margin-top: 8px;
}

.page-content ul,
.page-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- responsive guards ---------- */

img, svg {
  max-width: 100%;
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 28px;
  }
}
