/* Account website — supplements buddy.css's pencil-sketchbook design system
   with the bits a marketing/form page needs that the pet app didn't. */

body.site { display: flex; justify-content: center; }
.site-wrap { max-width: 480px; width: 100%; margin: 0 auto; padding: 24px 16px 40px; }

.hero { text-align: center; margin-bottom: 18px; }
.hero h1 { font-size: 32px; margin-bottom: 6px; }
.hero p { color: var(--ink-soft); font-size: 16px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-bottom: 4px; }
.field input, .field select {
  width: 100%; font-family: var(--hand); font-size: 16px; color: var(--ink);
  border: var(--line); border-radius: 10px 13px 9px 12px / 13px 9px 12px 10px;
  padding: 7px 12px;
}

.form-msg { min-height: 20px; font-size: 13px; margin-top: 6px; }
.form-msg.error { color: var(--rose); }
.form-msg.success { color: var(--blue-deep); }

.nav-links { text-align: center; margin-top: 14px; font-size: 14px; }
.nav-links a { color: var(--blue-deep); }

.code-display {
  font-family: var(--hand); font-size: 22px; letter-spacing: .06em;
  text-align: center; padding: 10px; border: var(--line); border-radius: 10px;
  margin: 10px 0; background: #f2f5fc;
}

.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }

/* Long-form content pages (Terms, Privacy, FAQ) — wider than the 480px
   form wrap, with basic heading/list/paragraph rhythm since these pages
   render hand-written prose rather than a form. */
.site-wrap.wide { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 18px 0 6px; }
.prose p { margin: 0 0 12px; line-height: 1.55; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 4px; line-height: 1.5; }
.prose strong { color: var(--ink); }
.prose .meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.prose a { color: var(--blue-deep); }

.faq-item { margin-bottom: 18px; }
.faq-item h3 { font-size: 17px; margin: 0 0 6px; }
.faq-item p { margin: 0; line-height: 1.55; color: var(--ink); }

.site-footer { text-align: center; margin-top: 28px; font-size: 13px; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--blue-deep); }

/* Product highlight page (top of /alpha) */
.wave-carousel {
  overflow: hidden;
  margin: 18px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wave-carousel-track { display: flex; width: max-content; animation: wave-scroll 26s linear infinite; }
.wave-carousel-track img { width: 84px; height: 84px; margin: 0 10px; }
@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-carousel-track { animation: none; }
}

.highlight-section { text-align: center; margin: 30px 0 14px; }
.highlight-section p { color: var(--ink-soft); }

.highlight-row { display: flex; align-items: center; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.highlight-row.reverse { flex-direction: row-reverse; }
.highlight-row .highlight-text { flex: 1 1 200px; min-width: 180px; line-height: 1.5; }
.highlight-row img {
  flex: 1 1 200px; max-width: 220px; width: 100%;
  border: var(--line); border-radius: 14px 10px 15px 9px / 10px 15px 9px 14px;
}

.ec-carousel { display: flex; justify-content: center; margin: 16px 0 4px; }
.ec-viewport {
  position: relative; width: clamp(150px, 46vw, 190px); aspect-ratio: 4 / 7; margin: 0 auto;
}
.ec-slide {
  position: absolute; top: 50%; left: 50%; width: clamp(64px, 20vw, 84px); aspect-ratio: 4 / 7;
  opacity: .45; z-index: 1;
  transform: translate(-50%, -50%) translateX(var(--ec-x, 0px)) scale(.86);
  transition: transform .5s ease, opacity .5s ease, width .5s ease;
}
.ec-slide.ec-active { width: clamp(150px, 46vw, 190px); opacity: 1; z-index: 2; transform: translate(-50%, -50%) scale(1); }
.ec-slide img {
  display: block; width: 100%; height: 100%; object-fit: contain; background: var(--paper);
  border: var(--line); border-radius: 14px 10px 15px 9px / 10px 15px 9px 14px;
}
.ec-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 8px; }
.ec-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 2px solid var(--ink-soft); background: transparent;
}
.ec-dot:hover { background: transparent; transform: none; }
.ec-dot-active { background: var(--blue-deep); border-color: var(--blue-deep); }

@media (max-width: 560px) {
  .highlight-row, .highlight-row.reverse {
    flex-direction: column; align-items: center; text-align: center;
  }
  .highlight-row .highlight-text { flex: none; width: 100%; }
  .highlight-row img { flex: none; max-width: 260px; }
  .ec-slide { width: clamp(48px, 16vw, 64px); }
  .ec-slide.ec-active { width: clamp(150px, 56vw, 190px); }
}

/* Admin dashboard */
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.stat-tile { flex: 1 1 120px; text-align: center; padding: 12px 8px; border: var(--line); border-radius: 10px 13px 9px 12px / 13px 9px 12px 10px; background: #f8f9fd; }
.stat-tile .stat-num { font-family: var(--hand); font-size: 28px; color: var(--blue-deep); display: block; }
.stat-tile .stat-label { font-size: 12px; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th, table.data-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; white-space: nowrap; }
table.data-table th { color: var(--ink-soft); font-weight: 800; }
table.data-table button { font-size: 12px; padding: 3px 8px; }
