/* Cami marketing site layout refinements (FAQ, legal, cards). */

/* styles.css Tailwind build is incomplete — spacing fallbacks used across HTML */
.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-24 {
  padding-top: 6rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

@media (min-width: 768px) {
  .md\:p-10 {
    padding: 2.5rem;
  }
}

/* Capsule cards — extra horizontal inset for readable Chinese copy */
a.feature-card.rounded-2xl.block,
a.rounded-xl.block,
.capsule-link {
  padding: 1.25rem 1.375rem;
  line-height: 1.65;
  box-sizing: border-box;
}

a.feature-card.rounded-2xl.block h3,
.capsule-link strong:first-child {
  display: block;
  margin: 0 0 0.5rem;
}

a.feature-card.rounded-2xl.block p,
.capsule-link {
  color: #5c4a3a;
}

div.rounded-2xl.p-5,
div.rounded-2xl.p-4 {
  padding: 1.25rem 1.375rem;
  box-sizing: border-box;
}

.content-card.rounded-2xl.p-8,
.content-card.rounded-3xl.p-8 {
  padding: 1.75rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .content-card.rounded-2xl.p-8,
  .content-card.rounded-3xl.p-8 {
    padding: 2rem 1.75rem;
  }
}

.feature-card.rounded-2xl.p-6,
.feature-card.rounded-3xl.p-8 {
  box-sizing: border-box;
}

.compare-col {
  padding: 0.875rem 1rem !important;
}

.step-item {
  padding: 0.375rem 0.75rem !important;
}

.footer-tags {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.25rem 0.25rem;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.footer-tags::-webkit-scrollbar {
  display: none;
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  color: #5c4a3a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(200, 180, 160, 0.38);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-tag:hover {
  color: #5c4033;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(196, 149, 106, 0.48);
  box-shadow: 0 0.125rem 0.5rem rgba(92, 64, 51, 0.08);
}

.gap-x-6 {
  column-gap: 1.5rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.faq-panel {  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 180, 160, 0.32);
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.75rem rgba(92, 64, 51, 0.06);
  overflow: hidden;
}

.faq-row + .faq-row {
  border-top: 1px solid rgba(200, 180, 160, 0.28);
}

.faq-row button,
.faq-row .faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #5c4033;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
}

.faq-row button:hover,
.faq-row .faq-trigger:hover {
  background: rgba(196, 149, 106, 0.06);
}

.faq-row button:focus-visible,
.faq-row .faq-trigger:focus-visible {
  outline: 2px solid rgba(166, 123, 91, 0.45);
  outline-offset: -2px;
}

.faq-toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 149, 106, 0.14);
  color: #a67b5b;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}

.faq-answer-body {
  padding: 0 1.25rem 1.125rem;
  color: #5c4a3a;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item .faq-answer.open {
  max-height: 24rem;
}

.faq-item .faq-answer .faq-answer-body {
  padding-top: 0;
  padding-bottom: 1.125rem;
}

.faq-item .faq-trigger {
  padding-right: 1.25rem;
}

/* Legacy stacked cards: add breathing room */
.faq-list-loose > * + * {
  margin-top: 0.875rem !important;
}

.legal-shell {
  min-height: 100vh;
}

.legal-main {
  max-width: 44rem;
}

.legal-intro {
  margin-bottom: 1.5rem;
}

.legal-section {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 180, 160, 0.32);
  border-radius: 1rem;
  padding: 1.25rem 1.375rem;
  margin-bottom: 0.875rem;
  box-shadow: 0 0.35rem 1.25rem rgba(92, 64, 51, 0.05);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  color: #5c4033;
}

.legal-section p,
.legal-section li {
  margin: 0 0 0.625rem;
  color: #5c4a3a;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-section p:last-child,
.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.125rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-section th,
.legal-section td {
  border: 1px solid rgba(200, 180, 160, 0.35);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-section th {
  background: rgba(245, 230, 211, 0.45);
  color: #5c4033;
}

.legal-footer-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 180, 160, 0.28);
  color: #8b7355;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Xiaohongshu brand icon */
.xhs-icon-wrap {
  background: rgba(255, 36, 66, 0.12);
}

.xhs-brand-icon {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.xhs-icon-badge {
  background: #ff2442;
}

.xhs-icon-badge .xhs-brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  filter: brightness(0) invert(1);
}

.copy-email-btn {
  cursor: pointer;
  border: none;
  width: 100%;
  max-width: 18rem;
  font: inherit;
}

.copy-email-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #5c4033;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.copy-email-toast.is-visible {
  opacity: 1;
}

@media (max-width: 640px) {
  .faq-row button,
  .faq-row .faq-trigger {
    min-height: 3.25rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .legal-section {
    padding: 1rem 1.0625rem;
  }
}
