:root {
  --zh-bg: #faf8f3;
  --zh-bg-card: #ffffff;
  --zh-bg-soft: #f4f1e8;
  --zh-text: #1a1a1a;
  --zh-text-muted: #6a6a66;
  --zh-text-subtle: #9a9a96;
  --zh-border: rgba(26, 26, 26, 0.08);
  --zh-border-strong: rgba(26, 26, 26, 0.16);
  --zh-accent: #b8956a;
  --zh-accent-soft: #ede4d4;
  --zh-success: #4f7a4a;
  --zh-warn: #b87f3a;
  --zh-info: #4a6d8c;
  --zh-radius: 6px;
  --zh-radius-lg: 12px;
  --zh-font-serif: 'Cormorant Garamond', Georgia, serif;
  --zh-font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--zh-bg);
  color: var(--zh-text);
  font-family: var(--zh-font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--zh-font-serif);
  font-weight: 500;
  color: var(--zh-text);
}

a {
  color: inherit;
}

.zh-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zh-border);
}

.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-brand img.brand-symbol {
  height: 26px;
  width: auto;
  display: block;
}

.site-brand img.brand-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--zh-text-muted);
  transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--zh-text);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-login {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--zh-text-muted);
  transition: color 0.18s ease;
}

.site-login:hover {
  color: var(--zh-text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--zh-border-strong);
  border-radius: var(--zh-radius);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--zh-text);
  cursor: pointer;
}

/* Shared UI Components */
.zh-eyebrow {
  font-family: var(--zh-font-sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--zh-text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.zh-hero {
  text-align: center;
  padding: 68px 20px 56px;
}

.zh-hero h1 {
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 auto 22px;
  max-width: 780px;
  letter-spacing: -0.5px;
}

.zh-hero-lede {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--zh-text-muted);
  max-width: 630px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.zh-hero-lede em {
  color: var(--zh-text);
  font-style: italic;
}

.zh-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.zh-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: var(--zh-radius);
  transition: all 0.18s ease;
  cursor: pointer;
  font-family: var(--zh-font-sans);
  border: 1px solid transparent;
}

.zh-btn-sm {
  padding: 9px 18px;
  font-size: 12px;
}

.zh-btn-primary {
  background: var(--zh-text);
  color: var(--zh-bg);
  border-color: var(--zh-text);
}

.zh-btn-primary:hover {
  background: #000000;
}

.zh-btn-secondary {
  background: transparent;
  color: var(--zh-text);
  border-color: var(--zh-border-strong);
}

.zh-btn-secondary:hover {
  background: var(--zh-bg-soft);
}

.zh-section {
  padding: 44px 0;
}

.zh-card {
  background: var(--zh-bg-card);
  border: 1px solid var(--zh-border);
  border-radius: var(--zh-radius-lg);
  padding: 44px;
}

.zh-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.zh-split-text h2 {
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.zh-split-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--zh-text-muted);
  margin: 0 0 16px;
}

.zh-split-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--zh-bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--zh-text);
}

.zh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.zh-tag {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--zh-border-strong);
  border-radius: 4px;
  color: var(--zh-text-muted);
  letter-spacing: 0.3px;
}

.zh-status-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--zh-border);
  font-size: 13px;
  color: var(--zh-text-muted);
  line-height: 1.7;
}

.zh-status-bar strong {
  color: var(--zh-text);
  font-weight: 500;
}

.zh-phone-frame {
  background: transparent;
  border-radius: 24px;
  padding: 16px;
  aspect-ratio: 9 / 18;
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
}

.zh-phone-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.zh-phone-fallback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f4f1e8 100%);
  border: 1px solid var(--zh-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  font-size: 12px;
  color: var(--zh-text-muted);
}

.zh-phone-fallback-header {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--zh-text-subtle);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zh-border);
  margin-bottom: 16px;
  text-align: center;
}

.zh-phone-msg {
  background: #fff;
  border: 1px solid var(--zh-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  line-height: 1.5;
  max-width: 85%;
}

.zh-phone-msg-mine {
  background: var(--zh-text);
  color: var(--zh-bg);
  border-color: var(--zh-text);
  margin-left: auto;
}

.zh-verify-console {
  background: #1a1a1a;
  border-radius: var(--zh-radius);
  padding: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.zh-verify-line {
  display: flex;
  gap: 8px;
}

.zh-verify-check {
  color: #6db86d;
  flex-shrink: 0;
}

.zh-verify-header {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.zh-verify-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.zh-verify-result-ok {
  color: #8fdc8f;
  font-weight: 500;
}

.zh-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.zh-section-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.zh-section-head p {
  color: var(--zh-text-muted);
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 15px;
}

.zh-tier-grid,
.zh-grid-2,
.zh-grid-3,
.zh-partners-grid {
  display: grid;
  gap: 18px;
}

.zh-tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.zh-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.zh-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.zh-partners-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.zh-tier-card {
  background: var(--zh-bg-card);
  border: 1px solid var(--zh-border);
  border-radius: var(--zh-radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease;
}

.zh-tier-card:hover {
  border-color: var(--zh-border-strong);
}

.zh-tier-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.zh-tier-label-live { color: var(--zh-success); }
.zh-tier-label-test { color: var(--zh-warn); }
.zh-tier-label-ready { color: var(--zh-info); }

.zh-tier-name {
  font-family: var(--zh-font-sans);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--zh-text);
}

.zh-tier-desc {
  font-size: 13.5px;
  color: var(--zh-text-muted);
  line-height: 1.65;
  margin: 0;
}

.zh-tier-footnote {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--zh-text-muted);
  font-style: italic;
}

.zh-validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.zh-val-status {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.zh-val-shipping { color: var(--zh-success); }
.zh-val-validated { color: var(--zh-warn); }
.zh-val-early { color: var(--zh-info); }

.zh-val-name {
  font-family: var(--zh-font-sans);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
}

.zh-val-desc {
  font-size: 13.5px;
  color: var(--zh-text-muted);
  line-height: 1.65;
  margin: 0;
}

.zh-partner-tile {
  background: var(--zh-bg-soft);
  border-radius: var(--zh-radius-lg);
  padding: 26px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.zh-partner-tile:hover {
  border-color: var(--zh-border-strong);
}

.zh-partner-name {
  font-family: var(--zh-font-sans);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
}

.zh-partner-desc {
  font-size: 13.5px;
  color: var(--zh-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Prose / Legal / About Layouts */
.zh-prose-card {
  background: var(--zh-bg-card);
  border: 1px solid var(--zh-border);
  border-radius: var(--zh-radius-lg);
  padding: 48px;
  max-width: 840px;
  margin: 0 auto;
}

.zh-prose-card h2 {
  font-size: 26px;
  margin: 36px 0 12px;
  line-height: 1.25;
}

.zh-prose-card h2:first-child {
  margin-top: 0;
}

.zh-prose-card h3 {
  font-family: var(--zh-font-sans);
  font-size: 15px;
  font-weight: 500;
  margin: 24px 0 8px;
}

.zh-prose-card p,
.zh-prose-card li {
  color: var(--zh-text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.zh-prose-card ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.zh-prose-card li {
  margin-bottom: 6px;
}

.zh-prose-card strong {
  color: var(--zh-text);
  font-weight: 500;
}

/* Contact Form */
.zh-form {
  display: grid;
  gap: 18px;
}

.zh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.zh-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--zh-text);
}

.zh-field input,
.zh-field select,
.zh-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--zh-border-strong);
  border-radius: var(--zh-radius);
  background: var(--zh-bg);
  color: var(--zh-text);
  font-family: var(--zh-font-sans);
  font-size: 14px;
  transition: border-color 0.18s ease;
}

.zh-field input:focus,
.zh-field select:focus,
.zh-field textarea:focus {
  outline: none;
  border-color: var(--zh-text);
  background: #fff;
}

.zh-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--zh-bg-soft);
  border-radius: var(--zh-radius);
  font-size: 12px;
  line-height: 1.6;
  color: var(--zh-text-muted);
}

.zh-consent-box input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.zh-consent-box a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zh-contact-section {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--zh-border);
  margin-top: 24px;
}

.zh-contact-section h2 {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 500;
  margin: 0 0 12px;
}

.zh-contact-email {
  font-size: 16px;
  color: var(--zh-text-muted);
  margin: 0;
}

.zh-contact-email a {
  color: var(--zh-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zh-contact-email a:hover {
  color: var(--zh-text);
}

/* Footer */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--zh-border);
  background: var(--zh-bg-soft);
  padding: 56px 0 40px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--zh-border);
}

.site-footer-brand p {
  font-size: 13.5px;
  color: var(--zh-text-muted);
  max-width: 320px;
  margin: 14px 0 0;
  line-height: 1.65;
}

.site-footer-col h4 {
  font-family: var(--zh-font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--zh-text);
  margin: 0 0 14px;
  font-weight: 500;
}

.site-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-col li {
  margin-bottom: 8px;
}

.site-footer-col a {
  text-decoration: none;
  font-size: 13px;
  color: var(--zh-text-muted);
  transition: color 0.18s ease;
}

.site-footer-col a:hover {
  color: var(--zh-text);
}

.site-footer-legal {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--zh-text-muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .site-nav,
  .site-actions {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .site-header.nav-open .site-header-inner {
    flex-wrap: wrap;
  }
  .site-header.nav-open .site-nav,
  .site-header.nav-open .site-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }
  .zh-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .zh-card,
  .zh-prose-card {
    padding: 28px 22px;
  }
  .zh-form-row {
    grid-template-columns: 1fr;
  }
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .zh-hero {
    padding: 44px 16px 36px;
  }
}

@media (max-width: 520px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}
