/* HiveThread marketing site — shared stylesheet
   Used by every page. No inline <style> blocks elsewhere.
*/

/* ---- Reset & box model ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #b45309; text-decoration: none; }
a:hover { color: #92400e; text-decoration: underline; }
a:focus-visible { outline: 2px solid #b45309; outline-offset: 2px; border-radius: 2px; }

/* ---- Typography scale ---- */
h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; color: #1a1a2e; }
h1 em { font-style: normal; color: #d97706; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; color: #1a1a2e; margin-bottom: 16px; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; color: #1a1a2e; margin-bottom: 8px; }
h4 { font-size: 18px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
p { color: #444; margin-bottom: 16px; }
.lead { font-size: 19px; color: #444; line-height: 1.6; }
.meta { font-size: 14px; color: #6b7280; }
.caption { font-size: 14px; color: #6b7280; }

/* ---- Layout shells ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(48px, 8vw, 120px) 0; }
section.tight { padding: clamp(32px, 5vw, 64px) 0; }

/* ---- Top nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e8f0;
}
.site-header .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #d97706;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.site-header .logo span { color: #1a1a2e; }
.site-header .logo:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 28px; flex: 1; }
.site-header nav a {
  color: #444;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover { color: #1a1a2e; text-decoration: none; }
.site-header .nav-cta { display: flex; gap: 16px; align-items: center; }
.site-header .login {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
}
.site-header .login:hover { color: #1a1a2e; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: #1a1a2e; }

@media (max-width: 760px) {
  .site-header .inner { gap: 0; justify-content: space-between; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid #e8e8f0;
  }
  .site-header nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .login { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: background 150ms ease, transform 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid #1a1a2e; outline-offset: 2px; }
.btn-primary { background: #b45309; color: #fff; }
.btn-primary:hover { background: #92400e; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #1a1a2e; border: 1px solid #e8e8f0; }
.btn-secondary:hover { border-color: #1a1a2e; color: #1a1a2e; }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #e8e8f0;
  padding: 64px 0 32px;
  background: #f9f9fb;
}
.site-footer .columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer .col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 16px;
}
.site-footer .col a {
  display: block;
  color: #444;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 8px;
}
.site-footer .col a:hover { color: #1a1a2e; text-decoration: none; }
.site-footer .copyright {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e8e8f0;
}

@media (max-width: 760px) {
  .site-footer .columns { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Cards ---- */
.card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 14px;
  padding: 28px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06); border-color: #d4d4dc; }
.card-amber-accent { border-top: 3px solid #d97706; padding-top: 25px; }

/* ---- Testimonials ---- */
.testimonial {
  background: #fef3c7;
  border-radius: 14px;
  padding: 32px;
  border: 1px solid #fde68a;
}
.testimonial blockquote {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a2e;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial cite {
  font-size: 14px;
  color: #78350f;
  font-style: normal;
  font-weight: 600;
}

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}
.pricing-card.popular { border-color: #b45309; border-width: 2px; padding: 31px 27px; }
.pricing-card .badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #b45309;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
}
.pricing-card .tier-name { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #6b7280; margin-bottom: 12px; }
.pricing-card .price { font-size: 44px; font-weight: 800; color: #1a1a2e; letter-spacing: -1px; }
.pricing-card .price-suffix { font-size: 16px; color: #6b7280; font-weight: 500; }
.pricing-card .price-meta { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.pricing-card .tier-summary { font-size: 15px; color: #444; margin-bottom: 24px; min-height: 48px; }
.pricing-card .feature-list { list-style: none; padding: 0; margin: 0 0 28px; }
.pricing-card .feature-list li { font-size: 15px; color: #444; padding: 6px 0; padding-left: 24px; position: relative; }
.pricing-card .feature-list li::before { content: '✓'; position: absolute; left: 0; color: #d97706; font-weight: 700; }
.pricing-card .btn { width: 100%; text-align: center; }

@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---- Comparison table ---- */
.compare-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.compare-table thead th {
  background: #fef3c7;
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  border: 1px solid #fde68a;
  color: #78350f;
}
.compare-table tbody th {
  text-align: left;
  padding: 12px 18px;
  font-weight: 600;
  background: #f9f9fb;
  border: 1px solid #e8e8f0;
  color: #1a1a2e;
}
.compare-table td {
  padding: 12px 18px;
  border: 1px solid #e8e8f0;
  text-align: center;
  color: #444;
}
.compare-table .check { color: #d97706; font-weight: 700; }
.compare-table .partial { color: #78350f; }
.compare-table .x { color: #ccc; }
.compare-table .section-row th {
  background: #1a1a2e;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 18px;
}

@media (max-width: 760px) {
  .compare-table { font-size: 14px; }
  .compare-table thead th, .compare-table tbody th, .compare-table td { padding: 8px 10px; }
}

/* ---- FAQ accordion ---- */
.faq details {
  border-bottom: 1px solid #e8e8f0;
  padding: 16px 0;
}
.faq details:first-of-type { border-top: 1px solid #e8e8f0; }
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: #d97706;
  font-weight: 700;
  transition: transform 150ms ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: #d97706; }
.faq details p { margin-top: 12px; color: #444; line-height: 1.6; }

/* ---- Made-for chips ---- */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 16px 0 24px; }
.chip {
  background: #f9f9fb;
  border: 1px solid #e8e8f0;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

/* ---- Hero ---- */
.hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(48px, 8vw, 100px);
  background: radial-gradient(ellipse at top, rgba(254, 243, 199, 0.5) 0%, transparent 60%);
}
.hero .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 16px; align-items: center; }
.hero .cta-row .secondary { color: #444; font-size: 15px; }
.hero .channel-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hero .channel-pills span {
  background: #f9f9fb;
  border: 1px solid #e8e8f0;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
}
.hero .image-wrap { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px rgba(26, 26, 46, 0.08), 0 4px 12px rgba(26, 26, 46, 0.04); border: 1px solid #e8e8f0; }

@media (max-width: 960px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero .image-wrap { order: 2; }
}

/* ---- Feature cards row (3-up) ---- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #d97706;
  font-size: 24px;
  font-weight: 700;
}
.feature-card .learn-more {
  font-size: 14px;
  font-weight: 600;
  color: #b45309;
  display: inline-block;
  margin-top: 12px;
}

@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }

/* ---- Features page rows (alternating) ---- */
.feature-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.feature-detail .image-wrap { border-radius: 14px; overflow: hidden; border: 1px solid #e8e8f0; box-shadow: 0 12px 24px rgba(26, 26, 46, 0.06); }
.feature-detail.reverse > .image-wrap { order: 2; }

@media (max-width: 760px) {
  .feature-detail { grid-template-columns: 1fr; gap: 32px; }
  .feature-detail.reverse > .image-wrap { order: 0; }
}

/* ---- Callout / banner ---- */
.callout {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 24px;
  color: #78350f;
}

/* ---- CTA strips ---- */
.cta-strip {
  background: #1a1a2e;
  color: #fff;
  border-radius: 18px;
  padding: clamp(48px, 7vw, 80px);
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255, 255, 255, 0.8); font-size: 18px; margin-bottom: 32px; }

/* ---- Legal pages ---- */
.legal main { max-width: 760px; margin: 48px auto; padding: 0 24px 80px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: #444; line-height: 1.7; }
.legal ul, .legal ol { margin: 12px 0 16px 20px; }
.legal ul li, .legal ol li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.legal table th { background: #fef3c7; text-align: left; padding: 10px 14px; font-weight: 600; border: 1px solid #fde68a; color: #78350f; }
.legal table td { padding: 10px 14px; border: 1px solid #e8e8f0; color: #444; vertical-align: top; }
.legal code { background: #f1f1f6; padding: 2px 6px; border-radius: 4px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; color: #1a1a2e; }
.legal .meta { font-size: 14px; color: #6b7280; padding-bottom: 32px; border-bottom: 1px solid #e8e8f0; margin-bottom: 32px; }
.legal-body { background: #f9f9fb; }

/* ---- 2-col grid utility (testimonials, etc.) ---- */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col-grid { grid-template-columns: 1fr; } }

/* ---- Inline-paragraph links: underline so they don't rely on colour alone ---- */
p a, .legal a, .faq details p a { text-decoration: underline; text-underline-offset: 2px; }
p a:hover, .legal a:hover { text-decoration: underline; }

/* ---- Misc ---- */
.text-center { text-align: center; }
.muted { color: #6b7280; }
.amber { color: #d97706; }
