/*
 * TapTidy — shared base styles
 * Used by all static marketing pages under /public/
 * landing.html inlines its own copy of these for performance;
 * all other pages link to this file.
 */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #faf8f5;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }

/* ── Fade animation ── */
.fade-section { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* ── Nav ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: #faf8f5;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #1a1a2e;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: #059669;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: #555;
}
.nav-links a { color: #555; }
.nav-links a:hover { color: #059669; }
.nav-cta {
  background: #059669;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Section label ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 12px;
}

/* ── Page hero ── */
.page-hero {
  padding: 64px 48px 48px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero .subtitle {
  font-size: 17px;
  color: #555;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.page-hero .hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: #059669;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-block;
  background: white;
  color: #1a1a2e;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid #ddd;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: #aaa; }

/* ── Page main content wrapper ── */
main { flex: 1; }

/* ── Content sections ── */
.content-section {
  padding: 56px 48px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.content-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}
.content-section p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-section p:last-child { margin-bottom: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 48px;
  font-size: 12px;
  color: #aaa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: #059669; }
.breadcrumb span { color: #ccc; }

/* ── CTA band ── */
.cta-band {
  background: #059669;
  text-align: center;
  padding: 64px 48px;
}
.cta-band h2 {
  font-size: 30px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.cta-band .btn-white {
  display: inline-block;
  background: white;
  color: #059669;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.cta-band .btn-white:hover { opacity: 0.9; }
.cta-band .cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid #eee;
  padding: 28px 48px;
  font-size: 12px;
  color: #999;
  background: #faf8f5;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy { padding-top: 2px; }
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav-group { display: flex; flex-direction: column; gap: 6px; }
.footer-nav-group strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
  margin-bottom: 2px;
}
.footer-nav-group a:hover { color: #059669; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .breadcrumb { padding: 10px 16px; }
  .page-hero { padding: 40px 20px 36px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero .subtitle { font-size: 15px; }
  .content-section { padding: 40px 20px; }
  .content-section h2 { font-size: 22px; }
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 24px; }
  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav { gap: 20px; }
}
