/* Pawtel Documentation — matches the pawtel.app website design system */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Layout */
.layout { min-height: 100vh; display: flex; flex-direction: column; }

/* --- Site nav (same as homepage): static brand + floating glass bar --- */
.site-brand { display: flex; justify-content: center; padding: 18px 0 10px; }
.nav-logo { height: 46px; display: block; }
.nav {
  position: fixed; top: 86px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
  transition: top 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav.nav-stuck { top: 14px; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center;
  padding: 8px 10px; border-radius: 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 32px rgba(3,32,17,0.14), inset 0 1px 1px rgba(255,255,255,0.9);
}
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.nav-cta) {
  position: relative; z-index: 1; font-size: 14px; font-weight: 500; color: #555;
  padding: 9px 14px; border-radius: 10px; text-decoration: none;
  transition: color 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links a:not(.nav-cta):hover { color: #0E8345; transform: scale(1.08); text-decoration: none; }
.nav-links a.nav-active { color: #0E8345; font-weight: 600; }
.nav-glow {
  position: absolute; top: 50%; left: 0; width: 64px; height: 46px; z-index: 0;
  transform: translate(-50%, -50%); border-radius: 12px; opacity: 0;
  background: radial-gradient(closest-side, rgba(14,131,69,0.4), rgba(167,243,208,0.28) 60%, transparent);
  filter: blur(12px); pointer-events: none;
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s ease, opacity 0.3s ease;
}
.nav-cta {
  background: linear-gradient(180deg, #12A155 0%, #0E8345 100%); color: #fff !important;
  padding: 10px 22px; margin-left: 6px; text-decoration: none;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(6,56,31,0.25), 0 2px 4px rgba(3,32,17,0.15), 0 8px 16px -4px rgba(14,131,69,0.4), inset 0 1px 1px rgba(255,255,255,0.35);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-cta:hover { transform: translateY(-2px); text-decoration: none; }
@media (max-width: 540px) { .nav-links a:not(.nav-cta):not(.nav-active) { display: none; } }

/* Docs section tabs (below hero) */
.docs-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px;
  margin: 0 auto 40px; padding: 6px; width: fit-content;
  background: #fff; border: 1px solid rgba(3,32,17,0.08); border-radius: 14px;
  box-shadow: 0 12px 32px -18px rgba(3,32,17,0.25);
}
.docs-tabs a {
  font-size: 14px; font-weight: 600; color: #555;
  padding: 9px 18px; border-radius: 10px;
  transition: all 0.25s;
}
.docs-tabs a:hover { color: #0E8345; background: #f0fdf4; }
.docs-tabs a.active {
  background: linear-gradient(180deg, #12A155 0%, #0E8345 100%); color: #fff;
  box-shadow: 0 0 0 1px rgba(6,56,31,0.25), 0 2px 4px rgba(3,32,17,0.15), 0 8px 16px -4px rgba(14,131,69,0.4), inset 0 1px 1px rgba(255,255,255,0.35);
}

/* Main */
.main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

/* Page */
.page { animation: fadeIn 0.25s ease; }

/* Hero */
.hero { text-align: center; padding: 8px 0 28px; }
.hero-title {
  font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -1.5px;
  color: #032011; margin-bottom: 14px; line-height: 1.1;
}
.hero-subtitle { font-size: 17px; color: #666; line-height: 1.65; max-width: 520px; margin: 0 auto; }

/* Page title */
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; color: #032011; margin-bottom: 8px; }
.page-subtitle { font-size: 16px; color: #666; margin-bottom: 28px; line-height: 1.6; }

/* Breadcrumb */
.breadcrumb { font-size: 13.5px; color: #999; margin-bottom: 24px; }
.breadcrumb a { color: #0E8345; font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* List group — card stack */
.list-group { display: flex; flex-direction: column; gap: 14px; }

.list-item {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  gap: 18px;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(3,32,17,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 32px -20px rgba(3,32,17,0.25);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}

.list-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14,131,69,0.35);
  box-shadow: 0 22px 44px -20px rgba(3,32,17,0.35);
}

.list-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item-content { flex: 1; min-width: 0; }
.list-item-title { display: block; font-size: 16.5px; font-weight: 700; color: #032011; margin-bottom: 3px; letter-spacing: -0.2px; }
.list-item-description { display: block; font-size: 14px; color: #888; line-height: 1.5; }

/* Content sections */
.section {
  background: #fff;
  border: 1px solid rgba(3,32,17,0.08);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px -22px rgba(3,32,17,0.22);
}

.section h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #032011;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(3,32,17,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section h3 { font-size: 16px; font-weight: 700; color: #032011; margin-top: 22px; margin-bottom: 8px; }
.section p { font-size: 15.5px; color: #444; line-height: 1.7; margin-bottom: 12px; }
.section ul, .section ol { margin-left: 20px; margin-bottom: 12px; }
.section li { font-size: 15.5px; color: #444; line-height: 1.7; margin-bottom: 6px; }
.section strong { color: #032011; }
.section a { color: #0E8345; font-weight: 600; text-decoration: none; }
.section a:hover { text-decoration: underline; }

/* Table of contents */
.toc {
  background: #fff;
  border: 1px solid rgba(3,32,17,0.08);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px -22px rgba(3,32,17,0.22);
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0E8345;
  padding: 20px 22px 12px;
}

.toc a {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border-top: 1px solid rgba(3,32,17,0.06);
  transition: background-color 0.2s, color 0.2s;
}

.toc a:hover { background-color: #f0fdf4; color: #0E8345; }

/* Tips & Notes */
.tip {
  background: #f0fdf4;
  border-left: 4px solid #0E8345;
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
  margin: 16px 0;
}
.tip p { color: #166534; margin: 0; }
.tip strong { color: #0E8345; }

.note {
  background: #FFF9E6;
  border-left: 4px solid #F6B100;
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
  margin: 16px 0;
}
.note p { color: #92400E; margin: 0; }
.note strong { color: #D97706; }

/* FAQ */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #fff;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(3,32,17,0.08);
  box-shadow: 0 12px 32px -22px rgba(3,32,17,0.22);
}

.tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 10px;
  transition: all 0.25s;
  font-family: inherit;
}

.tab:hover { color: #0E8345; }

.tab.active {
  background: linear-gradient(180deg, #12A155 0%, #0E8345 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(6,56,31,0.25), 0 2px 4px rgba(3,32,17,0.15), 0 8px 16px -4px rgba(14,131,69,0.4), inset 0 1px 1px rgba(255,255,255,0.35);
}

.faq-section { display: none; }
.faq-section.active { display: block; }

.faq-category { margin-bottom: 28px; }
.faq-category-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  padding-left: 4px;
  color: #032011;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(3,32,17,0.08);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover { border-color: rgba(14,131,69,0.3); }
.faq-item.open { border-color: rgba(14,131,69,0.35); box-shadow: 0 12px 32px -22px rgba(3,32,17,0.3); }

.faq-question {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #032011;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover { color: #0E8345; }

.faq-arrow {
  font-size: 18px;
  color: #0E8345;
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin-bottom: 8px; }
.faq-answer ul { margin-left: 20px; margin-bottom: 8px; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer a { color: #0E8345; font-weight: 600; }

/* Support banner */
.support-banner {
  background: linear-gradient(135deg, #0E8345 0%, #06381F 100%);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 36px;
  box-shadow: 0 24px 48px -24px rgba(6,56,31,0.5);
}

.support-banner h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; color: #fff; }
.support-banner p { font-size: 15.5px; color: rgba(209,250,229,0.85); margin-bottom: 24px; }

.support-banner a {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #06381F;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(3,32,17,0.2), 0 10px 20px -6px rgba(3,32,17,0.35);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
}

.support-banner a:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(3,32,17,0.2), 0 16px 28px -6px rgba(3,32,17,0.4); }

/* --- Site footer (same as homepage) --- */
.footer { border-top: 1px solid #f0f0f0; padding: 56px 32px 32px; background: #fafafa; margin-top: 40px; }
.footer a { text-decoration: none; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { font-size: 13px; color: #888; line-height: 1.6; margin-top: 16px; max-width: 280px; }
.footer-brand img { height: 32px; }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 10px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  color: #666; transition: all 0.2s;
}
.social-icons a:hover { background: #0E8345; color: #fff; transform: translateY(-2px); }
.social-icons svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #555; padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: #0E8345; text-decoration: none; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #bbb; }
.footer-badges { display: flex; gap: 12px; }
.footer-badges img { height: 38px; opacity: 0.7; transition: opacity 0.2s; }
.footer-badges a:hover img { opacity: 1; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 30px; }
  .page-title { font-size: 24px; }
  .section { padding: 24px 20px; }
  .main { padding: 88px 16px 48px; }
  .list-item { padding: 18px; }
  .docs-tabs a { padding: 9px 12px; font-size: 13px; }
}
