:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --border: #e4e7ec;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Site Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 58px;
}

.site-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.site-name:hover { color: var(--accent); text-decoration: none; }

/* ── Main Content ── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px 88px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 52px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0;
}

/* ── Section Label ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ── Apps Grid ── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 52px;
}

@media (max-width: 620px) {
  .apps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}

.app-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 8px 28px rgba(0,0,0,0.07);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
}

.app-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  align-self: flex-start;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ── General Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.card h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.1px;
}

.card p, .card li { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.card p:last-child, .card li:last-child { margin-bottom: 0; }
.card ul { padding-left: 18px; margin: 0; }
.card a { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .sep { margin: 0 8px; }

/* ── Support Pages ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.back-link:hover { color: var(--accent); text-decoration: none; }

.support-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 44px;
}

.support-hero img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  flex-shrink: 0;
}

.support-hero h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}

.support-hero p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.contact-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 18px 22px;
}

.contact-box .contact-label {
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 4px;
  color: var(--text);
}

.contact-box .contact-email a {
  font-size: 15px;
  color: var(--accent);
}

.contact-box .contact-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Policy Pages (generic) ── */
.policy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.policy-wrap h1 { font-size: 26px; font-weight: 800; margin-top: 0; letter-spacing: -0.4px; }
.policy-wrap h2 { font-size: 16px; font-weight: 700; margin-top: 32px; margin-bottom: 8px; }
.policy-wrap p, .policy-wrap li { font-size: 15px; line-height: 1.65; color: #374151; }
.policy-wrap .muted { color: var(--muted); font-size: 13px; }
.policy-wrap a { color: var(--accent); }

/* ── App Policy Document Pages ── */
.doc-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.doc-meta img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.doc-meta-text .app-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 2px;
}

.doc-meta-text .doc-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.1px;
}

.doc-meta-text .doc-date {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

.doc-section {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.doc-section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 20px;
}

.doc-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.1px;
}

.doc-section-body {
  padding: 16px 22px 18px;
}

.doc-section-body p {
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 10px;
}

.doc-section-body p:last-child { margin-bottom: 0; }

.doc-section-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
  letter-spacing: -0.1px;
}

.doc-section-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.doc-section-body ul, .doc-section-body ol {
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  padding-left: 20px;
  margin: 6px 0;
}

.doc-section-body li { margin-bottom: 4px; }
.doc-section-body li:last-child { margin-bottom: 0; }

.doc-section-body a { color: var(--accent); }

.doc-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 14px;
  color: #1e3a5f;
  line-height: 1.55;
}

.doc-callout strong { color: #1e3a5f; }

.doc-callout-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

.doc-contact {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 10px;
}

.doc-contact p { font-size: 14px; color: #374151; margin: 0 0 4px; }
.doc-contact p:last-child { margin: 0; }
.doc-contact a { color: var(--accent); font-weight: 600; }
