/* AskHumans Slack app marketing pages — shared styles (Figma: Marketing pages V4 / Slack app pages) */

@font-face {
  font-family: "Peachi";
  src: url("/assets/fonts/Peachi-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peachi";
  src: url("/assets/fonts/Peachi-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peachi";
  src: url("/assets/fonts/Peachi-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --jasmine: #ffd972;
  --caribbean: #0f7173;
  --dark-teal: #272932;
  --black-900: #131313;
  --black-800: #292929;
  --black-700: #474747;
  --black-500: #747474;
  --white-50: #ffffff;
  --white-100: #f6f6f6;
  --white-300: #ececec;
  --white-400: #c9c9c9;
  --font-display: "Peachi", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black-900);
  background: var(--white-50);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
}
h2 {
  font-size: 40px;
  color: var(--dark-teal);
}
h3 {
  font-size: 32px;
  color: var(--black-900);
}
h4 {
  font-size: 24px;
  color: var(--black-900);
}

p {
  font-size: 18px;
  line-height: 1.45;
  color: var(--black-700);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 8px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--black-900);
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  filter: brightness(0.96);
}

.btn .slack-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
}

.btn-muted {
  background: var(--white-100);
  border-color: var(--white-300);
}

.btn-white {
  background: var(--white-50);
  border-color: var(--white-50);
}

.btn-outline {
  background: var(--white-50);
  border-color: var(--dark-teal);
}

.btn-dark {
  background: var(--dark-teal);
  border-color: var(--dark-teal);
  color: var(--white-50);
}

.btn-jasmine {
  background: var(--jasmine);
  border-color: var(--jasmine);
}

/* ---------- Navbar ---------- */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white-50);
  padding: 28px 112px;
}

.navbar .logo img {
  width: 153px;
  height: 34px;
}

/* ---------- Sections ---------- */

.section {
  padding: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  text-align: center;
  max-width: 997px;
}

/* ---------- Hero (homepage) ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 112px;
  background-color: var(--jasmine);
  background-image: linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("/assets/img/hero-photo.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero h1 {
  color: var(--white-50);
  max-width: 997px;
}

.hero p {
  font-size: 24px;
  color: var(--white-50);
  max-width: 634px;
}

/* ---------- Feature cards (homepage) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--white-300);
  border-radius: 16px;
}

.feature-card .card-icon {
  height: 48px;
  width: auto;
}

/* Tinted variant (support page features) */
.feature-card.tinted {
  background: rgba(165, 188, 242, 0.2);
  padding: 20px;
}

/* ---------- How it works (homepage) ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
  width: 100%;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  border-top: 1px solid var(--black-900);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 1000px;
  background: var(--caribbean);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--white-50);
  margin-bottom: 20px;
}

.step h4 {
  color: var(--black-900);
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--jasmine);
  text-align: center;
  gap: 28px;
}

.cta h2 {
  max-width: 997px;
}

.cta p {
  font-size: 24px;
  color: var(--dark-teal);
  max-width: 997px;
}

/* ---------- Article pages (privacy) ---------- */

.article {
  width: 100%;
  max-width: 958px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.article-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.article-header h1 {
  color: var(--black-900);
}

.article-header .meta {
  font-size: 14px;
  color: var(--black-500);
}

.article-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.article-block ul,
.article-block ol {
  padding-left: 27px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--black-700);
}

.article-block li {
  margin-bottom: 4px;
}

.link-teal {
  color: var(--caribbean);
  font-weight: 700;
}

.link-teal:hover {
  text-decoration: underline;
}

/* ---------- Support page ---------- */

.support-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 112px;
  min-height: 410px;
  overflow: hidden;
  background: var(--white-50);
}

.support-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 630px;
  position: relative;
  z-index: 1;
}

.support-hero-art {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%) rotate(-10.75deg);
  width: 34%;
  min-width: 380px;
  pointer-events: none;
}

.content-col {
  width: 100%;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.content-col ol {
  padding-left: 27px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--black-700);
}

.content-col ol li {
  margin-bottom: 12px;
}

.chip {
  display: inline-block;
  background: var(--caribbean);
  color: var(--white-50);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 8px;
}

/* FAQ accordion */

.faq-list {
  width: 100%;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-item {
  width: 100%;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--black-800);
}

.faq-question img {
  width: 14px;
  height: 10px;
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question img {
  transform: rotate(0deg);
}

.faq-answer {
  display: none;
  margin-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Troubleshooting cards */

.trouble-card {
  width: 100%;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--white-100);
  border: 1px solid var(--white-300);
  border-radius: 16px;
}

.trouble-card h4 {
  font-weight: 400;
  font-size: 20px;
}

.trouble-card ul {
  padding-left: 27px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--black-700);
}

/* Best practices */

.practices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
}

.practices-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.practice {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--black-900);
  padding: 0 112px 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 64px 0 40px;
}

.subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 466px;
  max-width: 100%;
}

.subscribe h3 {
  font-weight: 700;
  color: var(--white-50);
  white-space: nowrap;
}

.subscribe form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.subscribe input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--black-700);
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--white-50);
}

.subscribe input::placeholder {
  color: var(--white-400);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white-50);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom .logo-col {
  width: 302px;
}

.footer-bottom .logo-col img {
  width: 161px;
  height: 36px;
}

.footer-bottom .copyright {
  font-size: 14px;
  font-weight: 700;
  color: var(--white-400);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 302px;
}

.footer-socials img {
  width: 40px;
  height: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .navbar {
    padding: 20px 24px;
  }

  .section,
  .hero,
  .support-hero {
    padding: 64px 20px;
  }

  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 26px;
  }

  .hero p,
  .cta p {
    font-size: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .step-num {
    margin-bottom: 4px;
  }

  .support-hero {
    min-height: 0;
  }

  .support-hero-art {
    display: none;
  }

  .practices {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 0 20px 40px;
  }

  .subscribe {
    width: 100%;
  }

  .subscribe h3 {
    white-space: normal;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom .logo-col,
  .footer-socials {
    width: auto;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}
