@import url('https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Sans:wght@500&family=Source+Serif+4&display=swap');

:root {
  --color-background: var(--color-gray-100);
  --color-white: white;
  --color-gray-100: #f2f4f7;
  --color-gray-400: #98a2b3;
  --color-gray-600: #475467;
  --color-gray-900: #1d2939;
  --color-primary: #0bb;
  --font-mono-small: 12px/1 'DM Mono', monospace;
  --font-serif: 'Source Serif 4', serif;
  --max-width: 56rem;
  /* 896px */
  --shadow: #0123;
  --border-color: rgba(17, 24, 39, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #1d2939;
    --color-gray-100: #fff1;
    --color-gray-400: #fff6;
    --color-gray-600: #fff9;
    --color-gray-900: white;
    --color-white: #012;
    --border-color: rgba(17, 24, 39, 0.1);
  }
}

/* cascade */

* {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  background: var(--color-background);
  color: var(--color-gray-600);
  font-optical-sizing: auto;
  font: 500 1rem/1 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

li {
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

ul {
  padding: 0 0 0 1rem;
}

/* typography */

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--color-gray-900);
  font-weight: unset;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

em {
  font-family: var(--font-serif);
}

.lede {
  font-size: 20px;
  line-height: 1.5;
}

.big {
  font-size: 18px;
  line-height: 1.5rem;
}

p {
  /* font-size: 14px; */
  line-height: 1.5;
  text-wrap: pretty;
}

a {
  text-decoration: none;
}

.caps {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

code {
  color: var(--color-primary);
}

small {
  color: var(--gray-400);
  font-size: 12px;
}

.brand {
  color: var(--color-gray-900);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.brand > a:visited {
  color: var(--color-gray-900);
}

@media (max-width: 480px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

/* layout */

body {
  align-items: center;
  display: flex;
  flex-direction: column;
}

header,
section,
footer {
  width: 100%;
  /* fill width when parent has center flex */
}

section {
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  max-width: var(--max-width);
  padding: 2rem;
  position: relative;
}

#header,
#footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  padding: 2rem;
}

#header-nav {
  display: flex;
  gap: 8px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#footer {
  align-items: flex-start;
}

@media (max-width: 480px) {
  #header,
  #footer {
    flex-direction: column;
    gap: 1rem;
  }
}

/* hero */

#hero {
  min-height: 80vh;
}

@media (min-width: 720px) {
  #hero .lede {
    padding: 0 6rem;
  }

  .actions {
    display: flex;
    gap: 1rem;
  }
}

/* platform */

#slack-approval {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 1rem;
  width: 600px;
}

.thirds {
  gap: 1rem;
  max-width: unset;
}

img {
  border-radius: 1rem;
}

img.yc {
  border-radius: 0px;
  margin: 10px 0 0;
  width: 120px;
  vertical-align: baseline;
}

@media (min-width: 720px) {
  .thirds {
    flex-direction: unset;
    width: 80%;
  }

  .thirds > div {
    flex: 1;
  }

  .offset-third {
    margin-left: -5rem;
  }

  .text-third {
    max-width: 20rem;
    padding: 2rem;
  }

  .thirds + .thirds .text-third {
    order: 3;
  }
}

/* stacks */

#stacks .content {
  gap: unset;
}

.stacks {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.5rem;
  gap: 2rem;
  justify-content: center;
  letter-spacing: -0.04em;
  padding: 2rem;
}

/* features */

.features {
  text-align: left;
  display: grid;
  gap: 1rem;
  /* 3 grid columns */
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}

.pricing-faq {
  text-align: left;
  display: grid;
  gap: 1rem;
}

.pricing-faq > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* pricing */

#pricing .content {
  max-width: unset;
  text-align: left;
}

#plans {
  display: flex;
  gap: 1rem;
  width: 100%;
}

#plans > div,
.list {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#plans > div {
  border-radius: 1rem;
  flex: 1;
  padding: 1.5rem;
}

#plan-2 {
  background: var(--color-white);
}

#plan-4 {
  background: var(--color-white);
}

.fa-check {
  margin-top: 0.25rem;
}

.fa-plus {
  margin-top: 0.25rem;
}

.price {
  font-size: 3rem;
  letter-spacing: -0.04em;
}

.lighter {
  color: var(--color-gray-400);
}

.list {
  padding: 1rem 0;
}

.item {
  display: flex;
  gap: 12px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  #pricing,
  #plans {
    flex-direction: column;
    width: unset;
  }

  #pricing .content {
    padding: 4rem 2rem;
  }
}

.fill {
  flex: 1;
}

/* component — .button */

.button {
  align-items: center;
  border-radius: 6px;
  color: var(--color-gray-600);
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 12px;
}

.button:hover {
  background: var(--color-white);
  color: var(--color-gray-900);
}

.primary {
  background: var(--color-gray-900);
  border-radius: 20px;
  color: var(--color-background);
}

.primary:hover {
  background: var(--color-primary);
  color: var(--color-background);
}

.bigger {
  border-radius: 28px;
  font-size: 20px;
  padding: 18px 1.5rem;
}

.button i {
  margin-left: -0.5rem;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 0;
}

.button:hover i {
  margin-left: 0;
  opacity: 1;
  width: 36px;
}

/* component — .link */

.link {
  cursor: pointer;
}

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

.link:visited {
  color: var(--color-gray-400);
}

/* styles for pages under /legal/*.html */

section.legal {
  width: 75%;
  align-items: start;
  justify-content: start;
  text-align: left;
}

.legal > p,
.legal h1,
.legal h2,
.legal h3 {
  margin-top: 1rem;
}

.legal > h1 {
  font-size: 2rem;
}

.legal > h3 {
  font-size: 1.5rem;
}

.legal > a .dark {
  color: #98a2b3;
}

/* plyr.io */
#player1,
#player2 {
  border-radius: 1rem;
  max-width: 60rem;
  width: 100%;
}

#testimonials {
  padding: 4rem 0;
  background: #f8f9fa;
}

#testimonials .content {
  max-width: 1780px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  flex: 1 1 calc(25% - 1.5rem);
  position: relative;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: fit-content;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card .company-logo {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 100px;
  margin-top: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  font-size: 14px;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
}

.testimonial-author span {
  color: #6c757d;
  font-size: 0.9rem;
}

.testimonial-author strong {
  margin-bottom: 0.4rem;
}

.testimonial-card p {
  margin: 0;
  text-align: left;
  font-size: 14px;
}
.testimonial-card.main p:nth-child(2) {
  margin-bottom: 1.5rem;
}
.testimonial-card.main p {
  font-size: 20px;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  #testimonials {
    background: var(--color-background);
  }

  .testimonial-card {
    background: var(--color-white);
    box-shadow: 0 2px 4px var(--shadow);
    color: var(--color-gray-600);
  }

  .testimonial-author span {
    color: var(--color-gray-400);
  }

  .testimonial-card a {
    color: var(--color-primary);
  }

  .testimonial-card a:hover {
    color: var(--color-gray-900);
  }

  .testimonial-card .company-logo {
    filter: brightness(0) invert(1);
  }
}

.testimonial-card-wrapper {
  display: grid;
  gap: 2rem;
  height: fit-content;
}

.testimonial-card-wrapper.main {
  grid-column: span 2;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  height: 100%;
}

.testimonial-card-wrapper.main .testimonial-card:first-child {
  grid-column: span 2;
  height: 100%;
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonial-card-wrapper.main {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  
  .testimonial-card-wrapper.main .testimonial-card:first-child {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .testimonial-card-wrapper.main .testimonial-card:first-child {
    grid-column: 1;
  }
}
