/* Hanzi Calligraphy — marketing + legal site.
   ShanShui "Ink & Mist" tokens mirror lib/theme.ts in the app. */

:root {
  --ink: #1c1c1c;
  --charcoal: #4a4a48;
  --mist: #b8b5ae;
  --paper: #f8f8f8;
  --paper-lo: #ececeb;
  --stone: #7a6855;
  --seal: #a33228;
  --text-body: #353331;
  --text-muted: #6b6760;
  --hairline: rgba(122, 104, 85, 0.3);
  --hairline2: rgba(28, 28, 28, 0.12);
  --seal-text: #f5e9e4;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --han: "Noto Serif SC", "Songti SC", serif;
  --brush: "Ma Shan Zheng", "Noto Serif SC", cursive;

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--seal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 248, 248, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hairline2);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 18px;
}
.brand .mark {
  font-family: var(--brush);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--charcoal); font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- Eyebrow (museum wall-label caption) ---- */
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--stone);
  font-weight: 600;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 24px 88px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-lo) 100%);
}
.hero .ridges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero-hanzi {
  font-family: var(--brush);
  font-size: clamp(88px, 18vw, 148px);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 6px;
  margin: 12px 0 4px;
}
.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 4.5vw, 30px);
  color: var(--stone);
  margin: 8px 0 0;
}
.hero p.lead {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 18px auto 0;
}

/* ---- Buttons / badges ---- */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  color: var(--seal-text);
  border: 1px solid var(--ink);
}
.badge:hover { text-decoration: none; opacity: 0.92; }
.badge.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.badge.soon { color: var(--text-muted); cursor: default; opacity: 0.75; }
.badge.soon:hover { text-decoration: none; opacity: 0.75; }
.badge small { font-weight: 400; opacity: 0.7; font-size: 11px; }

/* ---- Sections ---- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--paper-lo); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin: 10px 0 8px;
}
.section-head p { color: var(--text-muted); margin: 0; }

/* ---- Feature cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.card .glyph {
  font-family: var(--han);
  font-size: 30px;
  color: var(--seal);
  line-height: 1;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 14px 0 8px;
}
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---- Pricing ---- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-align: center;
}
.plan.featured { border: 2px solid var(--seal); }
.plan .tier { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.plan .price { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--seal); margin: 8px 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.plan li { padding: 6px 0 6px 22px; position: relative; color: var(--text-body); font-size: 15px; }
.plan li::before { content: "•"; position: absolute; left: 4px; color: var(--seal); }
.plan .note { font-style: italic; color: var(--text-muted); font-size: 13px; margin-top: 12px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--hairline2);
  padding: 40px 0;
  background: var(--paper);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--charcoal); font-size: 14px; }
.site-footer .copy { color: var(--text-muted); font-size: 13px; }

/* ---- Legal (privacy / terms) pages ---- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  margin: 6px 0 4px;
}
.legal .updated { color: var(--text-muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 34px 0 10px;
}
.legal h3 { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text-body); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal .disclaimer {
  background: rgba(163, 50, 40, 0.06);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--seal);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 22px 0;
}
.legal .back { display: inline-block; margin-top: 40px; font-size: 15px; }

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  section.block { padding: 56px 0; }
}
