/* Shared styles for TrueFlow public pages: /support, /privacy-policy, /terms-of-use */

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

body {
  background: #F7F8FA;
  color: #111318;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: 28px 20px 0;
  text-align: center;
}

.page-header .brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: #111318;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-main.wide {
  max-width: 880px;
}

.page-main-top {
  padding-top: 56px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #111318;
}

.page-main p {
  font-size: 15px;
  color: #4B5563;
  margin-bottom: 16px;
}

.page-main a.inline-link {
  color: #111318;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #E7C55A;
  text-underline-offset: 2px;
}

/* Footer — shared across all public pages */
.public-footer {
  text-align: center;
  padding: 32px 20px 40px;
}

.public-footer .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-footer .links a {
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
  text-decoration: none;
}

.public-footer .links a:hover,
.public-footer .links a:focus-visible {
  color: #111318;
}

.public-footer .divider {
  color: #C1C5CC;
  font-size: 12px;
}

.public-footer .copyright {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 10px;
  font-weight: 500;
}

.public-footer .version {
  font-size: 10px;
  color: #C1C5CC;
  margin-top: 3px;
  font-weight: 500;
}

/* Hero (support page) */
.hero {
  text-align: center;
  padding: 8px 0 12px;
}

.hero .brand-large {
  font-size: 34px;
  font-weight: 800;
  color: #111318;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #111318;
}

.hero p {
  font-size: 16px;
  color: #4B5563;
  max-width: 520px;
  margin: 0 auto 24px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  background: #111318;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.85;
}

/* Section blocks (support page) */
.section {
  padding: 36px 0;
  border-top: 1px solid #E7EAF0;
}

.section h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: #111318;
  text-align: center;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.audience-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #E7EAF0;
}

.audience-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: #B8860B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 16px 0;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111318;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5c842;
  flex-shrink: 0;
}

.feature-card p {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 0;
  line-height: 1.55;
}

.help-block {
  text-align: center;
}

.help-block h2 {
  margin-bottom: 8px;
}

.help-block p {
  margin-bottom: 0;
}
/* Back to top button (shared across public pages) */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111318;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 30;
}
.back-to-top.is-visible {
  opacity: 0.9;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  html { scroll-behavior: auto; }
}