/* Guoyu Buddy shared design tokens + utilities */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,100..700,0..1,-50..200&display=swap');

@font-face {
  font-family: 'jf-openhuninn';
  src: url('https://cdn.jsdelivr.net/gh/justfont/open-huninn-font/font/jf-openhuninn-1.1/jf-openhuninn-1.1.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #FFB800;
  --primary-hover: #ffc633;
  --primary-shadow: #E6A600;
  --primary-border: #D49C11;
  --bg: #F4F9FF;
  --bg-warm: #FFF9EA;
  --surface: #FFFFFF;
  --text: #334155;
  --text-strong: #1e293b;
  --text-muted: #94A3B8;
  --accent: #34D399;
  --accent-soft: #D1FAE5;
  --danger: #FB7185;
  --warning: #F97316;
  --border: #E2E8F0;

  --radius-card: 24px;
  --radius-btn: 100px;
  --radius-sm: 12px;

  --shadow-tactile: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-tactile-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lift: 0 20px 50px rgba(15, 23, 42, 0.10);

  --font-head: 'jf-openhuninn', 'Noto Sans TC', system-ui, sans-serif;
  --font-body: 'Noto Sans TC', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-head { font-family: var(--font-head); letter-spacing: 0.01em; }
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}
.mi-fill { font-variation-settings: 'FILL' 1; }

/* Tactile button: 3D pressable */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  font-size: 18px;
  border-bottom: 4px solid var(--primary-border);
  box-shadow: var(--shadow-tactile);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active {
  transform: translateY(4px);
  border-bottom-width: 0;
  margin-bottom: 4px;
  box-shadow: none;
}
.btn-primary.lg {
  padding: 22px 40px;
  font-size: 22px;
  border-bottom-width: 5px;
}
.btn-ghost {
  background: #fff;
  color: var(--text-strong);
  border-radius: var(--radius-btn);
  padding: 16px 28px;
  font-size: 16px;
  border-bottom: 4px solid var(--border);
  box-shadow: var(--shadow-tactile-sm);
}
.btn-ghost:hover { background: #fafcff; }
.btn-ghost:active {
  transform: translateY(4px);
  border-bottom-width: 0;
  margin-bottom: 4px;
  box-shadow: none;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tactile);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Utility */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  color: var(--text-strong);
  box-shadow: var(--shadow-tactile-sm);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

a { color: inherit; }

/* Subtle bg pattern */
.bg-dots {
  background-image: radial-gradient(circle, rgba(51, 65, 85, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===================================================================
 * Doc pages（support / privacy / terms 等靜態文件頁）共用樣式
 * 保持與 landing.html 一致的 nav + 黃色 accent + 深色 footer
 * =================================================================== */
.doc-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(244, 249, 255, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.doc-nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 24px;
}
.doc-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  color: var(--text-strong); text-decoration: none;
}
.doc-logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: block; object-fit: cover;
  box-shadow: var(--shadow-tactile-sm);
}
.doc-nav-back {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 15px;
  padding: 8px 16px; border-radius: 100px;
  background: #fff;
  box-shadow: var(--shadow-tactile-sm);
  border: 1px solid var(--border);
  transition: transform .15s;
}
.doc-nav-back:hover { transform: translateY(-1px); }
.doc-nav-back .material-symbols-outlined { font-size: 18px; }

.doc-hero {
  max-width: 880px; margin: 0 auto;
  padding: 56px 32px 32px; text-align: center;
}
.doc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: #fff; color: var(--text-strong);
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-tactile-sm);
  margin-bottom: 20px;
}
.doc-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.doc-hero h1 {
  font-family: var(--font-head);
  font-size: 44px; line-height: 1.15;
  font-weight: 700; color: var(--text-strong);
  margin: 0 0 16px; letter-spacing: -0.01em;
}
.doc-meta {
  font-size: 13px; color: var(--text-muted); margin: 0;
}
.doc-intro {
  font-size: 16px; color: var(--text); line-height: 1.7;
  max-width: 640px; margin: 16px auto 0;
}

.doc-body-wrap {
  max-width: 840px; margin: 0 auto; padding: 0 32px;
}
.doc-body {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tactile-sm);
  border: 1px solid var(--border);
  padding: 48px 44px;
}
.doc-body p, .doc-body li { font-size: 15px; color: var(--text); line-height: 1.8; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 6px 0 16px; }
.doc-body li { margin-bottom: 6px; }
.doc-body h2 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--text-strong);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700;
  color: var(--text-strong);
  margin: 22px 0 8px;
}
.doc-body a { color: var(--primary-shadow); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.doc-body a:hover { color: var(--primary); }
.doc-body strong { color: var(--text-strong); }
.doc-body .callout {
  background: var(--bg-warm);
  border: 1px solid #FCD34D;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 0 24px;
}
.doc-body .callout .email-line {
  font-size: 17px; font-weight: 700; color: var(--text-strong);
  margin: 8px 0 0;
}
.doc-body .callout .email-line a { color: var(--primary-shadow); }
.doc-body .callout .hint {
  font-size: 13px; color: var(--text-muted); margin-top: 8px;
}

.doc-related {
  max-width: 840px; margin: 24px auto 0; padding: 0 32px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.doc-related a {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--text-strong);
  padding: 10px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-tactile-sm);
  border: 1px solid var(--border);
  transition: transform .15s;
}
.doc-related a:hover { transform: translateY(-1px); }
.doc-related a .material-symbols-outlined { font-size: 16px; color: var(--primary-shadow); }

.doc-footer {
  background: #1E293B; color: #94A3B8;
  padding: 40px 32px 28px; margin-top: 64px;
}
.doc-footer-inner { max-width: 1240px; margin: 0 auto; text-align: center; }
.doc-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.doc-footer-brand img { width: 32px; height: 32px; border-radius: 10px; }
.doc-footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 14px 0 12px; }
.doc-footer-links a { color: #94A3B8; text-decoration: none; font-size: 14px; }
.doc-footer-links a:hover { color: #fff; }
.doc-footer-copy { font-size: 13px; opacity: 0.65; }

@media (max-width: 720px) {
  .doc-nav-inner { padding: 14px 20px; gap: 12px; }
  .doc-hero { padding: 40px 20px 24px; }
  .doc-hero h1 { font-size: 30px; }
  .doc-intro { font-size: 15px; }
  .doc-body-wrap { padding: 0 16px; }
  .doc-body { padding: 32px 24px; border-radius: 20px; }
  .doc-body h2 { font-size: 19px; }
  .doc-related { padding: 0 20px; }
  .doc-footer-links { gap: 12px; }
}
